this post was submitted on 20 Jul 2024
1 points (100.0% liked)

Programming

17392 readers
152 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
top 16 comments
sorted by: hot top controversial new old
[–] 90s_hacker@reddthat.com 2 points 3 months ago

I liked the OCaml website

[–] Kacarott@aussie.zone 1 points 3 months 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.

[–] lengau@midwest.social 1 points 3 months ago

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

[–] Ephera@lemmy.ml 1 points 3 months ago

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.

[–] neomachino@lemmy.dbzer0.com 1 points 3 months 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.

[–] Plasma@lemmy.ml 1 points 3 months ago (1 children)

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

[–] DerArzt@lemmy.world 1 points 3 months ago

Experienced me sees a language where parentheses are optional and I think "ew no"

[–] Starb3an@sh.itjust.works 1 points 3 months ago (1 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.

[–] bamboo@lemmy.blahaj.zone 1 points 3 months ago (1 children)

please tell me you created a dick object for the project which is exactly the same as a dict object.

[–] Kissaki@programming.dev 1 points 3 months ago
error: dict not found. Were you looking for dick?
[–] hector@sh.itjust.works 0 points 3 months ago (1 children)

I learned Go because I really liked the keyword go

[–] andioop@programming.dev 1 points 3 months ago* (last edited 3 months ago)

This feels like me wanting to learn Hare because I like rabbits, which I bring up because someone left this reply for me and I think it applies to you too:

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.

[–] yesbot@infosec.pub 0 points 3 months ago (1 children)

to prank people using school computers

[–] Cube6392@beehaw.org 0 points 3 months ago (1 children)

Ah the olden days of using windows accessibility features to replace ".com" with ".corn"

[–] JillyB@beehaw.org 1 points 3 months ago (1 children)

You were more subtle than my friends. In the computer lab, we would just change "the" to "fuck"

[–] Cube6392@beehaw.org 1 points 3 months ago

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