Sitemap
spff

spff

Programming for normal guy (Index)

1 min readNov 5, 2019

--

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 has 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 readers 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.

Get spff’s stories in your inbox

Join Medium for free to get updates from this writer.

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, depend on your environment)
  4. observe it, try edit it as you want and run again. you’ll finally understand all the code.

--

--