Skills books › Coding for Beginners
What do you need to start learning to code?
Very little. Any computer will do, new or old, and Python, the language the book teaches, is free. You can even start on a phone, although typing code on a small screen is slow. The real cost is your time: a short practice session on most days.
What coding is
A program is a list of exact instructions that a computer follows, one after another. Every app on a phone, every bank machine and every online form is a program that someone wrote. Coding, also called programming, is writing those instructions.
A computer does exactly what you tell it, nothing more and nothing less. Learning to code is learning to give clear, exact instructions, one small step at a time.
The equipment
- A computer is best. Any laptop or desktop is enough. A computer at a library, school, internet café or community centre works too.
- Python is free. You can install it on a computer. You can also use one of the many free code editors that run in a web browser, so that nothing needs to be installed.
- An internet connection to set up. After that, Python on a computer works without data.
A code editor is a program that you type code into, and that can also run it. The book does not name any editor, app or website. A teacher, a library or a code club can help you choose one.
Can you learn to code on a phone?
Yes. There are free code editors for phones, and they can run every program in the book. But typing code on a small screen is slow. Use a computer when you can, even if it is only once a week.
What it costs
In the book's example, a learner uses the free computer at his library. He also buys data to install Python at home on his brother's old laptop.
- The download of Python and a free code editor is about 200 MB.
- His data costs R99 for 1 GB.
- The download therefore costs R19.80.
- Python and the editor cost nothing.
You can start for the price of a little data.
Practise little and often
Coding is learnt by doing: typing programs, making mistakes and fixing them. Reading about code without typing it teaches very little. A short session on most days works far better than one long session a week.
A good 30-minute session looks like this:
- 5 minutes: read the next part of the book.
- 20 minutes: type the examples yourself, run them, then change them and see what happens. Do not copy and paste.
- 5 minutes: write down one thing that went wrong and how you fixed it.
Thirty minutes a day on five days a week is two and a half hours a week. Over a 10-week school term, that is 25 hours of real coding.
Where coding can lead
Many jobs now use coding, not only jobs called "programmer":
- software developer, the full-time work of writing and maintaining programs;
- data and office work, where code sorts lists, checks figures and makes reports;
- technical support and testing, which means finding and reporting faults in programs;
- your own small projects, such as a tool for a stokvel, a church, a sports club or a family business.
Be honest with yourself
A beginner's book is a first step. It does not make you a software developer, and it does not promise a job. According to the book, getting a coding job usually takes months of regular practice and a few projects you can show. It often takes a learnership or a further course as well.
This guide is based on Chapter 1 of Coding for Beginners, which also helps you to write a coder profile and plan your first ten weeks.
This guide comes from the e-book Coding for Beginners: Your First Programs, Step by Step. R195 incl. VAT.
