[-] noli@programming.dev 12 points 7 months ago

Fun fact: the main reason garbage collection is unhealthy is because you spend all day in the fumes of public roads & the truck you're hanging behind.

Source: was garbage collector for 3 years as student job & we got a small hourly bonus for it.

[-] noli@programming.dev 10 points 7 months ago

Depends on how deep down the rabbit hole you want to go :p

  • creating a new variable that contains the updated value
  • recursion (e.g. it's not possible to make a loop that increments i by 1, but it is possible to turn that loop into a function which calls itself with i+1 as argument)
  • avoiding typical types of operations that would update variable values. For example instead of a for loop that updates every element of a list, a functional programmer will use the map function, which takes a list and a function to apply to each element of that list to create an updated list. There's several more of these very typical functions that are very powerful once you get used to using them.
  • monads (I'm not even gonna try to explain them as I hardly grasp them myself)
[-] noli@programming.dev 11 points 8 months ago

It's all learned behaviour. If you grew up with F that makes total sense and C sounds ridiculous. If you grew up with C that's totally intuitive for anyone, just as much as F, so using a scale that has no point outside of the weather sounds dumb. Neither system is more intuitive by any means. Both systems ave benefits and downsides.

Whenever I talk to americans and they use F I need to convert it because I grew up with C and that just makes more sense to me, even if I know the "0-100 F is according to human experience" thing. Like sure, 80F is hot, but how hot is it? Oh 27C that's hot but not extreme.

Arguing one or the other is superior is not only pointless but also just silly

[-] noli@programming.dev 10 points 8 months ago

Reed hucks = redux Heather net = ethernet

[-] noli@programming.dev 10 points 8 months ago

Oh no, strangers on the internet know I had sex and there were dog-like noises! That's the exact same as people who know me IRL such as family or coworkers! I shall now sink through the ground in shame!

[-] noli@programming.dev 11 points 9 months ago

Oops, so silly of me!

On a totally unrelated note, this is also a funny meme. Hope it helps with your disappointment of this post!

[-] noli@programming.dev 13 points 9 months ago

A coffee from a coffee shop definitely should be $4 if you want them to ethically source good coffee and have a sustainable business model.

There's still cheap, shitty coffee that's built on modern slavery there's always like mcdo. SB is the same quality ingredients but with knowing how to steam milk + syrups

[-] noli@programming.dev 10 points 10 months ago

One crate is still one item

[-] noli@programming.dev 16 points 11 months ago

Flipping burgers is enough to pay for chemotherapy. Src: am european

[-] noli@programming.dev 11 points 1 year ago

It's always fixable, just not always worth the effort

[-] noli@programming.dev 12 points 1 year ago

Maybe try reading the comment you just responded to again

[-] noli@programming.dev 11 points 1 year ago

JS was a mistake.

view more: ‹ prev next ›

noli

joined 1 year ago