Coding for Beginners Guide Books from BDM

Coding for Beginners guide books, designed to make it easier to get started with some of the most popular programming languages around!

If you are looking for easy-to-follow tutorials that will introduce you to, and then increase your knowledge of, coding and programming, then these guide books are for you! Packed with step-by-step guides, designed to ease you in to the world of coding, every page will help you increase your coding knowledge. Our coding for beginners titles are written by experienced coders, but squarely aimed at those completely new to messing around with code. Each guide book contains hundreds of tutorials, tips and guides, all illustrated by high-quality images and code examples, making getting started as easy as 1-2-3.

Make the Coding for Beginners guide books your first stop on your programming journey, and you will soon be on your way to being a fully-fledged coder, able to design simple games, delve in to Scratch and Python, and even code with Windows 10 batch files!

Three of our latest guide books

High-quality, informative and packed with tutorials!

Each of the Coding for Beginners guide books is printed on high-quality gloss paper to make the most of the images inside. Each contains between 146 and 192 pages, for as little as £9.99 (excl. P&P), making them an extremely good value package, especially when compared to similar guide books on the market.

Added value comes in the form of the completely free files we offer for download from our website (details can be found inside those guide books where it applies), making it possible to follow and learn the image editing tutorials using exactly the same files we have used.

coding for beginners guide books

Example Content: Getting Started with Batch Files – Coding for Beginners Vol 31

Before you begin to program with batch files, there are a few things you need to know. A batch file can only be executed once it has the .bat extension and editing one with Notepad isn’t always straightforward. 

A New Batch

Throughout this section on batch files we’re going to be working with Notepad, the command prompt and within a folder called ‘Batch Files’. To begin with, let’s see how you get to the Windows command prompt.

Step 1 – The Windows command prompt may look a little daunting to the newcomer but it’s simply another interface (or Shell) used to access the filesystem. You can go anywhere you like in the command prompt, as you would with the graphical interface. To begin, click on the Windows Start button and enter CMD into the search box.

Step 2 – Click on the search result labelled Command Prompt (Desktop App) and a new window pops up. The Command Prompt window isn’t much to look at to begin with but you can see the Microsoft Windows version number and copyright information followed by the prompt itself. The prompt details the current directory or folder you’re in, together with your username.

Step 3 – While at the command prompt window, enter: dir/w. This lists all the files and directories from where you are at the moment in the system. In this case, that’s your Home directory that Windows assigns every user that logs in. You can navigate by using the CD command (Change Directory). Try:

cd Documents

Then press Return.

Step 4 – The prompt should change and display \Documents>; this means you’re in the Documents directory. Now, create a new directory call Batch Files. Enter:

md “Batch Files”

You need the quotations because without them,  Windows creates two directories: Batch and Files. Now change directory into the newly created Batch Files.

cd Batch Files

You won’t need the quotes to change directories.

Step 5 – Now that you have the directory set up, where you store your batch files, here is how you can create one. Leave the command prompt window open and click on the Windows Start button again. This time enter Notepad and click on the search result to open the Notepad program. Notepad is a simple text editor but ideal for creating batch scripts with.

Step 6 – To create your first batch file, enter the following into Notepad:

@echo off

echo Hello World!

By default, a batch file displays all the commands that it runs through, line by line. What the @echo off command does is turn that feature off for the whole script; with the ‘@’ (at) sign to apply that command to itself. 

Step 7 – When saving anything in Notepad the default extension is .txt, to denote a text file. However, you want the extension to be .bat. Click on File > Save As and navigate to the newly created Batch Files directory in Documents. Click the drop-down menu Save as Type, and select All Files from the menu. In File Name, call the file Test.bat.

Step 8 – Back at the command prompt window, enter: dir/w again to list the newly created Test.bat file. By the way, the /w part of dir/w means the files are listed across the screen as opposed to straight down. Enter dir if you want (although you need more files to view) but it’s considered easier to read with the /w flag.

Step 9 – To execute the batch file you’ve just created, simply enter its name, Test, in the command prompt window. You don’t need to add the .bat part, as Windows recognises it as an executable file, and the only one with that particular name in the current directory. Press return and see how you’re greeted with Hello World! in the command prompt.

Step 10 – The echo command displays whatever is after it to the screen. Right-click the Test.bat file from Windows Explorer and select Edit to add more echo commands if you like. Try this:

@echo off

echo Hello World!

echo This is my first batch file

echo.

echo With a blank line between!

Remember to save each new change to the batch file.

coding for beginners BDM

Take you coding knowledge to the next level with any of our coding for beginners guide books! And then, when you have dipped your toes in the world of programming, take the next step and delve deeper into Coding, Python, Raspberry Pi or Linux.