2 Ten Times Ten Lines
The next few chapters lay the foundation for script programming. Depending on the language you want to work in and your previous knowledge, you might skip some of these chapters. But if you prefer linear reading, there are many pages describing theory and syntax before the much more exciting scripts follow. That’s why in this chapter I’m going to present ten short scripts, each a maximum of ten lines of code, as an appetizer, so to speak.
If you’re at the start of your scripting career, you won’t understand, or will only begin to understand, how these scripts work. But that does not matter! Each script ends with a cross-reference to a chapter in which a similar script or a more extensive variant is explained. At this point, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access