Caching Objects
Sometimes you need to maintain a large number of objects in memory. If it is strings you may want to take a look at StringCache, which is based on my…
Java Tips Part 3
Continuing my Java Tips from experience that I have learned from code reviews to different programming tasks. Tip 11: Use Hibernate Statistics Now, this is only for your development profiles/environments,…
Shell Script Command Line Arguments
Obviously you do not want to add your Username/Password to scripts so how can you enter those and make use of execute_cmd and sftp_file without them? Simple provide them as…
Java Tips Part 2
Continuing my Java Tips from experience that I have learned from code reviews to different programming tasks. Tip 6: Don’t call .toString() on slf4j logging calls. So if you’re following…
ListUtils.iterate()
Ever have one of those objects that want to give you an iterator and don’t have a method for getting it as a list? Well created another new method for…
Protecting Personal Information when needed!
In today’s times, the software is always handling personal information. As developers, we have to fight the battle between logging and seeing that information when we need to, and hiding…
Java Tips Part 1
Over the years I have done a number of code reviews there have been a number of common mistakes that I have found. So here are my Java tips a…