We present the latest release of jpad java scratchpad:
The latest additions include:
- Improved Dump() of nested lists and arrays to present them as nested tables
- Better handling of runtime exceptions, stacktraces are now provided
- Added more examples, a comparator and a euler problem example.
A user asked me “Are you familiar with the REPL in Java 9? You should leverage it”. I want to lay out why I don’t.
To me a JEP is doesn’t yet feel like the right place for what I want to do. Yes, I have a bit of a REPL
but I consider it just one facet. Most java people love GUIs, I see JPad as an environment to quickly run java code and to visualise it in many
ways. To achieve this I want:
- To take an opinionated approach to what libraries are automatically included (guava/apache,lombok..). Reducing the code clutter.
- To provide an opinionated output format (Everything is a table and shows as HTML).
I think a JEP conflicts with taking quick opinionated approaches, I realise there are reasons for this, backwards compatibility etc. but that’s not something I think is important right now. If once people show interest and a load of visualizations and toString()/console outputs were added, then would be the time to consider canonical representations I think and where a JEP would be good.
That’s my 2 cents anyway 🙂
The new version is available now to download. Mostly it includes a lot of fixes, there is one new feature, a bytecode view: