CrashCourse · @crashcourse

Software Engineering: Crash Course Computer Science #16

Uploaded June 8, 2018 · Length 10:35

Software Engineering: Crash Course Computer Science #16

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.

  1. 0:03

    Hi, I’m Carrie Anne, and welcome to CrashCourse Computer Science!

  2. 0:05

    So we’ve talked a lot about sorting in this series and often code to sort a list of numbers

  3. 0:09

    might only be ten lines long, which is easy enough for a single programmer to write.

  4. 0:13

    Plus, it’s short enough that you don’t need any special tools – you could do it

  5. 0:16

    in Notepad.

  6. 0:17

    Really!

  7. 0:18

    But, a sorting algorithm isn’t a program; it’s likely only a small part of a much

  8. 0:22

    larger program.

  9. 0:23

    For example, Microsoft Office has roughly 40 millions lines of code.

  10. 0:27

    40 MILLION!

  11. 0:28

    That’s way too big for any one person to figure out and write!

  12. 0:32

    To build huge programs like this, programmers use a set of tools and practices.

  13. 0:36

    Taken together, these form the discipline of Software Engineering – a term coined

  14. 0:40

    by engineer Margaret Hamilton, who helped NASA prevent serious problems during the Apollo

  15. 0:44

    missions to the moon.

  16. 0:45

    She once explained it this way: “It’s kind of like a root canal: you waited till

  17. 0:49

    the end, [but] there are things you could have done beforehand.

  18. 0:51

    It’s like preventative healthcare, but it’s preventative software.”

  19. 0:55

    INTRO

  20. 1:04

    As I mentioned in episode 12, breaking big programs into smaller functions allows many

  21. 1:08

    people to work simultaneously.

  22. 1:10

    They don’t have to worry about the whole thing, just the function they’re working on.

  23. 1:14

    So, if you’re tasked with writing a sort algorithm, you only need to make sure it sorts

  24. 1:18

    properly and efficiently.

  25. 1:19

    However, even packing code up into functions isn’t enough.

  26. 1:22

    Microsoft Office probably contains hundreds of thousands of them.

  27. 1:25

    That’s better than dealing with 40 million lines of code, but it’s still way too many

  28. 1:29

    “things” for one person or team to manage.

  29. 1:31

    The solution is to package functions into hierarchies, pulling related code together

  30. 1:35

    into “objects”.

  31. 1:36

    For example, car’s software might have several functions related to cruise control, like

  32. 1:40

    setting speed, nudging speed up or down, and stopping cruise control altogether.

  33. 1:44

    Since they’re all related, we can wrap them up into a unified cruise control object.

  34. 1:48

    But, we don’t have to stop there, cruise control is just one part of the engine’s

  35. 1:52

    software.

  36. 1:53

    There might also be sets of functions that control spark plug ignition, fuel pumps, and

  37. 1:56

    the radiator.

  38. 1:58

    So we can create a “parent” Engine Object that contains all of these “children”