Comment on
"Millennial lingo" by Shen Comic
Reply in thread
Grandpa knew what he was doing when he called all the pokemen pikachu
Comment on
"Millennial lingo" by Shen Comic
Reply in thread
Grandpa knew what he was doing when he called all the pokemen pikachu
Comment on
Functional bros be like
Reply in thread
Dogmatic statements like this lead to bad, messy code. I'm a firm believer that you should use whatever style fits the problem most.
Although I agree most code would be better if people followed this dogma, sometimes mutability is just more clean/idiomatic/efficient/...
Comment on
*Permanently Deleted*
Reply in thread
But rust
Comment on
Simple trick
Reply in thread
Nvm fixed it
Comment on
Functional bros be like
Reply in thread
In functional programming, everything is seen as a mathematical function, which means for a given input there is a given output and there can be no side effects. Changing a variable's value is considered a side effect and is thus not possible in pure functional programming. To work around this, you typically see a lot of recursive and higher order functions.
Declaring all values as const values is something you would do if you're a diehard functional programmer, as you won't mutate any values anyway.
Comment on
Or maybe introduce them to Little Bobby Tables
Reply in thread
You clearly don't use this one, don't you know lemmy instances automatically censor your ********?
Comment on
tar -vczfx123 ought to do it
Reply in thread
Tar Xtract Ze Vucking File
Edit: apparently someone else already mentioned this, oops
Comment on
The birth of JS
Reply in thread
Which is why I'm of the opinion that dynamically typed languages are evil. !!"false" should either be caught at compile time or raise an exception.
I'm thoroughly convinced that the only use of dynamically typed languages is to introduce bugs
Comment on
Some of my iterations are delightfully recursive
Reply in thread
Compiler optimizations like function inlining are your friend.
Especially in functional languages, there are a lot of tricks a compiler can use to output more efficient code due to not needing to worry about possible side effects.
Also, in a lot of cases the performance difference does not matter.
Comment on
What do you think about the porn industry ?
Reply in thread
I see, so I'm assuming the same goes for regular actors? And musicians? And basically any performer ofcourse? Oh and also anyone who does manual labour because you are literally renting out your body for that. Well, and technically anyone with an office job too because they are still renting out their time.
Comment on
Society is strange
Reply in thread
Did it as a student job for 3 years. I was paid roughly 50% more than with all other student jobs.
Honestly collecting garbage is not even that bad. I got paid to do fitness all day, spending time outside while chatting with my coworker. The people sorting the trash, that was who we felt bad for. They had all the downsides of the job with none of the benefits.
Comment on
Which side are you? Javascript or Typescript
Reply in thread
The typical arguments for a dynamic typed language are that it takes less time to write something in it.
The benefits of static typed languages are that your development environment can be a lot smarter (ironically enough leading to faster development speed) and several classes of bugs being unable to happen. In a statically typed language, the IDE can detect if you're trying to call a function that takes a number but you're actually providing a string. In this case the IDE will let you know and you can immediately fix silly mistakes like that.
Comment on
not yap wa' Hol
Reply in thread
Maybe the universal translator understands context and the intended meaning. The intended meaning was non-english so translating wouldn't make sense.
Comment on
Not mocking cobol devs but yall are severely underpaid for keeping fintech alive
Reply in thread
Flipping burgers is enough to pay for chemotherapy. Src: am european
Comment on
What do you think about the porn industry ?
Reply in thread
To answer that question it might be useful to ask a different question: "If people depend on money to survive and if that money is made through manual labour. Does this imply that manual labour is slavery through coercion?"
Comment on
What is the best file format for configuration file?
Reply in thread
You disgust me
Comment on
military industrial publishing complex
Reply in thread
arxiv.org is a thing
Comment on
Society is strange
Reply in thread
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.
Comment on
A glowing review
Reply in thread
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
Comment on
Society is strange
Reply in thread
You get most of the day off after having worked a full day + still need a full and thorough shower + have low energy because it's a physically demanding job
Src: did it for 3 years as student job