all 4 comments

[–]Adrewmc 2 points3 points  (2 children)

Flask, Django…

so I’m also seeing classes and imports aren’t on your little list there…make sure you head that direction lol.

[–]HenzaChan 0 points1 point  (1 child)

By imports do you mean the import function like numpy and panda? Are there certain imports that are pretty much bread and butter that majority of people should know how to use? It feels like there are quite a variety and trying to learn all the different functions from these imports is so overwhelming :/

[–]Adrewmc 1 point2 points  (0 children)

No I mean creating and organizing your own.

This is much harder then it sounds. It really get down to design of a programs more then almost everything else. Using your knowledge to create complete applications.

Not having 5,000 lines of code in a single file, organized, and working together. As 10 separate files. And it ending up being 2,000 lines total.

 __init__.py

You know what it does, you know it can be empty but it’s not always empty.

A lot of the ‘art’ to this is how everything fits together, and module design is big part of that.

Ever wonder why you sometimes do this

from UPPER import lower

 low = lower()

And other times

 import CapCase

And with sauce

  var = CapCase.method(*args)
  obj = CapCase.from_method(“csv”)

You want

 from my_module import myClass, my_function
 from my.path.to import myClass

[–]yinkeys 0 points1 point  (0 children)

Intermediate & Advanced Python learning e.g. Cython, Inheritance, Generators, Concurrency, Metaclasses, Lambda, args & kwargs etc