How it feels writing your first program in C# versus python… Software LeMaster Tech — 22/10/2022 · 30 Comments
Before the C# devs make that angry "YOU DON'T NEED THOSE USING STATEMENTS" – this is a joke, and yes obviously the using statements auto populate when you create a new Visual Studio program, and No I am not saying one is better than the other. Please everyone relax.
C# is also exactly one line.
Hey you dont need all of that for hello world in c#. Just Type Console.WriteLine("Hello World");
In program.cs. nothing more. That's all
Why do c# devs have no sense of humour?
They forgot to include using system.humour
Now you can use oneliner in .c# 10
Console.Write("Namespaces are cool!");
Just type cw press tab and type hello world, see the output in C#. Much more concise. 😜
Pro tip: Try dotnet 6.0
I learned python before c# and wish c# was as easy as python
Dot net 6 says hello
Now try creating a windows form in python 🤣
you only need using System; ….
you should change the title to "how to make c# devs salty"
Or you can use visual studio and open a new project with all that already
C# can do many things too
Perfect trigger material
the python is script [base language], like u did open a file and go on but C# is a compiler [base language] so they are built different and also we use them both, in special cases.
An other point is we use .net command line to make project it's obvious no one start an application by typing those stupid "using"s
in case you made this short for fun it's good but compare them is like compare dogs with cats :)))
Looks like they can't take a joke.
Check out .NET6 and c# 10
Python is the best.
Yeah, Python is kids friendly. Now just leave the adults with real software.
p ‘Hello World’
Run & Done
Ruby > Python
because we should optimize all languages for 1 line toy scripts? besides this needs updated for net 6.0
thought it was java for a minute but it was too short.
You don't need any of that code for a small C# program.
Why did you put an emphasis on the tabs? C# doesn't follow that awful off-side rule, like Python.
I can relate to this, new languages are getting more simple lol
This bs. All you need is system. And for any real application for python, you'd need a dozen imports
Same depends for what you use language,
Btw c# is better than py