When I was in school studying to be a professional musician, it wasn't enough to simply learn a new chord progression or lick. Instead, to truly grasp it, we would learn how to play that very melody up and down the guitar neck, in multiple positions. The same is absolutely true for programming. Let's review an example where we take a basic PHP function like array_chunk()
, and rewrite in several unique ways.
*Series still in development. Check back often for updates.