r/badcode • • Dec 24 '21

java Spring makes you do crazy things

Post image
738 Upvotes

42 comments sorted by

View all comments

Show parent comment

104

u/the_captain_cat Dec 24 '21 edited Dec 24 '21

I don't see any other explanation

Edit: holy shit, that's a fucking joke. Some of you guys are dense

45

u/R1l3y-F0x Dec 24 '21

Right?
Nobody with sound mind would write this and think "this is fine by me"

13

u/gabrielfv Dec 24 '21

Jokes on you to believe programming requires sound mind

12

u/ImAStupidFace Dec 25 '21

Terry Davis proved pretty conclusively that's not the case :p

6

u/gabrielfv Dec 25 '21

I felt that one. RIP

6

u/ImAStupidFace Dec 25 '21

Yeah, it really is a sad story. He was clearly vastly intelligent and despite his projects being a little bit deranged, it's still mad impressive what he managed to accomplish by himself.

10

u/The_All-Father3 Dec 24 '21

Welcome to reddit. Where if you don't have a /s you will be ridiculed and down voted a majority of the time. Especially on any subreddit with politics or finances.

-10

u/Cr4zyPi3t Dec 24 '21

The code in the post is bad, but it has nothing to do with Spring. You could just throw an Exception (either a custom one or a generic one like ResponseStatusException).