Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
Refactoring is the process of taking existing code and improving it. While it makes code more readable and understandable, it also becomes much easier to add new features, build larger applications, and spot and fix bugs. In this course, staff author Simon Allardice introduces the formalized, disciplined approach to refactoring that tells you exactly what to look for in your code, and how to fix it, through a series of "code smells"—clues that let you look at a block of code and realize when there's something wrong with it.
Hi, I'm Simon Allardice, and welcome to Foundations of Programming, Refactoring. This is a course on how to take existing code in whatever programming language you have and make that code better. Okay, that's a loaded word, what do I mean, better? Well, I don't mean faster, I mean better-structured, better-built. Yes, more readable, and because of that, more understandable. Your code is easier to work with. It's easier to add new features, easier to spot and fix bugs. And it's a way to stop your code gradually getting out of control.
But refactoring is not a vague command to just tidy your code up. No, this is a formalized approach, a series of independent bite size techniques. Clues that will let you look at a block of code and identify how it can be improved. Exactly what to look for and exactly how to fix it. Many of the most common programming IDEs like, Visual Studio, Xcode and Eclipse will actually help you do many of these techniques. After learning even a few of these refactoring techniques you will find yourself naturally writing more modular code. That your object oriented code, of knowing the correct place to put a piece of functionality or a piece of data. It's like having a step by step approach to adopt really good programming habits. So let's get started.
There are currently no FAQs about Foundations of Programming: Refactoring Code.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.