Join Simon Allardice for an in-depth discussion in this video The first rule applied to new code, part of Programming Foundations: Code Efficiency.
So, I've been talking about code efficiency, with the idea that…a problem will present itself, in an existing code, an existing application.…Maybe you've gotten complaints from users.…Maybe you've got metrics you're not meeting.…Maybe it's just you looking at you're own application, but somebody…is concerned that the application, or part of it, is too slow.…Or it doesn't start quickly enough. Or that it's not responsive enough.…Or it takes up too much CPU or too much memory.…But what about brand new code?…What if I'm writing a new application, new code, new classes, new…methods, and I want to write my latest code as efficiently as possible.…
Well, there are certainly general habits we can…get into when writing code, that will effect efficiency.…Making sure to choose the right data types and…data structures, asking certain questions about our loops and collections.…Being careful with string operations and…file input/output, and I'll cover many of these during the…course but when writing new code, rule number one still applies.…
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.