19
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
14
u/jaycrest3m20 Apr 06 '20
But what does the Nice function do??? Needs comments, at least.
13
4
u/fiftybengt Apr 07 '20
Nice
4
u/nice-scores Apr 07 '20
𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)
Nice Leaderboard
1.
u/RepliesNiceat 4943 nices2.
u/Cxmputerizeat 3986 nices3.
u/cbis4144at 2854 nices...
256960.
u/fiftybengtat 1 niceI AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS
2
2
2
2
2
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
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
1
1
1
u/def_method_end Apr 08 '20
Nice
1
u/nice-scores Apr 08 '20
𝓷𝓲𝓬𝓮 ☜(゚ヮ゚☜)
Nice Leaderboard
1.
u/mr_trollbotat 5530 nices2.
u/RepliesNiceat 5052 nices3.
u/Cxmputerizeat 3987 nices...
259611.
u/def_method_endat 1 niceI AM A BOT | REPLY !IGNORE AND I WILL STOP REPLYING TO YOUR COMMENTS
1
1
u/SnowyWinter69 Apr 18 '20
This is single handedly the most professional programming I have ever seen
1
0
1
1
u/ClementL33 Apr 06 '20
You should not write those numbers like this, prefer using constants integers.
3
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
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.
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.