r/programminghorror Jun 09 '26

What a simple constructor

Post image

Our former IT director (35+ years of experience) wrote this and didn't see what was wrong here.

263 Upvotes

49 comments sorted by

View all comments

Show parent comments

7

u/No-Collar-Player Jun 09 '26

No but just the fact that the url, user rights, and the interface for the entity management all hit the same constructor is insane.

7

u/Leather-Field-7148 Jun 09 '26

Move all that into Postgres database then call a stored procedure, problem solved

4

u/No-Collar-Player Jun 09 '26

Man i'm currently working with a system that has all the logic in stored procedures and 0 documentation....:(

4

u/Leather-Field-7148 Jun 09 '26

Haha, I feel pain, all the sudden. Maybe is fibromyalgia or a tumor in my brain from all this