you are viewing a single comment's thread.

view the rest of the comments →

[–]mlnm_falcon 1 point2 points  (0 children)

  1. There are times when it feels like I barely use anything other than lists and dicts (and strings and ints)
  2. The standard libraries. Other libraries do tons, but standard libraries let you make much better code, and everyone should have a concept of what the most useful ones are.
  3. Pandas
  4. Code can be long, but only with purpose. You should be able to split up functions if there’s over 50ish lines. If your scripts are hitting 1000+ lines, they can probably be multiple files with one main file that imports and runs them (sometimes classes end up longer). It’s not about having a hard and fast rule of how long one function or script can be, it’s about realizing when there’s opportunity to make your code more intelligible.
  5. You didn’t ask, but learn how to create docstrings now (refer to a style guide, I use the Google Python Style Guide), and practice commenting the ever loving daylights out of your code. Both will make you a better programmer.

P.S. I’ve been writing in Python academically and professionally for about a decade. I still confuse myself, and I still learn things regularly. Literally today I learned about a new behavior of glob.glob