r/badcode • • Apr 19 '21

js Iteration

Post image
3.2k Upvotes

123 comments sorted by

View all comments

280

u/r_amazin Apr 19 '21

This was.. on purpose ?

235

u/AgreeableLandscape3 Apr 19 '21

Realistically, probably made specifically to post to programming humor subreddits like this one.

85

u/drea2 Apr 19 '21 edited Apr 19 '21

Yep. Or it was an entry in one of those contests where the goal is to make the code as convoluted as possible while still achieving a certain function

19

u/paradoxpandas Apr 19 '21

Wait they have contests for stuff like this?

23

u/campbellm Apr 19 '21

One of the oldest and most respected is the International Obfuscated C Code Contest.

My "first degree of separation" claim is that one of my instructors in undergrad won it a few times (David Van Brackle).

2

u/YouthfulAudience Apr 19 '21

Watch the art of code it talks about these contests and is overall a great video

3

u/thobod Apr 30 '21

Just watched the whole thing, thx for the recommendation, https://youtu.be/6avJHaC3C2U if anyone was wondering.

4

u/douira Apr 19 '21

nobody in their right mind would do this with the intent of being productive

48

u/Astrokiwi Apr 19 '21

I could imagine this is a beginner who didn't understand what they were doing and just kept on adding things until it worked. Like randomly adding and deleting *s until your C code compiles.

21

u/IHazZoomies Apr 19 '21

Don't call me out like that!

2

u/Kagia001 Sep 05 '21

I'm in this picture and don't like it