using System;
public class Hello
{
public static void Main()
{
Console.WriteLine("Hello, World!");
}
}
vs print "Hello, World!"
Everything is just simpler in python and ruby. using System;
public class Hello
{
public static void Main()
{
Console.WriteLine("Hello, World!");
}
}
vs print "Hello, World!"
Everything is just simpler in python and ruby.Worry about the things that matter, the number of lines required to get to an entry point is not one of them. Neither is printing to the console.
And to be fair, if you are doing python seriously you would probably also have an ´if __name__ == "__main__":´ line, and a ´main()´ function called immediately from there to avoid shadowing of module variables. Assuming also you want to use the command line arguments you will have to ´import sys´ and suddenly the lines required are almost exactly equivalent short of the braces in C#.
Don't get me wrong, i absolutely love the conciseness of python but i frequently see this silly example being used which in the big picture doesn't mean anything. List comprehensions on the other hand is an excellent example of where the conciseness really shines. Really, you can do things in 1 line that in other languages takes 30. Although C# also has similar feature through LINQ so that's not a killer feature to convert someone from C# to python in particular.
This is a pretty big assumption, no pun intended.
Getting started on prototyping ideas is most of my life. I rarely use the code I write.
Console.WriteLine("Hello, World!");
That's all. So I'm not even talking about the greatness of the C# IDE.
(read: there is just a MASSIVE culture gap. It's just as unfathomable to Ruby/Python people why you'd ever use C#.)
In the exact same way that I might say "I use Arch Linux, and the only GUI program is Firefox. I live my entire life in the terminal, in vim, and I use languages that have no ceremony in the first place and prefer log statements to debuggers." That probably sounds like all downside to you.
Use whatever you like. It's not that important.
I would never resort to a language like C#. It doesn't mean I think less of the language. I just prefer Ruby.
I like not having to use IDEs. I like my text editors.
Discussing languages is like discussion flavours. It's just preference. It's like asking me why I prefer bananas over apples. I just do.
Python is not at the Lisp extreme, but it's not very far from it.
That's the thing, you need an IDE to be able to skip the boilerplate, whereas both Python and Ruby have a great REPL that is available from virtually every terminal emulator.
Personally, I like C# the language. I hate the baggage.
Simpler and easier to read.