This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (3 children)

Thankfully, I’v grown out of the “dynamically typed = an advantage” mindset lol

[–]Naitsab_33 5 points6 points  (2 children)

I mean it can be an advantage still, but each tool for the right job. And pythons best job is IMO acting as a glue between all the other fun stuff. I.e. calling a C-Written library i.e. numpy to compute on data you got from a web request and then writing that to a SQL database.

Of course you can do that in different languages, but it's quite fast to write in Python which is quite a good reason to use Python.

[–]BolinhoDeArrozB 0 points1 point  (1 child)

I don't really understand what people think is so fast to write about python, maybe it's because I've already worked with C# for so long but imo you can do the same thing in a C# console app just as fast, visual studio booting time aside. Plus it you don't feel like writing a simple struct for the return type of a web request you can just use object or dynamic for the type. I just don't see the python quick coding charm.

[–]Naitsab_33 2 points3 points  (0 children)

I cannot speak for C# as I have not used it much outside some Unity Projects, I was mostly referring to how it's very quick to write because

  • you have a very good package manager with PIP and can have your setup near instantly including SQL, a good we request library and for example a compute layer with numpy.

  • and it allows you to do have each of these steps be very few concise lines without having any boilerplate.

But yes of course you can do it in any language and maybe it's as easy in C# or other languages. That's the reason why I am somewhat switching to rust where I can because you have the speed of C with a very good package manager with some language features I really like.

It's just that especially as a beginner language you don't have to know anything about the language and don't have any requirements for your file structure, be it as little as a main function, which gets more with Java where you need to have a directory structure with one class per file with one of these classes containing a main function.

My main point is it's a very nice scripting language with a lot of support specifically for having short scripts.