Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What is the author suggesting? To write software using infinite loops changing global state? Makes sense for video games but not for the custom enterprise software where clean code practices are usually applied.

The enterprise code must be easy to change because it deals with the external data sources and devices, integration into human processes, and constantly changing end-user needs. Clean code practices allow that, it's not about CPU performance and memory optimizations at all.



>The enterprise code must be easy to change because it deals with the external data sources and devices, integration into human processes, and constantly changing end-user needs. Clean code practices allow that, it's not about CPU performance and memory optimizations at all.

There are no good metrics that measure how "clean code" (atleast the given rules) make the code easier or harder to change and maintain.

All the Java style "enterprise type code" from my experience is bloated, full of boilerplate getters and setters and all sorts of abstractions that often make things harder and not easier to understand/maintain, etc.

However CPU performance is easy to measure, and sticking to "clean code" rules as given in the video demonstrably sets you back a decade in hardware progress/makes the code run 10x slower.

> Clean code practices allow that

This is what you believe, not something you can actually measure as far as I know


I work in IT, and I don't think I've ever used an "enterprise" software product and thought to myself, "hey, this is pretty responsive!"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: