Join Simon Allardice for an in-depth discussion in this video Rule 2: You don't know the problem, part of Foundations of Programming: Code Efficiency.
We get to my rule number two of code efficiency.…Assume you don't know what the problem is until you measure…it, you don't know what the problem is until you measure it.…If an application has an issue, slow to start, slow to respond, slow to finish.…If it has a user interface, perhaps, the screen is freezing for a second…or two, animations are jittery or all…sorts of possible issues that could presents itself.…Well, your gut feeling about what is wrong with…it is an astoundingly bad way to approach this.…Sure, your gut may be right from time to time, the law…of numbers would suggests that, but it's a very habit to get into.…
You would be mistaking the symptom for the problem,…and the same symptom can manifest for very different problems.…A user interface that freezes for a second might be a memory issue…in one case, a threading issue in another, a network issue in another,…an algorithm issue in another.…So we always want to use some kind of objective measurement, some…kind of performance analysis to prove that we understand where the problem lies.…
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
Foundations of Programming: 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.