#Maintainability
3 notas · última:
Part 2: Design Principles in Software Development
A page presents five software design principles, explaining how abstractions, separation of responsibilities, and reducing duplication help keep code cleaner, easier to maintain, and easier to extend.
My favorite alternative to JavaScript’s switch statement
The post argues that JavaScript switch statements become cumbersome, and shows how object literals and first-class functions can replace them with code that is more modular and easier to extend.
Split route namespaces into different files
The page recommends separating Rails routes by namespace into different files. This makes complex route sets easier to maintain and lets Rails reload only the file that changed.
