Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Ik someone who always boasts about DRY, SOLID, perfect code etc but he's just overcomplicating everything to not repeat some line twice and misuses language features to look "smart", which results in the most unreadable and unmaintainable spaghetti code
Less than perfect is okay -
Hazarth95022y@devRancid uhm, excuse me. But code duplication is way less readable than an extra line or two here and there... Not to mention maintainable. You want to hunt the same broken code all over the codebase, or would you rather trust, that once you fix an issue, all related locations will use the fixed version?! >:c
-
@Hazarth it was literally 2 lines containing mostly independent string replacements with no related locations and doesn't need to be repeated more often in the future
He "refactored" it by adding 20 lines containing enum + map + forEach + with + dynamically creating the strings + some out of place methods to glue everything together 🤢
That's like rewriting print("Hello world") to not repeat the "l" character 3x -
-
@devRancid I’m offended that you would group me into the same category as this programmer u describe lol
Always estimating for the best possible, quality solution. I refuse to write anything less than perfect. Also I estimate the time based on how I feel that day lol.
rant
wk340