12

Should I learn python?

If yes, why? Where, when, how can I apply it?

If no, why not?

Comments
  • 13
    Python 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.
  • 1
  • 1
    @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
  • 1
    @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?
  • 4
    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...
  • 1
    Woah. Should the question now be : Should I learn Go?
  • 4
    @deathbutterfli
    In general it is not about what language you learn.
    It is important to never stop learning.
  • 3
    @deathbutterfli
    Try Python first, GO is relatively newer, and Python, as of now has a larger community around it.

    Good luck btw!
  • 3
    There'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.
  • 0
    MIT has a course (on edX): 6.00.1x
  • 1
    I only use python when there are maths involved , signals analysis etc..
  • 0
    Enki?
  • 1
    @Mitiko
    Enki is the best. Didn't know others used it 😉
  • 1
    @coolq I'm in the devRant team, it'd be cool if more people join
  • 1
    Yes.
    Lesrn it firat from a web tutorial, then from small projects.

    It's perfect for general use, scripting automations and quick prototyping.
  • 0
    @Mitiko
    I'll see if I can 😉
Add Comment