I use the main() Method
I use the main() Method
Join the DZone community and get the full member experience.
Join For FreeDownload Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.
My development machine has Windows. I have used Ubuntu at some point, but it was a disaster , so I switched back. And there are always people asking me how I manage to be productive on Windows, and if I don’t miss the shell.
Developers use the shell and the tons of available cool utility programs in Linux to achieve some supporting, auxiliary tasks. Doing mass-replace, automating some code-generation process, etc., etc. So don’t I miss the shell and bash programming in order to achieve tasks that are auxiliary to the actual development?
Well, I don’t. I don’t even use PowerShell. If my IDE doesn’t provide the functionality I need (or I don’t know it does), then I use a tool class with a main method. Java has a lot of powerful libraries that allow me to ditch the need of doing stuff in the shell or using bash scripts. And the good thing is – it’s Java, it can be versioned if needed, and it’s easy to use, with no additional learning curve, no man pages, etc.
Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat.
Published at DZone with permission of Bozhidar Bozhanov , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
{{ parent.title || parent.header.title}}
{{ parent.tldr }}
{{ parent.linkDescription }}
{{ parent.urlSource.name }}