A few months back I asked about JavaScript tutorials for new coders that taught a declarative/functional style from the beginning.
Having received no solid answers here or elsewhere, I decided to consider writing my own.
Two days later I had a completely unwieldy outline for a tutorial program that would have taken months if not years to write, in keeping with my general tendency to plan enormous projects I will probably never finish. I kept it for posterity, although the current series will almost certainly be far more modest.
Introducing Simply JavaScript
Simply JavaScript is my attempt to create a series of tutorials teaching solid, modern programming techniques and computer science basics through the JavaScript programming language.
The title is an homage to Simply Scheme, an introductory computer science text published in the late 1990s for Berkeley undergraduates to prepare them for more rigorous coursework with the venerable Structure and Interpretation of Computer Programs.
I am under no illusion that I will produce some monumental, groundbreaking computer science and programming introduction, but I do hope to provide the resource I wish I'd had when I first started getting serious about programming.
I also think I'm going to learn a lot in writing this, which is honestly my primary motivation.
From the project repo:
Programming, not web development
The purpose of this series is to teach students how to write well-structured, efficient programs using the JavaScript language.
It is not a web development tutorial.
This is an important distinction. The latter will teach you how to build applications for a specific environment: a web browser and/or web server users will interact with via the browser.
These tutorials will teach you how to program, a skill that will enable you to build applications for any environment.
There's nothing wrong with web development tutorials as such, but it's crucial to have a strong programming foundation. If you know programming, you will build better web applications.
Given that web applications are the most common use for JavaScript, you will also learn a little about how to apply your programming knowledge to both client- and server-side web development, but it's not the main focus.
Computer science fundamentals, with modern programming techniques
After working through these tutorials you will have a solid understanding of basic computer science: how computers work, how machines parse and execute programs, how to organize and process data, and how to evaluate and improve program efficiency.
You will also develop the basic skills needed to write programs other developers can read, understand, and work on (and sometimes that "other programmer" will be you, 6 months in the future).
When you understand these things you'll have a massive advantage over others who have only learned the framework du jour or the basics of the JavaScript language itself.
You'll also be able to apply these fundamentals to any other programming language or framework.
Currently published tutorials
- Getting started with computing and 💻 computer science (with examples in JavaScript... and dessert! 🍰)
- In the beginning Kernighan created "Hello, world!"
Additional planned tutorials (titles and topics may change)
Section I: Basics of computer science, programming, and JavaScript
- Working with data and types
- Program control and Boolean expressions
- Functions: the building blocks of complex programs
- Complex data types and iteration
- Interlude: Programming languages in depth and the history of JavaScript
Section II: Abstracting with functions
- Scopes and closures
- Higher-order functions
- Recursion, but first: recursion
- Composition and the flow of data
- Lists and streams
- Declarative control logic
- Interlude: Declarative vs. imperative programming styles
Section III: Abstracting with data
- Simple vs. compound data
- Strings and string operations
- Numbers, math, and dates
- Arrays and iterators
- Dictionaries and maps
- Sequential abstractions (lists, stacks, and queues)
- Hierarchical abstractions (trees and graphs)
- Sorting and searching data
- Interlude: Algorithms and analysis
Section IV: Abstracting with state
- Program state and mutability
- Objects with prototypes
- Objects with classes
- Design patterns and object-oriented state management
- Functional Object composition
- Declarative state with reducers
- Interlude: Program decomposition and state management
Section V: Developing applications
- Designing programs
- Mastering asynchronous programming
- Event-driven programming and reactivity
- Programming the browser: The Document Object Model
- Programming the browser: Additional Web APIs
- Programming the server: Node.js basics
- HTTP requests and working with external data sources
- Full-stack development: Managing state with reactive UI
- Full-stack development: API development with Node and Express
- Full-stack development: Putting it all together
Epilogue: What's next?
Top comments (0)