When to Refactor Your Code into Generators and How

When to Refactor Your Code into Generators and How

PyCon US via YouTube Direct link

FIBONACCI NUMBER (DEFINITION)

5 of 18

5 of 18

FIBONACCI NUMBER (DEFINITION)

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

When to Refactor Your Code into Generators and How

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 GOALS
  3. 3 TOPICS
  4. 4 VARIATIONS ON FIBONACCI NUMBER SELECTIONS
  5. 5 FIBONACCI NUMBER (DEFINITION)
  6. 6 FIBS LESS THAN N (PYTHON)
  7. 7 SMALLEST FIB GREATER/EQUALN(PYTHON)
  8. 8 THE PATTERN
  9. 9 TIME TO START REFACTORING YOUR CODE
  10. 10 CODE REFACTORING
  11. 11 EXTRACTING COMMON PARTS NOT DOABLE!
  12. 12 EXPERIMENT: COMBINE THE FIRST TWO FUNCTIONS
  13. 13 REFACTORING THE RIGHT WAY: SINGLE RESPONSIBILITY
  14. 14 CONTEXT SWITCH: GENERATOR FUNCTIONS
  15. 15 THE FIBONACCI NUMBER GENERATOR
  16. 16 EXAMPLE USAGE OF THE FIBONACCI GENERATOR
  17. 17 THE SMALLEST FIB GREATER/EQUAL N (PYTHON, REFACTORED)
  18. 18 RECAP

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.