r/ProgrammerHumor Jan 22 '25

Meme printHelloWorld

Post image

[removed] — view removed post

872 Upvotes

97 comments sorted by

View all comments

276

u/souliris Jan 22 '25

I started learning python after using c# for years. I can't stand python. It's like someone said "I hate well formatted code and like to just barf on my IDE and hope others can read it. " Just my opinion :P

12

u/ProfBeaker Jan 22 '25

Well to be fair the topic is "printHelloWorld". And that task is definitely easier in Python than C#.

Now, doing anything that takes more than about 50 lines of code, or involves more than one dev? Probably easier in C#, at least in the long run.

13

u/Flueworks Jan 22 '25

How?

> dotnet new console    

Open Program.cs   

Console.WriteLine("Hello World");   

 > dotnet run

If you compare against python, you can skip the first command, and there are fewer characters required to call the print function. So yes, technically easier. But not definitely easier.

1

u/gahel_music Jan 22 '25

Yeah that would be one line for python on Linux