Category: Java

  • Adding logs to code  or logging requests-responses  in any application has become an essential part of programming these days. Nearly every software application contains TBs of log files. Often programmers take logging for granted because of easy logging frameworks like slf4j, log4j. We hardly worry about the role of logs in our application performance. Logging…

  • I have seen many instances of the code looking dirty with very long Switch statement or If elses. Even lot of googling didn’t give me proper answer on what should be the right design to avoid such long code. So here I have attempted to solve such type of codes in practice and create Enum…