Skip to content
EduVerse

You’re reading the free preview.Unlock every conversation for €2.99

FreeFree previewChapter 2

Chapter 2 · Free preview

Understanding Code

Illustration from the book

What you will understand

  • Explain how variables are stored in memory
  • Describe the difference between classes and objects
  • Name and apply the four pillars of OOP
  • Categorise programming languages (compiled vs. interpreted, typed vs. dynamic)
  • Use a package manager to manage dependencies

Written by EduVerse for this preview; the slides below are the book’s own words.

Slides from the chapter

Each slide is a passage from the book with the figure or listing it talks about. Swipe, use the arrow keys or the buttons.

Slide 1 of 4

Objects in Memory vs. Disk (A Preview)

2.1.4 · p. 44

Conversation from The Software Realm, Decoded

Chapter 2 · 2.1.4 Objects in Memory vs. Disk (A Preview) · p. 44

Peter, from the book cover

Peter asks

When I create const user = new User(...), where does it live?

The Senior developer, from the book cover

Senior developer

In memory, your computer’s RAM. Temporary. Fast. Gone when the program stops.

Peter, from the book cover

Peter

So if I restart my computer, the user disappears?

The Senior developer, from the book cover

Senior developer

Exactly. That’s why we have databases. They store objects on disk, permanent storage. We’ll dive deep into databases later, how they work, different types, when to use what. But for now, let me give you the basic mental model of how your code and databases work together:

Slide 1 of 4

Try it yourself

A simulation built by EduVerse around this chapter. It runs in your browser; nothing is sent anywhere.

Full book

The full chapter

This preview shows 5 of the chapter’s 34 passages. The full chapter has:

  • 4 sections
  • 19 conversations
  • 2 figures and tables
  • 12 What They Say boxes
  • 7 knowledge-check questions
Sections in this chapter
  1. 2.1What You're Actually Building
  2. 2.2The Languages Ecosystem: Choosing Your Tools
  3. 2.3Package Managers: The Librarians of Code
  4. 2.4Peter's Takeaways