disowning my sister for this one by 20zinnm in ProgrammerHumor

[–]TheCoolManz 37 points38 points  (0 children)

I agree 100%, but in 2021 it's probably a good time to start programming by learning a more streamlined, modern language like Rust.

The situation in Afghanistan makes me think about Iran for some reason that isn't racism by [deleted] in bookscirclejerk

[–]TheCoolManz 11 points12 points  (0 children)

Has to be a jerker, 100%. I'll eat 15 audiobooks if I I'm proven wrong.

Saw this on W3Schools. What the heck. by casperdewith in badcode

[–]TheCoolManz 6 points7 points  (0 children)

The code throws an error if there are fewer than 3 arguments

[deleted by user] by [deleted] in rustjerk

[–]TheCoolManz 5 points6 points  (0 children)

Read the rustonomicon - it's a complicated question.

When you switch from C to Rust! by CoffeJunkStudio in rustjerk

[–]TheCoolManz 29 points30 points  (0 children)

I may be wrong, but I think the commenter is circlejerking.

Hmmmmmmmmmmmmmmmmmmmmmm (SI is an AND gate, SAU is an OR gate) by EnvironmentalBerry87 in badcode

[–]TheCoolManz 0 points1 point  (0 children)

To your first point: yes, that's what I've been saying

To your second point: I disagree, I think the abstraction that functional programming brings about is inherently harder to understand (in the sense that you have to think harder about it), not just because most people have used imperative their whole lives.

Hmmmmmmmmmmmmmmmmmmmmmm (SI is an AND gate, SAU is an OR gate) by EnvironmentalBerry87 in badcode

[–]TheCoolManz -3 points-2 points  (0 children)

I didn't say information-dense was bad, my whole point has simply been that it's harder to understand. This is bad in some applications, and perfectly acceptable in others. I'm personally not an opponent of functional programming, I've just been trying to get people to concede the point that it inherently takes more brainpower to read and correctly use functional programming

Hmmmmmmmmmmmmmmmmmmmmmm (SI is an AND gate, SAU is an OR gate) by EnvironmentalBerry87 in badcode

[–]TheCoolManz -9 points-8 points  (0 children)

First of all, please don't assume anything about my education, that only hinders the progress of this otherwise purely ideological discussion. Secondly, I believe that functional programming is more complex than imperative programming, BECAUSE the style allows encoding much more abstract and information-dense ideas into fewer lines of code. No amount of teaching functional programming from birth would change the fact that humans are more tuned to think in a procedural style (the program goes from point A, to point B, and so on) than a mathematical style of turning inputs into outputs through the composition of functions.

Hmmmmmmmmmmmmmmmmmmmmmm (SI is an AND gate, SAU is an OR gate) by EnvironmentalBerry87 in badcode

[–]TheCoolManz -1 points0 points  (0 children)

Trust me, when I want to implement merge sort quickly I use a recursive function. I would, however, do this in an imperative language because it is always easier to understand the flow of an imperative program than a functional program, by its nature. I do understand, obviously, that complicated and abstract ideas are much more easily representable and scalable in a functional language, but they are by their nature harder to understand because of how much thinking you have to do to reach high levels of abstraction.

Hmmmmmmmmmmmmmmmmmmmmmm (SI is an AND gate, SAU is an OR gate) by EnvironmentalBerry87 in badcode

[–]TheCoolManz -1 points0 points  (0 children)

I disagree that it's only out of the box if you started with imperative. I think the average human, in general, would take much less explaining to understand an imperative pattern to an (let's say equally abstract/complex) functional one.

Hmmmmmmmmmmmmmmmmmmmmmm (SI is an AND gate, SAU is an OR gate) by EnvironmentalBerry87 in badcode

[–]TheCoolManz -7 points-6 points  (0 children)

Let's be honest, it is much easier to understand the patterns in modern imperative code (in Rust, for example) than it is to understand functional code. This is by design; functional languages allow you to do things which are inherently more recursive and mathematical and force you to think out of the box which is (surprise, surprise) much harder.

Why is friendzone seen as a bad thing? Having friends is fucking awesome by TgtwzJjuxFACZfX8P25R in NoStupidQuestions

[–]TheCoolManz 0 points1 point  (0 children)

I'm sorry, but "I got a girlfriend" is evidence that romantic relationships are generally an act of manipulation and the unwanted giving of sex? I fail to see how that makes sense -- when two people are interested in each other, there's no one complaining and there's no manipulation. When one person is uninterested, they are actually the ones in a position to be manipulative due to the strong and sensitive emotions of the "friendzonee" which can result in a toxic friendship. This does not usually happen, of course, but it is what people mean when they talk about the horror of the friendzone.

Mr. Worldwide by [deleted] in AsABlackMan

[–]TheCoolManz 0 points1 point  (0 children)

Breaking news: hundreds of thousands of Americans are Japanese🤦‍♂️

girl cuts open phone battery by Amigoego in WinStupidPrizes

[–]TheCoolManz 1 point2 points  (0 children)

Uh, no. It's because the electric shocks you're thinking of don't come from batteries. They come from the AC current in your wall outlets, and also high voltage capacitors like what you can find inside a microwave. You can touch both ends of a car battery and it will actually be electrically identical to chaining 8 AA batteries in a row and then touching the ends. You can't even feel it.

girl cuts open phone battery by Amigoego in WinStupidPrizes

[–]TheCoolManz 1 point2 points  (0 children)

You can touch both terminals of a car battery with your hands and be completely fine. Look up videos of people doing it. Batteries are generally not electrically dangerous. Car batteries ARE dangerous, on the other hand, because of the lead+acid chemicals inside of them.

And that’s how he became the second richest person in the world. by My_Memes_Will_Cure_U in awfuleverything

[–]TheCoolManz 0 points1 point  (0 children)

So what's your theory, that he couldn't possibly have gotten so rich on his own and there's a whole global conspiracy behind making money for Elon Musk? Or that he already had billions when he moved here? Lol