MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/1i4e9yr/django_unchained/
r/shittyprogramming • u/h3uh3uh3u • Jan 18 '25
11 comments sorted by
39
nothing to see here, just a single ~16,000-line Python file in a Django project.
49 u/SuperFLEB Jan 18 '25 Featuring a GET handler that deletes things. 10 u/thirdegree Jan 18 '25 And exclusively returns 200 deleted successfully unless there's an actual exception no matter the request type or if any records were actually deleted 3 u/icanblink Jan 18 '25 Definitely need more context! 13 u/DevilGeorgeColdbane Jan 19 '25 Context context = new ContextBuilder<AppContext>().withContext(ContextAcessor.getAppContext()).buildContext()
49
Featuring a GET handler that deletes things.
10 u/thirdegree Jan 18 '25 And exclusively returns 200 deleted successfully unless there's an actual exception no matter the request type or if any records were actually deleted
10
And exclusively returns 200 deleted successfully unless there's an actual exception no matter the request type or if any records were actually deleted
3
Definitely need more context!
13 u/DevilGeorgeColdbane Jan 19 '25 Context context = new ContextBuilder<AppContext>().withContext(ContextAcessor.getAppContext()).buildContext()
13
Context context = new ContextBuilder<AppContext>().withContext(ContextAcessor.getAppContext()).buildContext()
16
Love that it returns 200 deleted successfully for all request methods, parameters, and database states.
prooooooo!!!
upsert=True #Update only, do not insert
upsert does not do what they think it does :D
8
Least messy medical code base
Does this even work? WTF am I reading
1
upsert ðŸ˜
39
u/h3uh3uh3u Jan 18 '25
nothing to see here, just a single ~16,000-line Python file in a Django project.
16
u/DevilGeorgeColdbane Jan 18 '25
Love that it returns 200 deleted successfully for all request methods, parameters, and database states.
10
u/gltchbn Jan 18 '25
prooooooo!!!
10
u/matrayzz Jan 19 '25
upsert does not do what they think it does :D
8
u/misingnoglic Jan 18 '25
Least messy medical code base
3
u/BigBoogieWoogieOogie Jan 18 '25
Does this even work? WTF am I reading
1
u/pcmouse1 May 05 '25
upsert ðŸ˜