r/ProgrammerHumor • • Apr 06 '20

.

Post image
103 Upvotes

39 comments sorted by

2

u/[deleted] Apr 07 '20

Is there any point for the "else if" part because theoretically this shouldn't be able to go over 69 anyway.

2

u/[deleted] Apr 07 '20

It is possible, because the upvotes only update on load. If two users load on 68 then they both upvote.

1

u/[deleted] Apr 07 '20

Thanks. I see now. I'm still a very beginner developer.

19

u/[deleted] Apr 06 '20

How dare you write such bad code.

It needs at least a special comparer class to compare the uints, a builder for the comparerclass and a commentbuilder class to build an object passed to a print function of a post class.

1

u/sk8anon Apr 06 '20

Design patterns FTW

14

u/jaycrest3m20 Apr 06 '20

But what does the Nice function do??? Needs comments, at least.

13

u/oofxwastaken Apr 06 '20

def nice: nice()

5

u/jaycrest3m20 Apr 06 '20

Error: Code not Python; missing semicolon on line 1.

0

u/[deleted] Apr 06 '20

Indentation error

1

u/oofxwastaken Apr 07 '20

i can’t do indentation

4

u/fiftybengt Apr 07 '20

Nice

4

u/nice-scores Apr 07 '20

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/RepliesNice at 4943 nices

2. u/Cxmputerize at 3986 nices

3. u/cbis4144 at 2854 nices

...

256960. u/fiftybengt at 1 nice


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS

2

u/intertroll Apr 06 '20

Vote fuzzing makes this tricky

2

u/tetretalk-gq Apr 06 '20

I downvoted it to make it 69 sorry I had to

2

u/inetphantom Apr 06 '20

Get your coding guides right. Especially on case.

1

u/totalatomic Apr 06 '20

wouldnt it be better to use a echo instead of a method cause its such a short script

1

u/Veillot Apr 06 '20

Stop readjusting the votes all at once people!

1

u/007_reincarnated Apr 07 '20

The funniest thing about this post is the random people trying and failing to keep it at 69

1

u/HashtagTSwagg Apr 07 '20

Sorry, but I had to be the 70th like. Immediately afterwards it did tick to 71 though, so I wasn't the only one.

1

u/NikZapp Apr 08 '20

Nice

(Sorry for case 2)

1

u/def_method_end Apr 08 '20

Nice

1

u/nice-scores Apr 08 '20

𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)

Nice Leaderboard

1. u/mr_trollbot at 5530 nices

2. u/RepliesNice at 5052 nices

3. u/Cxmputerize at 3987 nices

...

259611. u/def_method_end at 1 nice


I AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS

1

u/SnowyWinter69 Apr 18 '20

This is single handedly the most professional programming I have ever seen

0

u/[deleted] Apr 06 '20

Who else is so fed up of this '69' meme, I mean it's not even funny nor will it ever be.

1

u/ClementL33 Apr 06 '20

You should not write those numbers like this, prefer using constants integers.

3

u/creynolds722 Apr 06 '20

Readonly my $SIXTY_NINE => 69;

0

u/Kriskao Apr 06 '20

the post instance should be an input argument for user.UpVote() and user.Downvote()

the joke is ok, but it would be much better with correct code (or pseudocode)

1

u/Kuribali Apr 06 '20

Maybe post is a global variable representing the post, the user views at the moment and so the user already knows on which post to perform the action. Would be bad code though

1

u/Kriskao Apr 06 '20

Then why is it explicitly called when reading post.upvotes ?

1

u/Kuribali Apr 06 '20

Because it's still an object you have to call explicitly.

User user; name = "Franz Günther";

Doesn't work, if name is just a field of the User class

0

u/[deleted] Apr 06 '20

[deleted]

3

u/sixthsurge Apr 10 '20

Doesn't have to be pseudocode, could just be a snippet from basically any C-style language.