Recent Posts

How to Read Program Arguments in Haskell

less than 1 minute read

This is the one programming language to date where I have had the hardest time doing the little hello world program that prints a hello line per input argume...

How to Read Program Arguments in Rust

less than 1 minute read

Rust reminds me of C in many ways. The program arguments include the program name at the first index, but unlike C you have to make a function call to get th...

How to Read Program Arguments in Go

less than 1 minute read

There seems to be two schools of program options reading in programming languages. Those who have a main method where arguments are explicitly mentioned in t...

How to Read Program Arguments in JavaScript

less than 1 minute read

In JavaScript (nodejs) you can access the program arguments in the array process.argv. Like in C it includes the program name but unlike e.g. PHP and Ruby it...