Submitted by heartin on Sat, 09/05/2015 - 22:20
This note will list few things you should try to avoid in your design. Please also see notes on SOLID Principles and summary of additional design principles and best practices.
-
Run-Time Type Identification (RTTI)
-
Cyclomatic complexity (CC)
Submitted by heartin on Sat, 09/05/2015 - 22:14
SOLID is a mnemonic acronym introduced by Michael Feathers for five of the principles named by Robert C. Martin, and when applied together, these intend to make it more likely that a programmer will create a system that is easy to maintain and extend over time.
-
(++) Single responsibility principle (SRP)
Submitted by heartin on Mon, 06/01/2015 - 22:06
Enterprise Java Bean (EJB)
Enterprise Java Bean (EJB) was the Java EE way for creatng enterprise applications without worrying about middleware requirements such as transaction management, persistence, security, distribution, remoting etc.
The older EJB programming model however had many problems and POJO programming model emerged as an alternative means to solve those problems.
Submitted by heartin on Sun, 02/22/2015 - 03:49
Exceptions should be preferred over error codes as returning error codes will force you to have an “if” statement to check for error code, which may be confusing to some readers and there is also a chance that the caller may forget to check for error codes. If you use error codes, you will also need to have some class that defines all error codes.
Submitted by heartin on Sat, 02/21/2015 - 09:03
Is formatting your code important? Formatting your code properly is as important as working code. Proper formatting increases readability and hence maintainability, and also give readers the impression that the code was written by professionals. Let us quickly see some of the formatting issues from vertical as well as horizontal perspectives.
Pages