Releasing Maven Artifacts to Central Repository through Sonatype
I have released my first Maven artifacts to the Central Repository through Sonatype’s Open Source Nexus Server. You have to jump through some hoops to get everything just right to be able to release to...
View ArticleCertifications Huh, What are they good for Absolutely Nothing!
Certifications show you can study and take a test They don’t demonstrate that you actually comprehend any thing that was on the test. In the worse case certifications can turn off a lot of hiring...
View ArticleThe final word on final
Where is final used? There are a lot of Java developers that don’t understand the keyword final. The keyword final is one of your greatest allies in writing bug free maintainable code. It makes reading...
View ArticleEnforcing Fluent API adherence using Interfaces in Java
This some considerable noise on the internet about Fluent APIs and using them. There was a question on stackoverflow.com about how to enforce calling all the required methods to guarantee you fully...
View ArticleGetting the length of an array in that is passed into a function in C++ using...
I found a small template snippet that worked great for getting the length of an array in C++ without having to store the size in a separate variable. But one thing wasn’t working, calling that template...
View ArticleEffort Does Not Equal Effectiveness
I can’t count how many times I have looked at some code that gets it so wrong in so many ways and is completely excused because the team or individual is putting in a tremendous effort, doing it wrong....
View ArticleHow to dynamically load a dropdown with data from an AJAX call and allow...
As detailed in this question on StackOverflow.com, I am dynamically loading data into a series of dropdowns via AJAX. The problem is I want the user to be able to select the first element in the list,...
View ArticleJackson 2.x javax.management.ObjectName Custom JSON Serializer
The following is the source code for a javax.management.ObjectName serializer that recursively serializes and is a good example of how to avoid circular references. This is specifically aimed at...
View ArticleCheckedExceptions are an unnecessary anti-pattern!
The argument rages on still to this day about checked exceptions in Java. Personally I think they have always been a bad idea. Python gets along fine without checked exceptions, and I love me some...
View ArticleHow to interactively read user input from System.in using java.util.Scanner?
There seems to be 15 questions about how to use `Scanner` on Stackoverflow every day. Probably some new text book this year is causing this torrent of craptastic questions from anonymous students. Here...
View ArticleObfuscating String contents in Java to make reverse engineering just a little...
As I was reverse engineering some proprietary Java code that I only had the binaries for. Being able to view the .class files as hex and see the plain text contents of all the String objects made it...
View ArticleRemove tags in local repository and remote repository at the same time!
This alias takes a single argument, the tag to remove. It removes it from the local repository and them pushes the change to origin
View ArticleAutomatically generating an immutable value object implementation for Interface.
While refining my Type Safe Fluent Builder pattern implementation I wanted a way to materialize an Interface without having to write all the boilerplate code related to value objects and having huge...
View Article