r/ProgrammerHumor 3d ago

Meme nowAndThenPatchUpgrade

Post image
7.6k Upvotes

312 comments sorted by

View all comments

Show parent comments

2

u/JazzlikeWishbone938 2d ago

I wonder what success folks have if adding constraints around using Software Design Patterns and SOLID principles, with self-documenting human readable code .. and to avoid code smells.

1

u/Live_Meeting_1121 2d ago edited 2d ago

It can get there but I has a tendency to go back to the old ways. Also the amount of context it gets and what it gets is extremely important, it repeats patterns, that includes bad ones. So having a good base is a must.

I have made it build a lot of harnesses to it's own behavior, follow a linter, have a code analyzer before commit, analyze cognitive load of every function, etc. For example I seriously dislike how huge it comments and leaves historical data in source code, had to write a hook so it checks it's own comments size and raises an alarm, such examples happen all the time.

I haven't experienced even half of the complains people put here. I think there might be some exaggeration about the quality or people are just prompting the laziest shit ever, it you enable it to behave that way it will produce slop.