CrashCourse · @crashcourse
Software Engineering: Crash Course Computer Science #16
Uploaded June 8, 2018 · Length 10:35
Summary
Learn about software engineering, object-oriented programming, and IDEs for building large software projects.
- software engineering basics
- object oriented programming
- oop concepts
- apis explained
- ides for coding
- debugging code
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:03
Hi, I’m Carrie Anne, and welcome to CrashCourse Computer Science!
- 0:05
So we’ve talked a lot about sorting in this series and often code to sort a list of numbers
- 0:09
might only be ten lines long, which is easy enough for a single programmer to write.
- 0:13
Plus, it’s short enough that you don’t need any special tools – you could do it
- 0:16
in Notepad.
- 0:17
Really!
- 0:18
But, a sorting algorithm isn’t a program; it’s likely only a small part of a much
- 0:22
larger program.
- 0:23
For example, Microsoft Office has roughly 40 millions lines of code.
- 0:27
40 MILLION!
- 0:28
That’s way too big for any one person to figure out and write!
- 0:32
To build huge programs like this, programmers use a set of tools and practices.
- 0:36
Taken together, these form the discipline of Software Engineering – a term coined
- 0:40
by engineer Margaret Hamilton, who helped NASA prevent serious problems during the Apollo
- 0:44
missions to the moon.
- 0:45
She once explained it this way: “It’s kind of like a root canal: you waited till
- 0:49
the end, [but] there are things you could have done beforehand.
- 0:51
It’s like preventative healthcare, but it’s preventative software.”
- 0:55
INTRO
- 1:04
As I mentioned in episode 12, breaking big programs into smaller functions allows many
- 1:08
people to work simultaneously.
- 1:10
They don’t have to worry about the whole thing, just the function they’re working on.
- 1:14
So, if you’re tasked with writing a sort algorithm, you only need to make sure it sorts
- 1:18
properly and efficiently.
- 1:19
However, even packing code up into functions isn’t enough.
- 1:22
Microsoft Office probably contains hundreds of thousands of them.
- 1:25
That’s better than dealing with 40 million lines of code, but it’s still way too many
- 1:29
“things” for one person or team to manage.
- 1:31
The solution is to package functions into hierarchies, pulling related code together
- 1:35
into “objects”.
- 1:36
For example, car’s software might have several functions related to cruise control, like
- 1:40
setting speed, nudging speed up or down, and stopping cruise control altogether.
- 1:44
Since they’re all related, we can wrap them up into a unified cruise control object.
- 1:48
But, we don’t have to stop there, cruise control is just one part of the engine’s
- 1:52
software.
- 1:53
There might also be sets of functions that control spark plug ignition, fuel pumps, and
- 1:56
the radiator.
- 1:58
So we can create a “parent” Engine Object that contains all of these “children”


