Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 519 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 519 Bytes

35-refactor-my-code

(def shef 35) Refactor my Code Session

Some Examples

  • functions in OO languages that don't have functions
  • inline to function
  • conditionals
  • simple loops (eg. list of order IDs to the order values)
  • stateful loops (eg. list of order values to sum or highest value order)
  • nested loops
  • more complex loops to plain recursion
  • capturing context with partial application
  • composing functions
  • changing things in an immutable world
  • memoization
  • mutability as an optimisation
  • more?