top 50 comments

sorted by: hot top controversial new old
[–] 69 points 2 years ago (24 children)

"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..."

  • source
  • hideshow 24 child comments
  • [–] 9 points 2 years ago (20 children)

    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.

  • source
  • parent
  • hideshow 20 child comments
  • load more comments (15 replies)
  • load more comments (3 replies)
    [–] 54 points 2 years ago (7 children)

    Learned Python to try and hack into a porn site.

  • source
  • hideshow 7 child comments
  • [–] 46 points 2 years ago* (4 children)

    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 🙄

  • source
  • hideshow 4 child comments
  • load more comments (4 replies)
    [–] 44 points 2 years ago (1 child)

    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 then goto 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.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 40 points 2 years ago (2 children)

    I had totally forgotten until this post reminded me: I originally started to learn Python in order to fix a crossword puzzle program.

  • source
  • hideshow 2 child comments
  • [–] 31 points 2 years ago (2 children)
    load more comments (2 replies)
    [–] [S] 28 points 2 years ago (6 children)

    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.

  • source
  • hideshow 6 child comments
  • [–] 14 points 2 years ago* (last edited 2 years ago) (1 child)

    That is such a sweet reason! Whimsical decisions like this can be some of the best. Life demands a bit of whimsy every now and then.

    Edit: I don't know if you're still interested in this, but have you considered WSL? Assuming you're on Windows, that is. I haven't looked into it, but I don't see any obvious reason why it wouldn't work.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)
  • load more comments (4 replies)
    [–] 25 points 2 years ago

    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.

  • source
  • [–] 25 points 2 years ago* (49 children)

    I, as a teacher, have had to learn several languages, but that's not the dumb reason bit. The dumb reason bit was WHY I had to teach Python, which once I learnt it (so I cold teach it) I could see right away was NOT a suitable language for teaching to Year 7 (who up to now have only used Scratch). I was teaching the U.K. curriculum, and I found out that teaching C# was also allowed - still not ideal, but better than Python for learners -but pretty much all schools were teaching Python. When I dug into it I found I was far from alone in not wanting to use Python... and I also found out the reason schools were teaching Python. It was because from an ADMINISTRATIVE point of view it was much easier for the schools to have us teaching Python. In other words, the office-workers who didn't have to teach it, only had to admin it, were forcing everyone to teach Python because they wanted the lower overhead that came with installing/maintaining that vs. C#. ARGH! All the teachers who wanted to teach C# were running into exactly the same road-block.

  • source
  • hideshow 49 child comments
  • [–] 41 points 2 years ago (14 children)

    I'm really surprised to hear that teaching C# to 7th graders is easer than teaching them python. Python was invented to teach. It looks like pseudo code. I have almost zero experience in teaching so I trust your experience. But can you elaborate a little? What makes teaching C# easier?

  • source
  • parent
  • hideshow 14 child comments
  • load more comments (11 replies)
  • [–] 10 points 2 years ago (29 children)

    I'm curious why you think Python is unsuitable. Both of my kids picked up Python pretty easily.

  • source
  • parent
  • hideshow 29 child comments
  • [–] 18 points 2 years ago (28 children)
    • object-oriented (this is their FIRST proper programming language - they don't even know how to write loops yet and you want us to teach them OOP at the same time?! And as it turns out, I had one student who literally could NOT work out how to use a loop - kept writing 20 variables for 20 iterations. i.e. her variables never varied!)
    • variables are weakly-typed (use it for anything, whether it's what you first used it for or not, Python doesn't care)
    • indentation has to be exact (i.e. no brackets, just exact indentation). I had one student whose program wasn't working, and it even took ME a while to find what was wrong with it (a missing space).

    I think there was more, but that's what I remember off the top of my head. If it was up to me then I would've used Pascal - that's what it's designed for! But at least C# has strongly-typed variables, and doesn't care about your indentation (and unfortunately there was no non-OOP language choice available - I'm not sure how this got in the curriculum when every teacher knows you only teach one concept at a time). As I said, many other teachers felt the same way, but couldn't get it past their school admin's.

  • source
  • parent
  • hideshow 28 child comments
  • load more comments (28 replies)
  • load more comments (2 replies)
    [–] 24 points 2 years ago (1 child)
    load more comments (1 reply)
    [–] 24 points 2 years ago
    [–] 23 points 2 years ago (1 child)

    I started learning Lua for a WoW add-on. Not even making my own add-on, just tweaking someone else's.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 21 points 2 years ago* (last edited 2 years ago) (1 child)

    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.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 19 points 2 years ago (1 child)

    Lemmy UI constantly pissed me off, Photon didn't quite do what I wanted, so I forked it and learned Svelte. lol

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 19 points 2 years ago (4 children)

    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.

  • source
  • hideshow 4 child comments
  • load more comments (4 replies)
    [–] 18 points 2 years ago (1 child)

    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

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 17 points 2 years ago* (3 children)

    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.

  • source
  • hideshow 3 child comments
  • load more comments (3 replies)
    [–] 15 points 2 years ago
    [–] 14 points 2 years ago* (last edited 2 years ago)

    I inherited a C# code base that had a custom runtime loader for APL modules. Over half of the app was actually written in APL with C# just hosting the API.. so yeah, had to learn that. I don't recommend it but some people seem to really love the language. Those people are often statisticians, not programmers.

  • source
  • [–] 14 points 2 years ago

    Wanting to get into the videogames industry.

  • source
  • [–] 13 points 2 years ago

    Maybe not dumb but I've definitely been forced to at least partly learn a few terrible languages so I could use some system:

    • PHP so I could write custom linters for Phabricator. Pretty successful. PHP is a bad language but it's fairly easy to read and write.
    • Ruby so I could understand what the hell Gitlab is doing. Total failure here, Ruby is completely incomprehensible especially in a large codebase.
    • OCaml so I can work on a super niche compiler written in OCaml. It's a decent language except the syntax is pretty terrible, OPAM is super buggy, and I dunno if it's this codebase or just OCaml people in general but there are approximately zero comments and identifiers are like ityp, nsec, ef_bin... The sort of names where you already need to know what they are.
  • source
  • [–] 13 points 2 years ago (2 children)

    I learned a bit of FORTH because an old Minecraft mod (Redpower 2) had a computer that could run it.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 13 points 2 years ago (2 children)

    Arduino and Python to create a sexy machine that syncs up to videos. Oh I also made the sex machine part, like machining metal parts and soldering electronics.

  • source
  • hideshow 2 child comments
  • load more comments (2 replies)
    [–] 13 points 2 years ago

    I learned lolcode in college because we had to write a sorting algorithm in assembly and "any other programming language."

  • source
  • [–] 13 points 2 years ago

    I liked the OCaml website

  • source
  • [–] 12 points 2 years ago

    We found a RCE on a server during pentest. In KOBOL.

    Learning how to make a reverse shell in KOBOL was pretty unique experience. Thankfully, we found another path to DA ajd didn't have to continue, but maan, learning KOBOL, especially of your use-case is niche, is borderline esoteric.

  • source
  • [–] 12 points 2 years ago

    I was trying to rank up in Codewars, and there was a 1kyu (hardest and worth the most points) kata only available in OCaml, so I learned it in order to solve.

  • source
  • [–] 11 points 2 years ago (1 child)

    I learned bash instead of python because my 8 year old brain saw all the parentheses and thought "ew no"...

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 11 points 2 years ago

    Learned flash in the 90's to make terrible games.

  • source
  • [–] 11 points 2 years ago (4 children)

    to prank people using school computers

  • source
  • hideshow 4 child comments
  • load more comments (4 replies)
    [+] 11 points 2 years ago (3 children)
    load more comments (3 replies)
    load more comments
    view more: next ›