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
-
Lensflare1739280dYes but there are many devs without a sense of beauty out there who find their own crappy code to be beautiful!
Or worse, finding my beautiful code not beautiful! -
asgs1127980dClean code is already beautiful. Any other beauty added or expected is like adding lipstick that will wane off sooner
-
Hazarth948780dBeauty is subjective but in general I agree. I consider my code "beautiful" when it's both clean code, and the least amount of code with average or better performance.
Sometimes you just write code that just *falls in place* in a really good and simple to follow way and that's to me a good hint of it being a good code.
But then, I'm not convinced it's possible to write "beautiful" code for every use case. Sometimes when Performance or Memory is key, you'll need to make concessions to the readability and maintainability to get the most out of it... Other times you might want to prefer readability even at the expense of performance or "beauty" because you know the code might go through a lot of hands and it's more important that someone is able to maintain it in the long run! So even in coding, using a good common sense is often going to be better than just trying to optimize for "beauty", especially since your "beauty" might not be my "beauty" -
typosaurus1219080dTsoding: you have two kinds of people, people with nice code and people who get shit done. There's some truth in that
-
Lensflare1739280d@retoor disagree. Those are not mutually exclusive and it only incentivizes to write shit code in order to "get things done" fast.
-
typosaurus1219080d@Lensflare mwah, did work at a place that refactored their product (edit: 3 times) in sake of code quality before releasing it.. I prefer to do it as good as you can and just move on
-
Lensflare1739280d@retoor hmm, I don’t see refactoring as a tool to make code more beautiful or less ugly.
I see it as tool to change the code to fit a new or changed requirement better. -
asgs1127980d@Lensflare Refactoring is THE tool to make code cleaner, less twisted, fluent, and more maintainable. Not sure about the beauty/ugly aspect
It's not enough to be clean, perfomant and maintainable, it needs to be beautiful. if it looks bad it's probably bad.
rant