Programming for normal guy (Index)

spff
spff
Nov 5 · 1 min read

There are too many books teaching a certain programming language.

I think only linguists would read a dictionary page by page, normal people look up when they need. Those books are targeting audience who want to be a full-time programmer or a master of C/C++/Java/…, so each book have around a thousand pages, and the chapters arranged like below.

Topic A
easy… p.1~30
hard… p.31~150
Topic B
easy… p.151~180
hard… p.180~300

Topic Z

Those Topics might not have dependencies to each others, but most reader read sequentially and give up at p.250.

What’s more frustrating? Your first program is just printing a Hello World. Who is going to cheer for the dumb Hello World? Show me something interesting!

I believe in the near future, everybody will be able to do some little programming, but instead of “building a complex system”, it’ll rather be “scripting”, you may take advantage to accelerate your daily routine even you’re not a full-time programmer :D

The best way to learn programming is to perform Observing & Modifying back and forth.

Let’s get started~


Lesson 0

Install Python 3

Lesson 1

  1. copy & paste the code below, save it as main.py, or directly save the file https://gist.githubusercontent.com/spff/b8bbe09e53bcf01f3bb6dc8cf1f80c9a/raw/7015546d60d772ef745545f53006b04a89baf970/main.py
  2. open your terminal(terminal or cmd)
  3. run it python main.py(or python3 main.py, depends on your environment)
  4. observe it, try edit it as you want and run again. you’ll finally understand all the code.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade