ProgrammerHumor

checkOutMyCode

checkOutMyCode
https://i.redd.it/vch87332zqdf1.jpeg
Reddit

Discussion

InsideBSI
:c::cp::cs::js::ts::py:

java code that looks like python yeah, nice

9 hours ago
legendLC

Must add this comment:

// Do not reformat the braces {}. It breaks the production.

4 hours ago
DigitalJedi850
:cs:

I hate that my brain made me sort out what this does…

9 hours ago
jungle

Funny how all (or most) comments are about the formatting and not the horrific implementation of permute. I can't even figure out if it works.

5 hours ago
suskio4
:c::cp::py::asm::lua:

This is why its so good at permuting

5 hours ago
rruusu

It does nothing, as that class only has two methods and both are private. (The closing brace for the class is at the end of the last line.)

Whatever its permute method would do, if anyone were allowed to call it, it would have a time and console output complexity of O((n+1)!) (factorial time), unless n > a.length - 1, in which case it'll throw an ArrayIndexOutOfBoundsException.

Edit: Off by one in the time complexity.

3 hours ago
sammy-taylor
:js::elixir-vertical_4::cp:

I was like “what friggin language is this” until I saw the horrifying brackets 🤢

9 hours ago
Ahazveroz

Jathon? Pyva?

9 hours ago
NobodyPrime8

is this the "Jason" every web developer seems to be so obsessed over?

8 hours ago
ohmywtff

Jython probably, since there's the cython

5 hours ago
anotherbutterflyacc

I was like “is this python…? I’m so confused” and then saw the brackets and physically startled lol

8 hours ago
Boris-Lip

IRL depression doesn't really look like anything, though

8 hours ago
TooSoonForThePelle

True. I should post a selfie.

8 hours ago
giantrhino

I was so confused until I finally looked in the right margin.

Kill it. Kill it with fire.

7 hours ago
SPAMTON____G_SPAMTON
:unity:

This isn't depression. This is heresy.

8 hours ago
ghstber

Brother, get the flamer... the heavy flamer. 

7 hours ago
giantrhino

Tfw you find out you’re gonna have to put your friend down.

7 hours ago
Deep__sip
:js::j::c:

This is autism

8 hours ago
IceColdFresh

Variable width font coders BTFO

9 hours ago
EldritchEne

I- really can't tell if I love or hate this

8 hours ago
ZunoJ
:cs: :asm: :c:

Aside from the obvious, why are the methods static and not extension methods? Or just injected as a singleton?

7 hours ago
SuitableDragonfly
:cp:py:clj:g:

No, I think that's the manic stage.

7 hours ago
AStripe

So nobody remembers c++?

5 hours ago
baltimooree

The RHS is killing me bro 😶

7 hours ago
Corelianer

We write code in a readable form for humans not machines.

7 hours ago
drsimonz
:py::cp::cs::re::ts:

Anything other than 1TBS is mental illness, change my mind.

7 hours ago
Sad_Welcome3776

LOL the code segment is the most accurate depiction of how my brain feels on a daily basis 😂 #ProgrammerLife

6 hours ago
Etheo
:bash::py::table_flip::redditplatinum:

Hi police? I'd like to report an assault.

ON MY EYES

6 hours ago
Debopam77

This isn't depression, it's a cry for help.

6 hours ago
Select_Blackberry543

Yep, that make my readability drop to -1

6 hours ago
Elijah629YT-Real
:ts::js::c::cp::cs::rust:

It’s not even good code

6 hours ago
WinkAndWithdrawn

Lmao, both are accurate, but that Java code hits a bit too close to home! Anyone else debugging till 3 AM feeling like a part of their soul is being permuted? 😅

6 hours ago
Ineeddramainmylife13

Ugh reminds me of the time I accidentally took the harder coding class that was required. One of the worst classes ever (teacher sucked)

5 hours ago
sakkara

When a python dev tries have for the first time :D

4 hours ago
korneev123123
:py:

Most of my programming experience is python, so I never understood what is wrong until comment section. My only guess was "Java surely must have built-in function for that, like itertools.permutations in python. Maybe it's the joke, that depressed person rewrites library functions"

24 minutes ago
milboldi

I had my C++ segfault in the inplementation of GTest on a random ass move. We debugged it for 3 days, than we came to the conclusion, that my linux distro is fucked, and the problem isn't in the code.

15 minutes ago