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
-
coolq48267yPython is a flexible and dynamic language, making it easy to script fast. Let me list out some pros/cons:
Pros:
Fast scripting.
Focused on readability.
There are some cool "tricks" and "hacks" you can do, like bytecode manipulation.
Has lots of built-in and external libraries that are quick to install.
If you need speed, look at Numba, Numpy and Cython. Or Ctypes to integrate DLLs.
Can be embedded into other programs.
Becoming mainstream.
Cons:
Slow in runtime performance (unless you use one of the above libs).
Generally not used on microcontrollers, although "MicroPython" is being rolled out.
Difference in python 2 and 3, although there is the included 2to3 script that converts Python 2 to 3.
Beware that I absolutely love Python, and these may be biased opinions. -
@coolq what do you think about the syntax, I mean it's ok to try to improve readability, but it shouldn't be forced. like golang, they should be optional
-
coolq48267y@calmyourtities
I don't think it is forced, there are guidelines though, like the Zen of Python. In terms of syntax, Python is pretty much better than a compiler in every way, because it has the advantage of being an interpreter.
Haven't had much to do with golang, but right now I'm making a library called "Modular", I'm hoping to be able to make Python more modular, and change syntaxes and stuff. I'll see how it goes 😂
Should I learn Go? -
Just from experience:
In our company we have whole products that are coded in GO and a lot of internal tooling.
GO is easy to read, easy to learn and more productive.
But we don't have a single Python script because no one wants to.
We are about 80 Devs... -
@deathbutterfli
In general it is not about what language you learn.
It is important to never stop learning. -
coolq48267y@deathbutterfli
Try Python first, GO is relatively newer, and Python, as of now has a larger community around it.
Good luck btw! -
pjblinux3387yThere's no reason not to try things. Still your choice, Python is good. Well you cant master the whole thing tho, if you know the basics of programming im sure that it will be easy for you. Focus only on what you do and translate it into Python.
-
Yes.
Lesrn it firat from a web tutorial, then from small projects.
It's perfect for general use, scripting automations and quick prototyping.
Related Rants
Should I learn python?
If yes, why? Where, when, how can I apply it?
If no, why not?
question
python