Menu

Hello World!
📰

Hello World!

DEV Community: beginners·DevREML·29 days ago
#8ojTNpJF
#devtobeginners#devto#dev#code#console
Long article (1265 words) — no AI summary yet.
Reading 0:00
15s threshold

Writing “Hello World!" as your first program is a long tradition in programming. The earliest known example comes from Brian Kernighan who used a small program that printed “hello, world” in a tutorial for programming in 1972. This tradition became widely known through the book The C Programming Language by Brian Kernighan and Dennis Ritchie. And for good reason.

Hello World is a simple, yet powerful introduction to coding. It allows beginners to dip their toes into the world of programming and to see that the code that they write actually does something.

The source code

So, as tradition will have it, I did the same. In my IDE (I use Jetbrains Rider) I wrote the following line of code:

Console.WriteLine("Hello World!");

After running the command dotnet run ,or simply clicking the run button, the following output is displayed in the console:

Looks simple enough, right? Yet the question remained in my head: what exactly did I just write? What is Console.WriteLine?…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.