Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
donuts236728yHonest Question: what's so good about Python? Im writing an app in it this week... Syntax is just so weird, coming from a C# POV
is not, if not, for in range(....), can't write a multiline if without escaping the lines with \...
All these quirks sorta makes me feel like I'm working VBA... -
wesaka4548y@billgates Atm, I'm working with java in a Android app, but I come from a C# background and fool around with python sometimes, my first impression was just like yours, but after some time you get used to it and start to see logic in it, now I even find python easier to code/read than C#
-
donuts236728y@wesaka I don't have much time tho, I'm now juggling python, c#, Java, n js....
Also Python those imports, from Car import Car? -
eldamir12298y@billgates wrap your if-statement in parentheses, and you won't need to escape the linebreaks 😘
-
@billgates Multiline strings get initialized via """ (three quotes), put variables in curlys and you can use .format to replace them.
-
Fradow9088y@billgates
Two things come to my mind when asking what's so great about Python :
1) it's not verbose. If you come from Java or C++ for example, you may appreciate it a lot. Also, there is no brackets, scope is defined by indentation.
2) it's pragmatic and well built. There is very little surprise (or call it magic if you want). Each language have flaws. Python is arguably part of those with the LEAST flaws. -
python is a terse langugue, with a lot of features that were missing in java (pre 8). I prefer its "with" syntax over the horrible mess java has, and the "elif" makes it a much more readable. However, python cannot run multiple threads in parallel, and can be very slow in certain cases. The lack of autocomplete in the Python IDEs is very annoying.
However, python is very very good to process text files,and for general scripting purposes I use it all the time.
Related Rants
-
skiilaa41"Are you familiar with uploading your code to Google Drive?" I left the building at that exact moment.
-
qbalsdon49Got this from a recruiter: We are looking for a **Senior Android Developer/Lead** at Philadelphia PA Hiring ...
-
nikolatesla9At the ending part of the interview, I asked a final question to the HR. Me: "So, what language is mostly use...
Them: You're a Python developer? So you work with snakes?
Me: ...
undefined
wk48