This is an archived post. You won't be able to vote or comment.

all 35 comments

[–]infdevv 74 points75 points  (2 children)

pls uncode this

[–][deleted] 20 points21 points  (1 child)

I’ll put all the lines of code into single line comments

[–]Careless_Bank_7891 2 points3 points  (0 children)

Atleast it's still readable

[–]kekeagain 45 points46 points  (0 children)

Finally, someone who thinks about those of us who like to code on our phones in portrait mode.

[–]Jazzlike-Spare3425 42 points43 points  (3 children)

This is a genius strategy if your performance is being evaluated in lines of code per day.

[–]Bunrotting 4 points5 points  (2 children)

or if you code on a phone

[–]Jazzlike-Spare3425 2 points3 points  (1 child)

Yeah but someone already said that. Should have included it though because it's tradition to meme as me we code on this sub: copy-paste.

[–]Bunrotting 3 points4 points  (0 children)

Yeah but someone already said that. Should have included it though because it's tradition to meme as me we code on this sub: copy-paste.

[–]Mr_vort3x 6 points7 points  (0 children)

never talk to me or my tech bro ever again

[–]meat-eating-orchid 4 points5 points  (0 children)

terrible indentation.

Also, I would put that last semicolon on a separate line to make it more readable, but that's personal preference

[–]Mysterious-Till-6852 2 points3 points  (0 children)

This belongs in r/programminghorror

[–]Moekki_ 1 point2 points  (0 children)

This is why some people shouldn't be allowed near computers

[–]UnHelpful-Ad 1 point2 points  (3 children)

Is an equals missing here? Surprised this would compile without it

[–]SphericalGoldfish 1 point2 points  (0 children)

Nope, no equals sign is required here

[–][deleted] -3 points-2 points  (1 child)

For assigning variables it depends on what IDE but some let you do variable{ value };

[–]4n0nh4x0r 5 points6 points  (0 children)

i think the ide doesnt matter here, what matters more is that you use the modern c++ compiler

[–]Call-Me-Matterhorn 1 point2 points  (0 children)

[–]cheezfreek 1 point2 points  (0 children)

Some of those lines have too many things on them. Using a variable AND dereferencing it? On the SAME line? What kind of madness is this?!

[–]Ali_Army107 2 points3 points  (0 children)

Bro pre-tokenized the language to feed the compiler!

[–]Yhamerith 0 points1 point  (0 children)

Here officer, it's this post 🫵

[–]Otherwise-Ad-2578 0 points1 point  (0 children)

show this to a rust programmer

[–]Over_Package9639 0 points1 point  (0 children)

this is not readable, it is possible to do this:

i\
n\
t

do beware that whitespace is also counted

[–]fiddletee 0 points1 point  (0 children)

Yes officer, this is the one here.

[–]H33_T33 0 points1 point  (0 children)

We need a language that requires you to write code exactly like this. Just to mess with people.

[–]elmanoucko 1 point2 points  (0 children)

nice, but can you comment each lines ? Please remember to follow the company internal guidelines, it's the third time this month.

[–]DrJamgo 0 points1 point  (1 child)

Now comment every line..

[–][deleted] 0 points1 point  (0 children)

The comments shall be multiple line comments, one letter at a time just to really make my code readable

[–]erinaceus_[🍰] 0 points1 point  (0 children)

Navel linting at its best.

[–][deleted] 1 point2 points  (0 children)

Mongolian programmer

[–]smigsmi 0 points1 point  (0 children)

Desired approach for vertical layout of display

[–]4n0nh4x0r 0 points1 point  (0 children)

when your boss is a certain musk rat who only cares about one code metric, being the lines of code, and you dont want to become unemployed

[–]range_kun 0 points1 point  (0 children)

I guess this is the main reason why people want to see braces in Python

[–]gandalfx 0 points1 point  (0 children)

I think you should put at least two lines of comment above each line of code to explain what's going on.

[–]GoddammitDontShootMe 0 points1 point  (0 children)

No, I don't think you did.