It's a common practice to code the phrase "Hello World!", to the screen the first time you use a new language or program. I wrote about this in an early blog post. But am updating not with syntax highlighting.
Here's how "Hello World!" is created in a few languages.
HTML
<title>Hello World</title>
<H2>Hello World!</h2>
JavaScript
console.log("Hello World!")
C#
Console.WriteLine("Hello World"!)
Python
print ("Hello World!")
def hello_function():
print("Hello World!")
hello_function()
Well time and frameworks change, is it time to replace Hello World? What would be a suitable replacement?
What would make a dev smile to see on screen?
My Suggestion
.
.
.
The classic greeting from an old mentor.
Hello There!
HTML
<title>Hello There</title>
<H2>Hello There!</h2>
JavaScript
console.log("Hello There!")
Python
print("Hello There!")
def hello_function():
print("Hello there!")
hello_function()
See it looks good.
-$JarvisScript git push
Top comments (13)
After my Mum passed away in 2009 I started using "Hello Mum!", as a simple regularly used reminder to myself to think of her - it works really well π
Better yet. Let's set an env variable on the system so each user can have their own personalized variations.
Eg. Hello {systemUser} or Hello {worldVar}.
In practice this could be:
As
Hello Nico!
I'd be cool if the program was a
Let's gooooooooooooo
app. All hype.Letβs get rid of foo/bar/baz while weβre at it. Those are just irksome.
Foo/bar made so hard to understand thing starting out. I kept thinking they were reserved words or something.
I'm guilty of using them for quick checks done in the console. But they're just for myself. I try to never use them in code or tests.
They are fun tho, and they relate to programming history and how it was taught in the US navy etc. :)
It's like programming culture/lore, i absolutely adore it. :)
Ayy lmao
that caused a little smile.
Glad to brighten your day a bit.
That's great.
Actually I pretty like hello world. As well as foo/bar/baz/quux and John Doe, Alice and Bob...