How to speed up Web Development in Java

This is an article I’m currently working on (its just rough notes at the moment).

Java features ( Java 8 and beyond )

eg var for variables in methods

Spring Boot

Can be up and running as fast as a Laravel app ( can even have a prod grade server, so just start server and you’re good)

Spring Dev Tools – Spring fast restrarts

JRebel ( rem costs £400 per year )

Spring STS Eclipse

Clean Code

Make it obvious was code does from variable and function names. Reading less code, saves alot of time. Loads of comments can be distracting (and wrong as they never tend to get updated ).

Let the code tell its own story by making it obvious and easy to read ( avoid doing too much in a line that at one time, sometimes breaking it into a few lines will be much better for maintainability).

Testing – use BDD tests

BDD gives the most bang for the buck, when it comes to testing your code works, fine grained TDD tests will slow development.


For handy annotations such as @Data to remove boiler plate but will have the relevant stuff compiled into the class (such as getters, setters, toSting ). Automatic getter/setters on wrapper type classes save reading through code. Todo look at its NullPointer annotation looks handy.

IDE – use its full power

Learn some shortcuts for the cmds you use more e.g.

to add/remove comments

  • cmd (mac) + 7


Some good tips here e.g. save actions ( e.g. format source on save ) (preferences -> search ‘save actions’ -> tick organize imports and format code . Also worth checking out the other options 3rd checkbox – always add braces to ifs and loops for example ).


Use the your owe predefined templates for common actions

Leave a Comment