How to start a new project

Open your favorite text editor and start typing a CSV file.

If your project is to learn a new language, you’ve already got the basic roadmap:

  • read from the file
  • populate to an array
  • write back to the file
  • refactor into functions
  • create a GUI
  • convert data to database
  • figure out the ODBC driver string

During the process, you can use shell scripts as glue code; initially, you let the script parse it:

setlocal enabledelayedexpansion

for /f "delims=, tokens=1,2,3,4,5" %%i in (csv-file.txt) do ( 
  java PrintArgs %%i %%j %%k %%l %%m
)

endlocal
goto :eof

Then you let Java parse it:

setlocal enabledelayedexpansion

for /f "tokens=*" %%i in (csv-file.txt) do ( 
  java PrintArgs %%i
)

endlocal
goto :eof

And then you make it monolithic:

java PrintArgs csv-file.txt

Bonus points for piping an object-oriented program in your daily work:

java PrintArgs csv-file.txt | findstr "RATFOR"