JDK9 REPL JShell – this is some exciting stuff!

A couple of years ago I worked in a project with a Python backend. As I had only used python as a script language before I soon grew to really love the powerful interactive console that let me explore and learn the language (and which saved me a few hours of debugging every week). The interactive console is the thing I miss most when I’m in my Java codebase, but fear not, with JDK9 we as Java developers will also gain the benefit of a REPL!

repl

If you have 3 minutes over, take a quick look as I scratch on the surface of JShell

JDK9 is out in early access so check it out!

Over n out
@olbpetersson

Read More

Refactoring Legacy – A Google Guice Story

One word that sends shivers down most developers spines is ‘Legacy’. There are many different kinds of legacy-systems and obstacles that they impose. Legacy exists on a scale; on one end there are systems that you don’t want to touch because no matter what you do, they will most likely implode. On the other end there are systems that only have been mistreated code-wise or architecturally but actually have some kind of potential and can be refactored iteratively and improved upon. Some legacy-systems could be at their end of life while other will continue to live for a long time.

Not so long ago, i was a part of a team that got a legacy application assigned to us. This legacy-system was probably somewhere down the middle on the ‘legacy-scale’ and there were no plans to replace it. The perfect victim for some refactoring and improvements! Not only for the sake of the system but for the sake of the developers that are going maintain the application and introduce new features.

[…]

Read More