Join Simon Allardice for an in-depth discussion in this video Rule 4: Always look for the easy win, part of Programming Foundations: Code Efficiency.
Larry Wall, the inventor of the pearl programming language…said it best, for a programmer laziness is virtue.…And in this course we want to be as virtuous as possible as lazy as we can be.…And that's my rule number four of Code Efficiency.…Always look for the easy win, the simplest fix that we'll get us the biggest results.…A change we can make in one place that…will be a dozen changes we could make elsewhere, and…we don't just hope that one appears by accident or good fortune.…
We go looking for one, looking for the easy win instills the right attitude.…First the assumption that an easy win does exist and if we look…hard enough we will find one, and it helps us avoid the main pitfall…of this work, that we get so caught up in improving an area of…efficiency without thinking about whether this is the best area or even a worthwhile…area to work on.…But what does it actually mean to look for an easy win?…Well, it means, when we start measuring, we are looking for bottlenecks.…We're looking for the equivalent of a six lane highway suddenly shrinking down…
Learn to choose the right data types, understand the pitfalls of using high-level languages, and decide where to spend your time. Plus, see how the underlying memory management model may have more of an impact than you realize, and what performance issues you can expect working with databases and web services.
- Identifying problems in the code
- Embracing constraints
- Using code analysis tools to measure performance
- Managing memory
- Managing disk-based and network resources
Skill Level Beginner
Programming Foundations: Refactoring Codewith Simon Allardice1h 44m Intermediate
1. Approaching Efficiency
4. Algorithmic Efficiency
5. Disk-Based and Network Resources
Next steps6m 4s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.