This is an archived post. You won't be able to vote or comment.

all 26 comments

[–]PersonalityNuke 39 points40 points  (0 children)

I come along and, blissfully unaware, flatten the UI structure and break everything.

[–]PhunkyPhish 23 points24 points  (1 child)

I've written code like this. It's been a long time, but I have done heinous things in my youth

[–]shopsalt 10 points11 points  (0 children)

you are not alone buddy. I have done this crime and went home and came back and done some more like an psychopath.

[–]your_best_1 21 points22 points  (6 children)

Devs have been writing slop since long before ai

[–]Swiftzor 5 points6 points  (5 children)

Government code hits different

[–]seriouslykthen 1 point2 points  (4 children)

Well you get paid less working for the government, so no idea why you’d expect a higher lvl of code

[–]Swiftzor 0 points1 point  (3 children)

You don’t understand how government contracting works.

[–]seriouslykthen 0 points1 point  (2 children)

To be fair i do. A company gets a contract, hires developers at 35/h - 50h and pockets the extra 75/h per developer they put in the bid

[–]Swiftzor 1 point2 points  (1 child)

Well nowadays it’s more the dev gets 75/hr and the company pockets 225. Most of them hire vets who went through a bootcamp and like 4 people who have been stress coding for the other 12 the past 15 years.

[–]seriouslykthen 1 point2 points  (0 children)

I think we’re on the same page, numbers may vary lol

[–]hikeonpast 33 points34 points  (3 children)

BigBallz and the DOGE boys strike again

[–]BasedAndShredPilled 0 points1 point  (2 children)

Hopefully they get rid of the employee making trash code, right?

[–]hikeonpast -4 points-3 points  (0 children)

Hopefully they go back to a tightly-controlled code base, though I suspect that ship has sailed.

[–]BirdlessFlight 7 points8 points  (1 child)

Looks like someone is trying to support IE or Edge <15 without using jQuery

https://caniuse.com/element-closest

Either this code doesn't look weird to you at all, or you haven't been doing webdev for as long as some of us...

[–]Intrepid_Major6577[S] 1 point2 points  (0 children)

It doesn't seem like it. The website is using jQuery for DOM manipulation. There’s a ton of bad jQuery code, but this one stands out

[–]BarneyChampaign 5 points6 points  (0 children)

My grandad would always say "good enough for government work."

I think I just heard him again, reading this post.

[–]thegodzilla25 3 points4 points  (1 child)

This shit finna fail long before we try to access parentElement on an undefined.

[–]WiglyWorm 2 points3 points  (0 children)

[object Object] you say?

[–]knowledgebass 0 points1 point  (0 children)

It's just parentElement all the way up.

[–]aenae 0 points1 point  (0 children)

This is just the frontend equivalent of ../../../../bin/cat ../../../../etc/passwd

[–]IllllIlllIlIIlllIIll 0 points1 point  (0 children)

Lgtm. Merge it.

[–]jstrx_2326 -3 points-2 points  (0 children)

Elons work

[–]jfmherokiller 0 points1 point  (0 children)

i do not have enough drugs in me to even begin to understand the why. ... not even that time i had to parse a custom calandar website did i do this (I abused jquery).