Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 1.29 KB

File metadata and controls

41 lines (23 loc) · 1.29 KB

Pros and cons

Pros

Python is part of the LSB, so any Linux distribution must have it. Perl is too, but Java and Ruby are not.

Python is great for small / medium projects:

Cons

  • dynamic typing:

    a = 1
    a = "abc"
    

    What this means is that tons of projects will not document what types of objects functions need to get and large projects become a mess.

  • putting self in every class method: __init__(self)

  • global functions that should be methods functions: len([1,2]) instead of [1.2].len()

  • there are some key tools missing from the stdlib and without one very dominant implementation:

    • package management
    • auto documentation tools (e.g. Sphinx)
    • Rake equivalent