I Use the main() Method

December 9, 2013

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.

Share Button

9 Responses to “I Use the main() Method”

  1. Good point, but still this is slower than using native tools in linux.
    I doubt for example, that “grep” functionality written in java will be faster than the original.

    Also the skills of working in the shell can be used in any linux non-java environment for whatever tasks – configuration/setup of application stacks, work/process automation etc.

    P.S. Scripts can also be versioned.

  2. I’m also a Java developer on a Windows workstation.
    To have a basic shell without installing Cygwin, I use Console² (http://sourceforge.net/projects/console/) and GOW (https://github.com/bmatzelle/gow/wiki) to add some basic Linux commands.

  3. Would you care to blog about why was Ubuntu disaster for you?

  4. I also can’t figure out why people use those round things to get around on.

    I’ve invented my own alternative that is much better. I call it “The Wheel”

  5. Ha, I though I linked the proper article, but it seems something else was in the clipboard. So, here’s the short story of my Ubuntu experience: http://techblog.bozho.net/?p=708

  6. I drop a leave a response when I like a article on a website or if I have something to contribute to
    the conversation. It’s triggered by the sincerness displayed in the article
    I read. And after this article Bozho’s tech blog

  7. Hi colleagues, how is all, and what you want to say on the topic of this post, in my view its genuinely remarkable in favor of me.

  8. Software support should be accommodating and the cost should
    equal the value. Ease of use and web combination is other criteria utilized by the extensive undertakings for ERP choice.
    Net Suite: Net Suite software is easy to install and offers easy customization of the software to fit according to the needs of the

  9. […] pretty well. Same goes for project deployment scripts and the likes (and I generally prefer using a class with a main method rather than sed, awk, curl, etc, to test stuff). As for software that doesn’t run on Windows […]

Leave a Reply