Architecture and design are the core foundations for any application. Conforming to the best practices and guidelines makes the application highly maintainable, performant, and scalable. Applications can vary from a web-based application, Web APIs, a server/client TCP-based messaging application, a mission-critical application, and so on. However, all of these applications should follow certain practices that benefit in various ways. In this chapter, we will learn certain practices that are common in almost all of our applications.
Here are some of the principles we will learn in this chapter:
- Coding principles:
- Naming convention
- Code comments
- One class per file
- One logic per method
- Design principles:
- KISS (Keep It Simple, Stupid)
- YAGNI (You Aren't Gonna Need It)
- DRY (Don't Repeat Yourself)
- Separation of...