Can someone explain this pic to me? What the fuck is going on there in the...

Playboyize
Playboyize

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

TechHater
TechHater

developers who try to be "clever" to reduce the amount of code

Nojokur
Nojokur

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.

idontknow
idontknow

@TechHater
@Nojokur
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

TalkBomber
TalkBomber

@Playboyize
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.

GoogleCat
GoogleCat

@idontknow
It's PHP garbage

Ignoramus
Ignoramus

@TalkBomber
this is python? what's the $ for?

Stark_Naked
Stark_Naked

@Ignoramus
python lends itself to this kind of shitty code

MPmaster
MPmaster

@idontknow
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

massdebater
massdebater

@Stark_Naked
Nice meme

PackManBrainlure
PackManBrainlure

@idontknow
No. There's no benefit from using the bottom version speed-wise (probably it's slower) and it makes code less readable.

VisualMaster
VisualMaster

@PackManBrainlure
it makes code less readable
Nice meme pajeet

FastChef
FastChef

@Stark_Naked
@TalkBomber
@Ignoramus
lol that's not python

@Playboyize
any programmer who uses php should consider dousing themselves in motor oil and jumping into a live volcano

StrangeWizard
StrangeWizard

@VisualMaster
not him but if you have an actual rebuttal, I'd like to hear it

Spamalot
Spamalot

@StrangeWizard
rebuttal to an unfound opinion
Nice meme

likme
likme

@Spamalot
...ok
so you're just here to shitpost and do nothing else?
posting "nice meme" over and over isn't funny or entertaining my dude

JunkTop
JunkTop

@likme
thinks he isnt doing the same
Nice meme

Harmless_Venom
Harmless_Venom

@JunkTop
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"

ok bud..

happy_sad
happy_sad

@Nojokur
imperial approach
I prefer metric system m8

cum2soon
cum2soon

@Playboyize
i think its missing a half of the image,
under the php screen theres another screen with a sane language

VisualMaster
VisualMaster

@Playboyize

Bottom example is using laravel's obfuscated way of using php's array_reduce()

Soft_member
Soft_member

@Harmless_Venom
he wonders why with an unfound opinion
Nice meme

Need_TLC
Need_TLC

@VisualMaster
it's just self-flagellation
oh

Techpill
Techpill

@VisualMaster
@Spamalot
@JunkTop
Found the true pajeet

Disable your ad blocker to access the content

Disable your ad blocker to access the content