Hello, World!
Hello hellsite, long time lurker here, I've finally decided that I might have some interest in putting stories, anecdotes and thoughts out there...
And, as a programmer, what better way than with an hello world anecdote?
For those who don't know, an Hello, World! program is usually the first code a beginner would be taught to write.
For traditional programming languages it's usually a print to screen statement, like for example:
In Python it's as easy as it gets: print("Hello, World!")
In Java, and many other languages, there are some hoops that you need to jump through:
What I find fascinating is that there are some programming languages where a print to screen might not even make sense, in those cases the Hello, World! programs can vary wildly!
Since I started working I personally encountered 3 that I want to share:
In Arduino, the goal is to create something that is easily reflected into the real world but Arduinos are not typically equipped with screens, as such their Hello, World! program looks like this:
With the code on the right, the arduino flashes its tiny led on and off forever!
In Ladder logic, the goal is to simulate a simple electrical circuit, here I would've expected a simple button that turns on a light, but instead the general consensus is that the Ladder logic Hello, Wolrd! is a motor with a START and a STOP button like this:
The gif shows that the motor is turned on when the start button is pressed (The start variable on the left becomes True) but it also stays on thanks to the little secondary row that power the circuit when the motor is on, basically keeping itself alive. At the same time when the stop button is pressed the whole circuit is turned off.
And lastly, in the Inform language of industrial robots, the Hello, World! program looks like this:
Which doesn't look like much because these Industrial robots have an implicit system of coordinates that every movement in space uses for a movement statement (Those MOVJ are free flowing movements in space), so the execution of the above code ends up looking like this:
Anyway, I hope you found this as interesting as I did. To many more future tumblr posts, cheers!

















