On this post, I will cover one of the new Java 9 features that attracted my attention: REPL. If you want to know what’s new on Java 9, you can visit this link. What is a REPL REPL stands for Read-Eval-Print-Loop. It’s a shell where the user can type an expression, it will be evaluated, and the result will be returned to the user. To me, the main purpose is to interact quickly with Java without creating a java file, compile it and run it.
A few days ago I was working on feature in a project, and after a lot of commits and pushes, I wanted to show to my colleagues my changes…. but I wanted to show them in a single commit. How could I join my 10 commits in a single one? I had heard about squashing commits with git before, so I was confident it would be easy to do. Googling a little, and reading some examples, I was confident about what I had to do: