In Python, functions are first-class citizens. Can be passed like any other value For instance: cities.sort(key=lambda c: len(c)) If you need to maintain state, create a class that implements the __call__ method It can be like a function f = myClass() f()
  7 Random coding tips Focus on problem solving Test your code Don't rely on a framework or library Define your career goals Take breaks Recognize your weaknesses Take tasks that scare you
  Design patterns in 1 tweet Prototype: have a fully-initialized instance of an object ready for other objects to clone it. Ex: Initial state of a chessboard, that any game can copy (instead of building it for every game).
  "All problems in computer science can be solved by another level of indirection." - David Wheeler
  "Garbage in, garbage out" does not only apply to the data you feed your programs. It is also true for the data you feed your brain. By reading: - Other people's code - Good books - Whitepapers that explain the design of systems you use You will output better code and systems
  I went from part-time developer to Amazon developer in 3 months of study. What can you achieve in the next three months if you're focused?
  "Always code as if the guy who ends up maintaining your code will be a violent psychopath you knows where you live" -- John F Woods
  You: "I'll write tests later" Also you: "Why does this software break all the time?"
  When they say "everything in the backlog is a top priority" They really mean "we have no idea what we are doing"
  Common traint I've noticed among good developers: They're not afraid of looking dumb over and over again.
  Getting a job at a FAANG company won't make you happy, but you have to get there to see it for yourself
  Don't take coding or career advice from people who haven't walked the walk
  A programmer's sole purpose is to deliver value to users in the form of working software.
  If it takes you 4 years to get a degree Why do you quit programming after 2 weeks?
  My first developer salary was $600 a month ($7200 a year) working at uni. I currently make 6 figures a year. It took me 5 years but I make in one month more than I could make in one year. Give yourself time to grow.
  If you followed the advice you give others, you'd be a great programmer already
  