Building better projects
It’s amazing how much code has been deleted in my professional and personal projects lately. Java gets a lot of grief, some is valid. However, if written using modern practices and features its a really nice tool. In most of the projects I’ve worked with in late 2017 the
pom.xml is very small and builds are quick compared to most projects I’ve been a part of. Some could argue that most of that is because the projects are small microservices, but you can still build a monster if you keep writing code like you learned shortly after the new millennium started.
- Use whats built in - There is a surprising amount build into Java 5+, especially 8+
- Write Java like its 2018 - Streams and collections,
java.util.concurrentand subpackages, the new
Optional<T>, the new
- Keep your dependencies to as close to zero as reasonable - you don’t need Spring, Log4J, Apache Commons, etc for most things anymore! Every dependency you add is a liability, choose with care!
Writing more open code
Also I’m trying my hand at open source Java. Its not much and this project hasn’t seen production yet, but it sure was fun to write!
- Simple JDBC patterns written in Java 8 idioms - onlyleft/sqleight on GitHub
I ran across these videos on Youtube last year that helped with modernizing my Java skills.