Can someone explain this pic to me? What the fuck is going on there in the bottom example, and why is this a separate 'type' of programmer? The top is obvious to me but I can't read the the bottom one at all
Can someone explain this pic to me? What the fuck is going on there in the...
developers who try to be "clever" to reduce the amount of code
Bottom is a """clever""", functional approach, top is a traditional imperial approach.
Although I've seen worse. The bottom code is not exactly hard, but there are special snowflake programmers who try to condense as much code as possible into one line, for whatever reason, instead of just writing more readable code in 2-3 lines.
am I dumb if I don't do the bottom? I mean, I assume I could learn what's going on there (although I don't know what language this is), but it's so fucking ugly I feel like whoever has to make changes after the fact is going to spend much longer just reading trivial bullshit like this than if I'd just written it as per the top
The bottom is en example of the "clever" python one-liner.
Just chain library calls together and don't do anything yourself.
Don't even avail yourself to the possibility that you might want to expand functionality in the future.
Programming isn't something you do to simplify your life, you masturbate to dumb code snippets like these and upvote others who do the same on reddit and stackoverflow.
It's PHP garbage
this is python? what's the $ for?
python lends itself to this kind of shitty code
It doesn't hurt to look at functional programming, though it doesn't really matter which language.
I had a mandatory Haskell class in school, it had some funny stuff in it. Not super useful, but once you know the functional approach in one language, you basically know it in any.
I can decipher what's going on in the bottom part, but I don't know the language either, and as you said, I wouldn't write it like that myself
No. There's no benefit from using the bottom version speed-wise (probably it's slower) and it makes code less readable.
it makes code less readable
Nice meme pajeet
any programmer who uses php should consider dousing themselves in motor oil and jumping into a live volcano
not him but if you have an actual rebuttal, I'd like to hear it
rebuttal to an unfound opinion
so you're just here to shitpost and do nothing else?
posting "nice meme" over and over isn't funny or entertaining my dude
thinks he isnt doing the same
I make thread
guy posts statement
you say "that's dumb nice mem xD"
I wonder why because I'm genuinely curious and I want to learn
you continue posting "le epic nice mem xDD"
stop shitposting and just answer the question please
"no u lol xdddd"
I prefer metric system m8
i think its missing a half of the image,
under the php screen theres another screen with a sane language
Bottom example is using laravel's obfuscated way of using php's array_reduce()
he wonders why with an unfound opinion
it's just self-flagellation