Archive
Risk
-
Incomplete JSP fragments can cause readability errors.
Why you should care JSP fragments are a portion of a JSP code passed to a tag handler so it can be invoked as…
-
Declaring errors prevents security risks
Why you should care Exception handling is the process in JSP to handle runtime errors. Any number of exceptions can arise when JSP page…
-
Avoid repetitive access to nested members
Why you should care As explained by W3C: “Accessing the DOM in browsers is an expensive thing to do. The DOM is a very…
-
Avoid literal numbers (i.e. Magic numbers are not so magic)
Why you should care A magic number is a direct usage of a number in the code (e.g. “if($foo > 65)”) which refers to…
-
Avoid using “this” unless it points to a newly created object (and tested)
Why you should care In some contexts, using the keyword “this” could impact software reliability and lead to unexpected behaviors. More specifically, in a…
-
Avoid Implied Typecasting
Why you should care Software development is an exact science and software doesn’t really like having doubts. Some programming languages have different ways to…