“Gods, that’s stupid. Why is it being done this way? Have they never heard of naming conventions? Is the language really that awfully designed?”
Learns PHP to find out more.
“Yup…”
HEY! Is PHP ugly? Yes. Does it use stupid naming conventions? Also yes! But it’s an awesome language when you want to get shit done. There’s no other languages out there where you can just write some code in VIM directly on the server through SSH and immediately see your results without any further setup. No frameworks required, no packages, no imports, no buzzwords and hubub, just pure unadulterated utility.
Incorrect. Perl does the same just as well, and it’s a language that actually makes sense while also being uglier.
In my experience Perl is a write-only language. Coming in behind someone else and fixing or writing their code is often slower than just rewriting it
Perl is partially readable, provided that it’s your own code. The one thing perl coders hate the most, is other people’s code.
Source: Am a perl coder
Perl is definitely a WORN language.
Write Once, Read Never
I’ll admit, I have zero experience with Pearl. I do like the uglier point you made though. 50+ DKP
Nonsense, there are tons of systems like that now. I’ve been playing with Deno & Fresh, it’s great. Trivial to install, a pretty great language, Fresh doesn’t force everything to be client side - you can easily write old school completely server side rendered sites if you want but you get to use TSX which is waaaaay superior to the old text based templating systems we used to use (Handlebars, Jinja, etc.).
It also has built in hot reloading by default so even faster than PHP. Literally hit save and you see the results.
What’s this install nonsense? I just looked up Deno and it’s part of an NPM stack. With PHP you just
-
Open an Apache server
-
Write code
-
???
-
Profit!
Write code
???
Profit!
Accurate PHP mindset on so many levels
I just looked up Deno and it’s part of an NPM stack.
It’s not. It supports NPM modules for backwards compatibility, but the whole point is that it doesn’t inherit the NPM tooling mess. You can go from a new Linux install to a running Fresh project in 3 commands.
Okay, I’m interested. What stack is it part of? What kind of servers does it use?
There’s two things:
Deno: this is a replacement for Node and NPM and prettier and some other tools. So one aspect is that it’s a more modern Node, using standard web APIs instead of Node specific stuff. And the other aspect is it is more streamlined modern tooling - no node_modules, no complicated build steps, built in Typescript support, etc. In fact you can use a single file as a script, similar to Python… but unlike Python you can use third party dependencies, which makes it fantastic for stuff like CI scripts, etc. where you might have suffered with Bash or Python before.
Fresh: this is just a web framework targeting Deno. Honestly I haven’t used it much but I really like what I’ve seen so far. I always found React to be confusing and overkill for most sites, which should really be rendered server side, but also I really like the way you can compose components with JSX/TSX in a real language with full type checking. Fresh gives you both!
but unlike Python you can use third party dependencies,
In what sense does python not have third party dependencies?
-
no other languages out there where you can just write some code in VIM directly on the server through SSH and immediately see your results without any further setup
laughs in coldfusion
PHP is native in Linux then?
How is that different to something like powershell?
You can’t run a website off powershell. PHP can render HTML to the browser, so it’s perfect for website development. 99% of the web was PHP back in the wild West days.
R. because it’s really easy to work on spreadsheets. i know there’s pandas for python but at that time RStudio made it look really attractive. i will do anything not to work on excel.
When I took biostatistics in college I asked to use python instead of R to do my assignments and they said no
My only real complaint at the time was using <- to define variables but I felt really strongly about it and that I wanted to use fancy snake language
PHP is a scourge. I wish less server software were written in it. You’ll stumble upon some opensource project with a cool UI, run into a problem and find out the docker container has apache, postgres, and PHP in it. Debugging PHP is such a pain and setting up a developer environment is such a hassle because they haven’t discovered docker for dev envs yet.
Terrible experience all around.
Learned Python to try and hack into a porn site.
Well, were you able to hack into the porn site? Python seems like an odd choice for hacking a website.
I almost did this for a different reason, people choose python because it has some pretty good web automation/scraping libraries to work with.
This was over 10 years ago, maybe 20. I wanted to pick up a new language and I seemed pretty driven, at the time, to hack a certain site. I think I gave up on it and as usual I enjoyed writing the code more than using the app.
It didn’t use webscraping or anything too sophisticated. I just applied a few dictionaries I found online and ran everything through a series of anonymous proxies. Very brute force.
Ha! I tried the same thing with some random sites like 20 years ago. I managed to get into a few of them and emailed the registered owner that they needed better security.
I learned Python and regular expressions to download hundreds of pictures from 4chan. Good times.
Ah, the good ol’ regex html parser.
Seems like a good way to get put on a ‘list’.
I was playing this really simple mobile phone game, where you basically go on these mining trips, then you tap the screen as quickly as possible. So, I thought to myself, I wonder if there’s a way to simulate screen taps, to tap at superhuman speeds.
I found an app for that, this app had its own scripting language. Admittedly, there weren’t many concepts to learn in this language, but wait, there’s more.
Then I thought, maybe I can also automate the menus, between the mining trips.
But this language didn’t have support for multiple files, nor functions, you couldn’t even use labels in your goto statements, meaning my code started to get quite complicated.So, I actually sort of implemented support for goto labels / shitty functions within my program.
Basically, at the start of the file, I had an if-else block, which read the value of a variable and based on that, it would select between different goto statements.
So, if I wanted to “call a function”, I would set the variable to the function/label name and thengoto 0
.If I remember correctly, I did still need to manually update the line numbers in that lookup table at the start, but at least, I didn’t have to do it everywhere in the code anymore.
And yes, I did manage to completely automate grinding that game, using this shitty scripting language.
It was an offline game, and not a good one, I didn’t actually care about making progress in it. But scripting it was significantly more fun than playing it myself.There’s a game called something like “oh no the farmer is gone” which is about programming a little robot to harvest the fields and the programming is built directly into the game
Because I wanted to listen to music while doing the dishes.
The Jellyfin Roku client didn’t support audio playback, so I wrote it myself… while learning Roku’s proprietary language 🙄
It occurs to me I’ve literally never tried to play my music library through Roku. I usually just cast to a speaker with my phone. Is it part of the main branch?
Yep. That code was merged and released roughly 2 years ago.
Well I thank you for your contribution regardless. Roku is all I’ve got, so it helps to have people like you annoyed enough, and knowledgable enough to contribute.
🤘 Enjoy
I was going to learn !hare@programming.dev just because it is called “Hare” and I like rabbits, but then I saw that I am not on a supported OS.
God. I didn’t knew that Drew was such a language nazi. If you want to write a Go clone, it must be useful for everyone. Even Emacs is available on Windows officially.
To get a career in IT.
That’s a pretty solid reason.
Close your eyes to feel it
To understand memes
A man of culture
Not really a dumb reason, but back in the day I was stuck in the WordPress developer loop and tired of it. I was pretty familiar with a handful of languages, but wasn’t doing much more than setting up themes and building out pages with builders.
One day I heard the CTO talking about a tool he would love to have but couldn’t find anything that worked how he needed it to. The CTO was a big buzzword guy and recently shared an article with my manager at the time about how C++ was “the best language”. So naturally I chimed in and told him I could build that tool easy peasy and I would use C++ obviously because it’s the best language.
It was such a simple tool, basically just matching phrases and categories and spitting out a list of options. It took me months to make, but I learned a lot and it kind of worked for the most part and everyone was happy. I eventually got a de-facto department in the company where I would just build internal tools and handle some legacy codebases that they were previously outsourcing.
I later on got my current job because of that leap.
TLDR: I learned C++ because I was bored and lied that I already knew it.
I was a teacher’s assistant in beginner’s programming at university for a bit. I expected them to learn C, which I knew enough of, but I got assigned to a group that learned Python instead. I had never used Python at the time. I ended up having to speed learn it while trying to teach it, to not be completely useless.
Sounds like you had the wrong indent after they shifted you around.
Lemmy UI constantly pissed me off, Photon didn’t quite do what I wanted, so I forked it and learned Svelte. lol
dubvee.org and tesseract
I needed some context, but woah this is super slick lemmy. Awesome project, like the work I’m seeing on the moderation side.
It’s hyperbole, but I learned my first language because I wanted to be a god.
I saw these magic windows that popped up, that had buttons, and I was jealous of these godly creators holding the power to make them do as they wanted. So, I learned it myself. I peeked at another program I was using, it was using python and PyQt so that’s what I set out with to become my own god of the desktop.
My first program was a GUI wrapper around the YouTube-dl CLI, and I still use it frequently.
Hey, that’s similar to me! Except I’d call it a wizard rather than a god. I wanted to learn the cryptic combinations of words that willed things into existence in the digital world. 23 years later I’m a senior professional, doing the same thing, and still learning too.
I wanted to make a scripted version of pinochle because my friends and I play it a bunch on tabletop sim and there was nothing available, so I learned LUA
I learned pinochle as a kid, but can’t remember how to play now.
I learned Lua as a programming student but can’t remember how to use it now.
I liked the OCaml website
to prank people using school computers
Ah the olden days of using windows accessibility features to replace “.com” with “.corn”
You were more subtle than my friends. In the computer lab, we would just change “the” to “fuck”
We started there of course. The subtlety has far more to do with needing to get clever than with us being clever. Eventually it got to the point where I had to write a python script to reinstall all our .corn antics back on every school machine because the school took to resetting all accessibility dictionaries every night
this isn’t dumb at all
I wanted to see what the COBOL job market looked like. So I learned the superficial basics of COBOL in a day or two, just so I wouldn’t be a complete fraud when I put it into my linkedin profile as a skill to see what happens.
How did that turn out for you?
Didn’t get a single reqeust, so this had less impact than expected. Thought there was more old rusty companies looking for a non-retired engineer.
Yeah I think that’s mostly a myth. When I looked up salaries they were definitely good (for programming; amazing for the average person), but not “I would write COBOL for that” good.
There aren’t really that many old COBOL systems around. I think it’s mostly just over-reported because you can write an article about how some government department still uses COBOL but you can’t write about one that switched to Java.