How does one learn to code? Students in computer science and software engineering will have a few first-year programming courses, with the first one introducing basics like variables, control flow, and loops. Autodidact programmers probably started with a tutorial somewhere, but eventually got a book on the subject. Regardless of the learner’s path, we’re talking about a book that teaches “the basics.”

This is the table of contents I have in mind:

  1. Fundamentals
    1. math review (numbers, variables, functions, multi-step procedures)
    2. syntax and new type of objects (variables, functions, algorithms, int, float, list, dictionary, objects)
  2. Programming basics
    1. Expressions
    2. Functions
    3. Control flow
      1. If elif else
      2. Loops
  3. Structure of programs
    1. modules
    2. libraries
    3. frameworks
  4. Algorithms
    1. Binary search algorithm
    2. Sorting algorithms
    3. Graph algorithms
    4. Numeric algorithms
    5. Optimization algorithms
  5. Applications
    1. Fancy scientific calculations made easy (SymPy, numpy)
    2. Automate info. processing tasks (bash scripting)
    3. Generating reporting and useful analytics from data (pandas)
    4. Creating websites (Django)

It’s not the standard set of topics for the “COMP101 textbook” category,  but I bet with some thought put into it, it can be made to contain most of the material for a first-year coding class. We just godda make sure that profs will have enough to support teaching their class. Best of all it could all probably fit in 300 pages, and retail under $40. It could be even thinner, but would be better to have lots of exercises.

I’m thinking about this today because I was visiting McGill and had the chance to talk with the prof who taught my first-year programming course and we somehow got to the topic of textbooks. She remembered the computer science textbook she learned from, and described it as being very thin. So it can definitely be done.

The book described above doesn’t exist yet, but if you leave comments below telling me you want it, it will move up in the priority list…

 

UPDATE May 2021: I’ve received lots of requests for this book and started planning for it (collecting materials, scoping, and teaching programming basics). The plan for summer 2021 is to focus on No Bullshit Guide to Statistics, but programming with Python is next after that!

4 thoughts on “No bullshit guide to programming

  1. Maybe also a very brief history and a survey of programming languages and their best applications in the industry… This could be the last chapter, from which the reader can branch off into more specialized material…

  2. I do require such textbook (for the upcoming semester especially). The table of contents is just fine.

  3. I will gladly buy this book. I recently purchased your Linear Algebra book and it is wonderful. I think making a no bullshit guide to algorithms is highly needed. No implementation concerns. Just the algorithms and algorithm design techniques.

  4. Excellent title. Is the book out yet?

Leave a Reply to Vlad Cancel reply

Your email address will not be published. Required fields are marked *

css.php