How not to code
Code snippet -
Object obj = iter.next(); logger.trace (6 , "This is exception class: " + obj.getClass () ); AppError appErr = (AppError) obj; logger.trace (6 , "This is exception erroCode: " + appErr.getErrorCode () );
Nothing wrong with this, this would work fine(provided that iterator, logger etc are initialized)...
But then....
2 Comments:
Yaar, you will see lot of such things.
Typically such code is written by people who might be good enough to program, but are not much good at "best practices".
Or by freshers.
- Darkstorm
Hello Yaarrr.... Darkstorm,
Kaisa hai tu?
Yep, you are right. Its a fresher. Unless you do not count someone with 1 year experience as a fresher.
Post a Comment
Subscribe to Post Comments [Atom]
<< Home