Free preview.You're sampling one lesson — enroll free to unlock all 6 lessons and track your progress.
Enroll free lesson
Naming and Style
Naming and Style
In this lesson — part of Conventions — you'll learn naming and style in Scheme and why it matters in real work.
Why it matters
Refactoring improves code's design without changing behavior — safely, in small steps.
Key ideas
- Code smells
- Small, safe steps
- Tests as a safety net
- Rename, extract, inline
In practice
Here's the idea in pseudocode — the exact syntax varies by language:
// Scheme: extract a function
function taxFor(x) { ... }
Try it yourself
Exercise: Take a long Scheme function and extract two well-named helpers.
Recap
You now understand naming and style and can apply it in Scheme. Mark this lesson complete and continue to the next one.
