6
kobenz
80d

It's not enough to be clean, perfomant and maintainable, it needs to be beautiful. if it looks bad it's probably bad.

Comments
  • 1
    unless it's rust, but that's on rustc
  • 1
    Yes 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!
  • 0
    Clean code is already beautiful. Any other beauty added or expected is like adding lipstick that will wane off sooner
  • 1
    Beauty 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"
  • 1
    Are you talking about code, machinery, or romantic partners?
  • 0
    Tsoding: you have two kinds of people, people with nice code and people who get shit done. There's some truth in that
  • 1
    @retoor disagree. Those are not mutually exclusive and it only incentivizes to write shit code in order to "get things done" fast.
  • 1
    @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
  • 1
    @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.
  • 1
    @Lensflare Refactoring is THE tool to make code cleaner, less twisted, fluent, and more maintainable. Not sure about the beauty/ugly aspect
Add Comment