This article makes a good point about Java's main method. Its privileged status makes it a fine starting point for reasoning about a program. However, it would be better if its signature encapsulated all the inputs to your program: not just args, but env vars and I/O streams too.https://twitter.com/adamwarski/status/963768358821859328 …
-
-
Replying to @propensive
Environment variables are the bane of my existence
2 replies 0 retweets 3 likes -
Replying to @larsr_h
They're awful, yes. They would be slightly less awful if they were more obviously an input passed to a main method, rather than something magically available from a globally-scoped object.
1 reply 0 retweets 4 likes -
Replying to @propensive @larsr_h
You mean like this? int main(int argc, char *argv[], char *envp[])
1 reply 0 retweets 0 likes
That looks like a different awful that I don't fully understand!
1:01 PM - 15 Feb 2018
from Marrakesh Medina, Morocco
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.