EASY to FOLLOW USER GUIDES CODING for BEGINNERS Get Started with Code
Total Page:16
File Type:pdf, Size:1020Kb
NEW EASY TO FOLLOW USER GUIDES CODING FOR BEGINNERS Get started with code Learn about Which code Linux, C++ and Why and more 100% INDEPENDENT Discover more of our guides... NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES BLACK & WHITE PHOTOSHOP ANDROID PHOTOGRAPHY FOR BEGINNERS FOR BEGINNERS MAC FOR BEGINNERS FOR BEGINNERS Portraits Apps explained More punch for Better at portraits the basics Work Landscapes Improve smarter your views Easy edits Tablet Latest features Editing explained Email techniques anywhere 100% INDEPENDENT 100% INDEPENDENT 100% INDEPENDENT 100% INDEPENDENT NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES CLOUD LINUX MINT PYTHON CODING FOR BEGINNERS FOR BEGINNERS FOR BEGINNERS FOR BEGINNERS Get started with code Get to Work Get more know anywhere from Mint Python For Use with Version 18.1 Grasp Mint Code Learn about Which code iCloud Google Drive Get hands on versions anywhere and Why & more Learn to code Linux, C++ explained with coding explained with ease anytime and more 100% INDEPENDENT 100% INDEPENDENT 100% INDEPENDENT 100% INDEPENDENT NEW! | Gmail | Drive | Chrome | Maps | Play BDM’s NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDESMade Easy Series PY THON DIGITAL The Complete BDM’s Made Easy Series & C++ PHOTOGRAPHY FRITZ!Box GOOGLEGuidebook Learn how to master Google’s unmissable free apps FOR BEGINNERS FOR BEGINNERS FOR BEGINNERS FOR The Complete BEGINNERS Over 827hints & tips inside Guidebook £9.99 Volume 19 Which Improve Search, 19 Volume US$19.99 Can$19.99 Aus$17.99 Get going NZ$18.99 camera is your Wi-Fi’s storage 100% INDEPENDENT with Python best for you security and more Apps to connect and work Learn the Photo Enhance & protect Get the bestKeep Discoverkids apps for Keep your photos basics for How to begin How to projects to How to Improve your your privacy applicationssafe for free whenwork & play & docs safe all ages with C++ get started learn set up network searching 100% INDEPENDENT 100% INDEPENDENT 100% INDEPENDENT 100% INDEPENDENT NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES NEW EASY TO FOLLOW USER GUIDES GoPro INSTAGRAM iPAD iPHONE FOR BEGINNERS FOR BEGINNERS FOR BEGINNERS FOR BEGINNERS In the air Your selfies Get started sorted with iPad Get started with iPhone Capture Editing iPad OS Master iOS Master water sports your Stories and IGTV Editing and explained iPad apps explained iOS apps action videos explained sharing 100% INDEPENDENT 100% INDEPENDENT 100% INDEPENDENT 100% INDEPENDENT CODING FOR BEGINNERS Starting something new can be daunting. Learning a skill or mastering a new piece of hardware is tough. Even tougher if you have no-one at hand to help. Conversely as the complexity of our consumer technology increases, the size of the requisite instruction manual decreases or in some cases it simply disappears. At numerous times in our lives we have all been “beginners”, there is no shame in that fact and rightly so. How many times have you asked aloud, “What does this button do?”. “Why doesn’t that work?”. “What do you mean it doesn’t do that?”. “HELP!”. At the start of any new journey or adventure we are all beginners but fortunately for you we are here to stand beside you at every stage. Over this extensive series of titles we will be looking in great depth at the latest consumer electronics, software, hobbies and trends out of the box! We will guide you step-by-step through using all aspects of the technology that you may have been previously apprehensive at attempting. Let our expert guide help you build your technology understanding and skills, taking you from a novice to a confident and experienced user. Over the page our journey begins. We would wish you luck but we’re sure with our support you won’t need it. Contents 6 Coding and Programming 36 Equipment You Will Need 38 Getting to Know C++ 8 Choosing a Programming Language 40 How to Set Up C++ in Windows 10 Learning to Code – Study Tips 42 How to Set Up C++ on a Mac 12 Coding Tools and Resources 44 How to Set Up C++ in Linux 14 Being a Programmer 46 Other C++ IDEs to Install 16 Say Hello to Python 48 Coding on Linux 18 Why Python? 50 Why Linux? 20 Equipment You Will Need 52 Equipment You Will Need 22 Getting to Know Python 54 Transfer Mint to DVD or USB 24 How to Set Up Python in Windows 56 Installing VirtualBox 26 How to Set Up Python on a Mac 58 Testing Linux Mint’s Live Environment 28 How to Set Up Python in Linux 60 Installing Linux Mint on a PC 30 Installing a Text Editor 62 Installing Linux Mint in VirtualBox 64 Getting Ready to Code in Linux 32 Say Hello to C++ 66 Creating Bash Scripts– Part 1 34 Why C++? 68 Creating Bash Scripts– Part 2 4 www.bdmpublications.com Contents BDM’s Code Portal 60+ Python programs 21,500+ lines of code Master Python with the help of our fantastic Code Portal, featuring code for games, tools and more. Visit: https://bdmpublications.com/ “…learning how to code code-portal, and log in to get access! is an on-going experience, where you learn 70 Creating Bash Scripts– Part 3 something new every day 72 Creating Bash Scripts– Part 4 74 Creating Bash Scripts– Part 5 and every time you run 76 Command Line Quick Reference 78 A-Z of Linux Commands your code…” Coding For Beginners © 2020 Papercut Limited All rights reserved. No part of this publication reviewer - as an individual - and is not representative of the publisher ISBN: 978-1-912847-12-9 may be reproduced in any form, stored in a retrieval system or or any of its affiliates. Therefore the publisher holds no responsibility in integrated into any other publication, database or commercial regard to editorial opinion and content. Published by: Papercut Limited programs without the express written permission of the publisher. This is an independent publication and as such does not necessarily reflect Digital distribution by: Under no circumstances should this publication and its contents be the views or opinions of the producers of apps or products contained resold, loaned out or used in any form by way of trade without the within. This publication is 100% unofficial. All copyrights, trademarks and Readly AB, Zinio, Magzter, Cafeyn, PocketMags publisher’s written permission. While we pride ourselves on the quality registered trademarks for the respective companies are acknowledged. of the information we provide, Papercut Limited reserves the right not Relevant graphic imagery reproduced with courtesy of brands and products. to be held responsible for any mistakes or inaccuracies found within Additional images contained within this publication are reproduced under the text of this publication. Due to the nature of the tech industry, the licence from Shutterstock. Prices, international availability, ratings, titles and publisher cannot guarantee that all apps and software will work on content are subject to change. every version of device. It remains the purchaser’s sole responsibility to determine the suitability of this book and its content for whatever All information was correct at time of publication. Some content may have purpose. Any app images reproduced on the front and back cover been previously published in other volumes or titles. are solely for design purposes and are not representative of content. We advise all potential buyers to check listing prior to purchase for Papercut Limited confirmation of actual content. All editorial opinion herein is that of the Registered in England & Wales No: 4308513 @bdmpubs BDM Publications www.bdmpublications.com www.bdmpublications.com 5 Coding and Programming 6 www.bdmpublications.com Coding and Programming So you want to start coding? It’s not going to be an easy road, and there are many pitfalls along the way, but learning to program is an amazing skill and one that will stand you in good stead for the future. One of the hardest steps in learning to code is the first: which programming language to learn. Then, where do you go to find the tools you need and what do all those terms mean? Don’t worry, we’re here to help you on your way. In this section we look at what you need to take those first tentative steps into the world of coding. www.bdmpublications.com 7 Coding and Programming Choosing a Programming Language It would be impossible to properly explain every programming language in a single book of this size. New languages and ways in which to ‘talk’ to a computer or device and set it instructions are being invented almost daily; and with the onset of quantum computing, even more complex methods are being born. Here is a list of the more common languages along with their key features. 8 www.bdmpublications.com Choosing a Programming Language SQL SQL stands for Structured Query Language. SQL is a standard language for accessing and manipulating databases. Although SQL is an ANSI (American National Standards Institute) standard, there are different versions of the SQL language. However, to be compliant, they all support at least the major commands such as Select, Update and Delete in a similar manner. JAVASCRIPT JavaScript (often shortened to JS) is a lightweight, interpreted, object-oriented language with first class functions. JavaScript runs on the client side of the web, that can be used to design or program how the web pages behave on the occurrence of an event.