{"appState":{"pageLoadApiCallsStatus":true},"categoryState":{"relatedCategories":{"headers":{"timestamp":"2025-04-17T16:01:07+00:00"},"categoryId":33599,"data":{"title":"Coding","slug":"coding","image":{"src":null,"width":0,"height":0},"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"parentCategory":{"categoryId":33592,"title":"Programming & Web Design","slug":"programming-web-design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"}},"childCategories":[],"description":"Basic coding terminology, planning your coding career, programming for web, freelancing tips, example coding projects, and more.","relatedArticles":{"self":"https://dummies-api.dummies.com/v2/articles?category=33599&offset=0&size=5"},"hasArticle":true,"hasBook":true,"articleCount":106,"bookCount":5},"_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"relatedCategoriesLoadedStatus":"success"},"listState":{"list":{"count":10,"total":106,"items":[{"headers":{"creationTime":"2017-07-12T12:46:38+00:00","modifiedTime":"2024-10-28T17:43:29+00:00","timestamp":"2024-10-28T18:01:08+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"Tips for Debugging the Code in Your Mobile App","strippedTitle":"tips for debugging the code in your mobile app","slug":"tips-debugging-code-mobile-app","canonicalUrl":"","seo":{"metaDescription":"When coding your app, you will almost inevitably write code that does not behave as you intended. HTML and CSS are relatively forgiving, with the browser even g","noIndex":0,"noFollow":0},"content":"When coding your app, you will almost inevitably write code that does not behave as you intended. HTML and CSS are relatively forgiving, with the browser even going so far as to insert tags so the page renders properly. However, JavaScript isn’t so forgiving, and the smallest error, such as a missing quotation mark, can cause the page to not render properly.\r\n\r\nErrors in web applications can consist of syntax errors, logic errors, and display errors. Often, the most likely culprit causing errors in your code will be syntax related. Here are some common errors to check when debugging your code:\r\n<ul>\r\n \t<li><strong>Opening and closing tags:</strong> In HTML, every opening tag has a closing tag, and you always close the most recently opened tag first.</li>\r\n \t<li><strong>Right and left angle brackets:</strong> In HTML, every left angle bracket <span style=\"text-decoration: line-through;\"><</span> has a right angle bracket <span style=\"text-decoration: line-through;\">></span>.</li>\r\n \t<li><strong>Right and left curly brackets:</strong> In CSS and JavaScript, every left curly bracket must have a right curly bracket. It can be easy to accidentally delete it or forget to include it.</li>\r\n \t<li><strong>Indentation:</strong> Indent your code and use plenty of tabs and returns to make your code as readable as possible. Proper indentation will make it easier for you to identify missing tags, angle brackets, and curly brackets.</li>\r\n \t<li><strong>Misspelled statements:</strong> Tags in any language can be misspelled, or spelled correctly but not part of the specification. For example, in HTML,\r\n<pre class=\"code\">&lt;img scr=\"image.jpg\"&gt;</pre>\r\nis incorrect because <code>scr</code> should really be <code>src</code> for the image to render properly. Similarly, in CSS <code>font-color</code> looks like it is spelled correctly but no such property exists. The correct property to set font color is just <code>color</code>.</li>\r\n</ul>\r\nKeep these errors in mind when debugging — they may not solve all your problems, but they should solve many of them. If you have tried the steps above and still cannot debug your code, tweet <code>@nikhilgabraham</code> and include the <code>#codingFD</code> hashtag and your <a href=\"https://www.codepen.io/\" target=\"_blank\" rel=\"noopener\">codepen.io</a> URL in your tweet.","description":"When coding your app, you will almost inevitably write code that does not behave as you intended. HTML and CSS are relatively forgiving, with the browser even going so far as to insert tags so the page renders properly. However, JavaScript isn’t so forgiving, and the smallest error, such as a missing quotation mark, can cause the page to not render properly.\r\n\r\nErrors in web applications can consist of syntax errors, logic errors, and display errors. Often, the most likely culprit causing errors in your code will be syntax related. Here are some common errors to check when debugging your code:\r\n<ul>\r\n \t<li><strong>Opening and closing tags:</strong> In HTML, every opening tag has a closing tag, and you always close the most recently opened tag first.</li>\r\n \t<li><strong>Right and left angle brackets:</strong> In HTML, every left angle bracket <span style=\"text-decoration: line-through;\"><</span> has a right angle bracket <span style=\"text-decoration: line-through;\">></span>.</li>\r\n \t<li><strong>Right and left curly brackets:</strong> In CSS and JavaScript, every left curly bracket must have a right curly bracket. It can be easy to accidentally delete it or forget to include it.</li>\r\n \t<li><strong>Indentation:</strong> Indent your code and use plenty of tabs and returns to make your code as readable as possible. Proper indentation will make it easier for you to identify missing tags, angle brackets, and curly brackets.</li>\r\n \t<li><strong>Misspelled statements:</strong> Tags in any language can be misspelled, or spelled correctly but not part of the specification. For example, in HTML,\r\n<pre class=\"code\">&lt;img scr=\"image.jpg\"&gt;</pre>\r\nis incorrect because <code>scr</code> should really be <code>src</code> for the image to render properly. Similarly, in CSS <code>font-color</code> looks like it is spelled correctly but no such property exists. The correct property to set font color is just <code>color</code>.</li>\r\n</ul>\r\nKeep these errors in mind when debugging — they may not solve all your problems, but they should solve many of them. If you have tried the steps above and still cannot debug your code, tweet <code>@nikhilgabraham</code> and include the <code>#codingFD</code> hashtag and your <a href=\"https://www.codepen.io/\" target=\"_blank\" rel=\"noopener\">codepen.io</a> URL in your tweet.","blurb":"","authors":[{"authorId":9097,"name":"Nikhil Abraham","slug":"nikhil-abraham","description":" <p><b>Nikhil Abraham</b> was Director of Business Development &#38; Growth at Codecademy. In that role, he taught and trained thousands of beginning coders across a variety of professions. He helped refine Codecademy&#39;s online courses, which have introduced basic coding skills to millions of learners. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9097"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":242447,"title":"The People Who Bring a Web App to Life","slug":"people-bring-web-app-life","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242447"}},{"articleId":242444,"title":"Research Sources for Coding Your Own App","slug":"research-sources-coding-app","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242444"}},{"articleId":242436,"title":"Getting Ready to Code? Do These Things First","slug":"getting-ready-code-things-first","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242436"}},{"articleId":242408,"title":"Dealing with Dates in Your Data","slug":"dealing-dates-data","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242408"}},{"articleId":242404,"title":"The Limits of Rating Data in Machine Learning","slug":"limits-rating-data-machine-learning","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242404"}}],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281666,"slug":"coding-all-in-one-for-dummies","isbn":"9781119889564","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119889561-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/coding-all-in-one-for-dummies-9781119889564-203x255.jpg","width":203,"height":255},"title":"Coding All-in-One For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p> <b><b data-author-id=\"9070\">Chris Minnick</b></b> is an accomplished author, teacher, and programmer. Minnick authored or co-authored over 20 books, including titles in the <i>For Dummies </i>series. He has developed video courses for top online training platforms and he teaches programming and machine learning to professional developers at some of the largest global companies.</p>","authors":[{"authorId":9070,"name":"Chris Minnick","slug":"chris-minnick","description":" <p> <b>Chris Minnick</b> is an accomplished author, teacher, and programmer. Minnick authored or co-authored over 20 books, including titles in the <i>For Dummies </i>series. He has developed video courses for top online training platforms and he teaches programming and machine learning to professional developers at some of the largest global companies. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9070"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-671fd164bb0f6\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-671fd164bbdb5\"></div></div>"},"articleType":{"articleType":"Articles","articleList":null,"content":null,"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":"One year","lifeExpectancySetFrom":"2024-10-28T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":241918},{"headers":{"creationTime":"2016-03-27T16:47:47+00:00","modifiedTime":"2022-11-14T14:41:42+00:00","timestamp":"2022-11-14T15:01:03+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"Coding For Kids For Dummies Cheat Sheet","strippedTitle":"coding for kids for dummies cheat sheet","slug":"coding-for-kids-for-dummies-cheat-sheet","canonicalUrl":"","seo":{"metaDescription":"Learn how to create programs in Scratch, code apps in App Lab, and write code in MakeCode to operate the micro:bit electronics board.","noIndex":0,"noFollow":0},"content":"Coding, or computer programming, is your way of communicating with technology. It’s the new literacy you need to master to be successful in the coming decades. Like any form of communication, coding takes place through language. Just as there are many human languages (English, French, Mandarin, Spanish, and so on), there are many coding languages! Two examples of coding languages are Scratch and JavaScript. Scratch is perfect as a coding language for kids because it’s easy and fun to use, Scratch coding for kids allows you to build programs by snapping together commands in the same way you assemble a puzzle.\r\n\r\nJavaScript is a step up in difficulty because it’s an authentic programming language, used by real coders. JavaScript powers many technologies, and you can use it to make both apps for your phone and control code for operating electronics gadgets. You can ease into JavaScript by using blocks to build programs (just like Scratch) and then switching to text-based coding when you’re ready. Here, discover tips for creating programs in Scratch, coding JavaScript apps in App Lab, and writing JavaScript code in MakeCode to operate the micro:bit electronics board.\r\n\r\n[caption id=\"attachment_261750\" align=\"alignnone\" width=\"535\"]<img class=\"size-full wp-image-261750\" src=\"https://www.dummies.com/wp-content/uploads/coding-kids.jpg\" alt=\"Kids coding on laptops\" width=\"535\" height=\"357\" /> ©By Photographee.eu/Shutterstock[/caption]","description":"Coding, or computer programming, is your way of communicating with technology. It’s the new literacy you need to master to be successful in the coming decades. Like any form of communication, coding takes place through language. Just as there are many human languages (English, French, Mandarin, Spanish, and so on), there are many coding languages! Two examples of coding languages are Scratch and JavaScript. Scratch is perfect as a coding language for kids because it’s easy and fun to use, Scratch coding for kids allows you to build programs by snapping together commands in the same way you assemble a puzzle.\r\n\r\nJavaScript is a step up in difficulty because it’s an authentic programming language, used by real coders. JavaScript powers many technologies, and you can use it to make both apps for your phone and control code for operating electronics gadgets. You can ease into JavaScript by using blocks to build programs (just like Scratch) and then switching to text-based coding when you’re ready. Here, discover tips for creating programs in Scratch, coding JavaScript apps in App Lab, and writing JavaScript code in MakeCode to operate the micro:bit electronics board.\r\n\r\n[caption id=\"attachment_261750\" align=\"alignnone\" width=\"535\"]<img class=\"size-full wp-image-261750\" src=\"https://www.dummies.com/wp-content/uploads/coding-kids.jpg\" alt=\"Kids coding on laptops\" width=\"535\" height=\"357\" /> ©By Photographee.eu/Shutterstock[/caption]","blurb":"","authors":[{"authorId":9324,"name":"Camille McCue","slug":"camille-mccue","description":" <p><b>Camille McCue, PhD</b> is a STEM educator and leader who has worked for IBM, NASA, PBS, and numerous independent schools. She has taught every grade from kindergarten to grad school, covering topics ranging from Scratch to AP computer science. Camille is co&#45;author of <i>Helping Kids with Coding For Dummies</i> and author of <i>Getting Started with Coding</i> and <i>Getting Started with Engineering.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9324"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281668,"slug":"coding-for-kids-for-dummies-2nd-edition","isbn":"9781119555162","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119555167/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119555167/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119555167-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119555167/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119555167/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/coding-for-kids-for-dummies-2nd-edition-cover-9781119555162-203x255.jpg","width":203,"height":255},"title":"Coding For Kids For Dummies","testBankPinActivationLink":"","bookOutOfPrint":false,"authorsInfo":"<p><b data-author-id=\"9324\">Camille McCue, PhD</b> is a STEM educator and leader who has worked for IBM, NASA, PBS, and numerous independent schools. She has taught every grade from kindergarten to grad school, covering topics ranging from Scratch to AP computer science. Camille is co-author of <i>Helping Kids with Coding For Dummies</i> and author of <i>Getting Started with Coding</i> and <i>Getting Started with Engineering.</i> </p>","authors":[{"authorId":9324,"name":"Camille McCue","slug":"camille-mccue","description":" <p><b>Camille McCue, PhD</b> is a STEM educator and leader who has worked for IBM, NASA, PBS, and numerous independent schools. She has taught every grade from kindergarten to grad school, covering topics ranging from Scratch to AP computer science. Camille is co&#45;author of <i>Helping Kids with Coding For Dummies</i> and author of <i>Getting Started with Coding</i> and <i>Getting Started with Engineering.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9324"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;For Kids&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119555162&quot;]}]\" id=\"du-slot-6372582f28a99\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;For Kids&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119555162&quot;]}]\" id=\"du-slot-6372582f29309\"></div></div>"},"articleType":{"articleType":"Cheat Sheet","articleList":[{"articleId":261740,"title":"How to Create Programs in Scratch","slug":"","categoryList":[],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/261740"}},{"articleId":261743,"title":"How to Build Apps in App Lab","slug":"","categoryList":[],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/261743"}},{"articleId":261747,"title":"How to Write Control Code for Electronics","slug":"","categoryList":[],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/261747"}}],"content":[{"title":"How to create programs in Scratch","thumb":null,"image":null,"content":"<p>Scratch is a coding language, but it is also an all-in-one integrated development environment (IDE) in which kids can design, code, test, and share their programs. Here are some tips for getting started with Scratch coding:</p>\n<ul>\n<li>Open <a href=\"https://scratch.mit.edu/\" target=\"_blank\" rel=\"noopener\">Scratch</a>. Select Create or File→to start a project.</li>\n<li>For project starter ideas, click the Tutorials button in the menu bar.</li>\n<li>Every new project starts with Backdrop1 — which is blank. You can add a new backdrop by clicking the Choose a Backdrop icon and then selecting a backdrop from the Choose a Backdrop library.</li>\n<li>Every new project starts with Sprite1 — which is Scratch Cat. You can keep Scratch Cat and write code for him to run, or you can cut him by clicking the X in his icon. You can add a new sprite by clicking the Choose a Sprite icon and then selecting a sprite from the Choose a Sprite Library.</li>\n<li>Change sprite attributes by typing new numbers for the x position, y position, size, and direction.</li>\n<li>Start a new program with an event, such as <code>when green flag clicked</code>. At the Code tab, select the Events category and then drag the event to the code workspace. Add one or more commands to the event, attaching each new command to the previous event, to build a code block. Run the code block by clicking the green flag (or whatever event handler you chose). Stop the code block by clicking the stop sign icon.</li>\n<li>Add additional sprites to your project, and build whatever code you want on each sprite.</li>\n<li>You can add new sounds. First, click the Sounds tab and then click the Choose a Sound icon. Click a sound from the Choose a Sound library to add it to your program. Then add the new sound to your code by clicking the Code tab and then clicking the Sound icon to display the sound commands. Drag a sound command such as <code>play sound</code> to the workspace, and attach it to a code block. Press the arrow in the <code>play sound</code> command and select the sound you added. Then test your code block to hear the sound.</li>\n<li>Name your project and, if you want, click the Share button to make it publicly visible.</li>\n</ul>\n"},{"title":"How to build apps in App Lab","thumb":null,"image":null,"content":"<p>App Lab is an IDE for building apps using JavaScript. You can design and code your apps in App Lab. Then you can test them in an online simulator and — when they’re working just the way you want — you can share them, even sending them to your phone. Here are some tips for getting started working in App Lab:</p>\n<ul>\n<li>Open <a href=\"https://code.org/educate/applab\" target=\"_blank\" rel=\"noopener\">App Lab</a>. Set up a new account, or log in to your existing account. Click Try It Out to start a project.</li>\n<li>Click the Design button to switch to Design mode, where you lay out the appearance of your app. The Design toolbox opens, showing elements that you can drag to screen1 of the simulator.</li>\n<li>To add a background to your app, work in Design mode. Click the simulator screen, and then click the Color tab in the Properties area to choose a new background color. Or click the Choose link to upload a background image. The color or image appears as the background in the simulator.</li>\n<li>To create elements on your screen, work in Design mode. Click the icon for an element in the Design toolbox and then drag it to the screen. Commonly used elements are Button, Label, Text Input, Image, and Screen. For example, create a button for a user to click. In Design mode, drag the Button icon to the screen and place it anywhere you want. In the Properties area, change some attributes of the button you want, such as size and color. Note that the button ID is <code>button1</code>. Type <strong>CLICK ME</strong> in the text field of the button properties.</li>\n<li>To code your app, click the Code button to switch your interface to Code mode. In App Lab, you create all code in a single program, which is displayed in the Code workspace. You can work in block mode or text mode, toggling between the two modes by selecting the Show Blocks/Show Text button. Each command is listed on a separate line.</li>\n<li>Commands are displayed in Code mode in the toolbox, grouped by function, such as UI (user interface) controls. To build your program, drag a command from the toolbox to the workspace. Attach new commands to previously added commands, snapping them together.</li>\n<li>Start a new program with an event, such as <code>onEvent</code>. At the Code tab, select the UI category and then drag <code>onEvent</code> to the Code workspace. Continuing with the button example, press the ID tab in the command and select <code>button1</code> from the drop-down list. Leave the other items in the command as-is. Now make something happen when you click the button. From the UI category, drag a <code>setProperty</code> command to the Code workspace, placing it inside <code>onEvent</code>. Set the command to read <code>setProperty(\"screen1\", \"background-color\", \"red\");</code>.</li>\n<li>Test code in the simulator by clicking the Run button. In the button example, clicking the Run button and the clicking the Click Me button triggers the event to turn the screen red.</li>\n<li>Add additional elements to your project, and build whatever code you want on each element.</li>\n<li>Name your app and, if you want, click the Share button, sending it to a phone for mobile operation.</li>\n</ul>\n"},{"title":"How to write control code for electronics","thumb":null,"image":null,"content":"<p>MakeCode is an easy-to-use IDE for writing and testing programs for controlling a kid-friendly electronics board called the <a href=\"https://makecode.microbit.org/\" target=\"_blank\" rel=\"noopener\">micro:bit</a>. You write JavaScript in MakeCode, testing your programs in an online simulator.</p>\n<p>If you want, you can upload a completed program to a micro:bit board to create a real, working gadget! Here are some tips for getting started with MakeCode for micro:bit:</p>\n<ul>\n<li>Open App Lab. Click New Project to start a project.</li>\n<li>In MakeCode, you build code blocks, with each code block associated with an event. All the code blocks are displayed in the code workspace. You can work in Blocks mode or JavaScript (text) mode, and you can move between the two modes by using the toggle button at the top of the workspace. In JavaScript (text) mode, each command is listed on a separate line.</li>\n<li>Commands are grouped by function, such as Basic, Input, Music, LED , Radio, Loops, Logic, Variables, and Math. You can click the Advanced tab for many additional, useful commands, including Pins. To build your program, drag a command from the code categories into the workspace. Attach new commands to previously added commands, snapping them together.</li>\n<li>Commands from the Input category allow you to capture data from micro:bit sensors, including button clicks, accelerometer shakes, compass headings, temperature, light levels, and pin presses.</li>\n<li>Start a new program with an event, such as <code>on button A pressed</code>. Drag this command from the Input category into the workspace. (You can drag the starter commands, <code>on start</code> and <code>forever</code>, which are already in the workspace at the start of a new project, back into the command categories to remove them from your program.) Then drag a command from the Basic category, such as <code>show string “Hello!” </code>to the code workspace, placing it inside the <code>on button A pressed</code> command.</li>\n<li>Test code in the simulator by activating the sensors you have programmed. In the example, when you click button A in the simulator, <em>HELLO!</em> should scroll across the screen of the micro:bit.</li>\n<li>Add additional code blocks to your project, and build whatever code you want on each code block.</li>\n<li>Name your app and, if you want, transfer your code to a real micro:bit. Just attach a micro:bit to your computer using a microUSB-to-USB cable. Click the Download button in the MakeCode IDE to download your code to your computer. Then drag the downloaded file (which is in .hex format) to the icon representing your micro:bit on your computer. The micro:bit blinks orange for a few seconds to tell you that the transfer is taking place.</li>\n<li>Disconnect a micro:bit (with its program onboard) from the computer, and then attach a portable battery pack to the board. You can now run the program on the micro:bit, away from the computer!</li>\n</ul>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Explore","lifeExpectancy":"One year","lifeExpectancySetFrom":"2022-02-23T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"\"For Kids\"","adPairKey":[]},"status":"publish","visibility":"public","articleId":207624},{"headers":{"creationTime":"2017-07-14T13:32:34+00:00","modifiedTime":"2022-08-16T20:01:31+00:00","timestamp":"2022-09-14T18:19:56+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"Tips for Naming Your HTML Elements to Style Specific Elements with CSS","strippedTitle":"tips for naming your html elements to style specific elements with css","slug":"tips-naming-html-elements-style-specific-elements-css","canonicalUrl":"","seo":{"metaDescription":"One way of styling specific elements in CSS is to name your HTML elements. You name your code by using either the id or class attribute, and then style your cod","noIndex":0,"noFollow":0},"content":"One way of styling specific elements in CSS is to name your HTML elements. You name your code by using either the <code>id</code> or <code>class</code> attribute, and then style your code by referring to the <code>id</code> or <code>class</code> selector.\r\n<h2 id=\"tab1\" >Naming your code using the id attribute</h2>\r\nUse the <code>id</code> attribute to style one specific element on your web page. The <code>id</code> attribute can name any HTML element, and is always placed in the opening HTML tag. Additionally, each element can have only one <code>id</code> attribute value, and the attribute value must appear only once within the HTML file. After you define the attribute in the HTML file, you refer to the HTML element in your CSS by writing a hashtag (<code>#</code>) followed by the attribute value.\r\n\r\nUsing the <code>id</code> attribute, the following code styles the Modern Seinfeld Twitter link the color red with a yellow background:\r\n\r\nHTML:\r\n\r\n<code>&lt;p&gt;&lt;a href=\"http://twitter.com/SeinfeldToday\" id=\"jerry\"&gt;Modern Seinfeld&lt;/a&gt;&lt;/p&gt;</code>\r\n\r\nCSS:\r\n\r\n<code>#jerry {</code>\r\n\r\n<code>color: red;</code>\r\n\r\n<code>background-color: yellow;</code>\r\n\r\n<code>}</code>\r\n<h2 id=\"tab2\" >Naming your code using the class attribute</h2>\r\nUse the <code>class</code> attribute to style multiple elements on your web page. The <code>class</code> attribute can name any HTML element and is always placed in the opening HTML tag. The attribute value need not be unique within the HTML file. After you define the attribute in the HTML file, you refer to the HTML element by writing a period (.) followed by the attribute value.\r\n\r\nWith the <code>class</code> attribute, the following code styles all the Parody Tech Twitter account links the color red with no underline:\r\n\r\nHTML:\r\n\r\n<code>&lt;ul&gt;</code>\r\n\r\n<code>&lt;li&gt;</code>\r\n\r\n<code>&lt;a href=\"&lt;u&gt;http://twitter.com/BoredElonMusk&lt;/u&gt;\" class=\"tech\"&gt;Bored Elon Musk&lt;/a&gt;</code>\r\n\r\n<code>&lt;/li&gt;</code>\r\n\r\n<code>&lt;li&gt;</code>\r\n\r\n<code>&lt;a href=\"&lt;span style=\"text-decoration: underline;\"&gt;http://twitter.com/VinodColeslaw&lt;/span&gt;\" class=\"tech\"&gt;Vinod Coleslaw&lt;/a&gt;</code>\r\n\r\n<code>&lt;/li&gt;</code>\r\n\r\n<code>&lt;li&gt;</code>\r\n\r\n<code>&lt;a href=\"&lt;span style=\"text-decoration: underline;\"&gt;http://twitter.com/Horse_ebooks&lt;/span&gt;\" class=\"tech\"&gt;Horse ebooks&lt;/a&gt;</code>\r\n\r\n<code>&lt;/li&gt;</code>\r\n\r\n<code>&lt;/ul&gt;</code>\r\n\r\nCSS:\r\n\r\n<code>.tech {</code>\r\n\r\n<code>color: red;</code>\r\n\r\n<code>text-decoration: none;</code>\r\n\r\n<code>}</code>\r\n<p class=\"article-tips tip\">Proactively use a search engine, such as Google, to search for additional CSS effects. For example, if you want to increase the spacing between each list item, open your browser and search for list item line spacing css. Links appearing in the top ten results should include:</p>\r\n\r\n<ul>\r\n \t<li><a href=\"http://www.w3schools.com/\" target=\"_blank\" rel=\"noopener\">W3Schools</a><strong>:</strong> A beginner tutorial site</li>\r\n \t<li><a href=\"http://www.stackoverflow.com/\" target=\"_blank\" rel=\"noopener\">Stack Overflow</a><strong>:</strong> A discussion board for experienced developers</li>\r\n \t<li><a href=\"http://www.mozilla.org/\" target=\"_blank\" rel=\"noopener\">Mozilla</a>: A reference guide initially created by the foundation that maintains the Firefox browser and now maintained by a community of developers</li>\r\n</ul>\r\nEach of these sites is a good place to start; be sure to look for answers that include example code.","description":"One way of styling specific elements in CSS is to name your HTML elements. You name your code by using either the <code>id</code> or <code>class</code> attribute, and then style your code by referring to the <code>id</code> or <code>class</code> selector.\r\n<h2 id=\"tab1\" >Naming your code using the id attribute</h2>\r\nUse the <code>id</code> attribute to style one specific element on your web page. The <code>id</code> attribute can name any HTML element, and is always placed in the opening HTML tag. Additionally, each element can have only one <code>id</code> attribute value, and the attribute value must appear only once within the HTML file. After you define the attribute in the HTML file, you refer to the HTML element in your CSS by writing a hashtag (<code>#</code>) followed by the attribute value.\r\n\r\nUsing the <code>id</code> attribute, the following code styles the Modern Seinfeld Twitter link the color red with a yellow background:\r\n\r\nHTML:\r\n\r\n<code>&lt;p&gt;&lt;a href=\"http://twitter.com/SeinfeldToday\" id=\"jerry\"&gt;Modern Seinfeld&lt;/a&gt;&lt;/p&gt;</code>\r\n\r\nCSS:\r\n\r\n<code>#jerry {</code>\r\n\r\n<code>color: red;</code>\r\n\r\n<code>background-color: yellow;</code>\r\n\r\n<code>}</code>\r\n<h2 id=\"tab2\" >Naming your code using the class attribute</h2>\r\nUse the <code>class</code> attribute to style multiple elements on your web page. The <code>class</code> attribute can name any HTML element and is always placed in the opening HTML tag. The attribute value need not be unique within the HTML file. After you define the attribute in the HTML file, you refer to the HTML element by writing a period (.) followed by the attribute value.\r\n\r\nWith the <code>class</code> attribute, the following code styles all the Parody Tech Twitter account links the color red with no underline:\r\n\r\nHTML:\r\n\r\n<code>&lt;ul&gt;</code>\r\n\r\n<code>&lt;li&gt;</code>\r\n\r\n<code>&lt;a href=\"&lt;u&gt;http://twitter.com/BoredElonMusk&lt;/u&gt;\" class=\"tech\"&gt;Bored Elon Musk&lt;/a&gt;</code>\r\n\r\n<code>&lt;/li&gt;</code>\r\n\r\n<code>&lt;li&gt;</code>\r\n\r\n<code>&lt;a href=\"&lt;span style=\"text-decoration: underline;\"&gt;http://twitter.com/VinodColeslaw&lt;/span&gt;\" class=\"tech\"&gt;Vinod Coleslaw&lt;/a&gt;</code>\r\n\r\n<code>&lt;/li&gt;</code>\r\n\r\n<code>&lt;li&gt;</code>\r\n\r\n<code>&lt;a href=\"&lt;span style=\"text-decoration: underline;\"&gt;http://twitter.com/Horse_ebooks&lt;/span&gt;\" class=\"tech\"&gt;Horse ebooks&lt;/a&gt;</code>\r\n\r\n<code>&lt;/li&gt;</code>\r\n\r\n<code>&lt;/ul&gt;</code>\r\n\r\nCSS:\r\n\r\n<code>.tech {</code>\r\n\r\n<code>color: red;</code>\r\n\r\n<code>text-decoration: none;</code>\r\n\r\n<code>}</code>\r\n<p class=\"article-tips tip\">Proactively use a search engine, such as Google, to search for additional CSS effects. For example, if you want to increase the spacing between each list item, open your browser and search for list item line spacing css. Links appearing in the top ten results should include:</p>\r\n\r\n<ul>\r\n \t<li><a href=\"http://www.w3schools.com/\" target=\"_blank\" rel=\"noopener\">W3Schools</a><strong>:</strong> A beginner tutorial site</li>\r\n \t<li><a href=\"http://www.stackoverflow.com/\" target=\"_blank\" rel=\"noopener\">Stack Overflow</a><strong>:</strong> A discussion board for experienced developers</li>\r\n \t<li><a href=\"http://www.mozilla.org/\" target=\"_blank\" rel=\"noopener\">Mozilla</a>: A reference guide initially created by the foundation that maintains the Firefox browser and now maintained by a community of developers</li>\r\n</ul>\r\nEach of these sites is a good place to start; be sure to look for answers that include example code.","blurb":"","authors":[{"authorId":9097,"name":"Nikhil Abraham","slug":"nikhil-abraham","description":" <p><b>Nikhil Abraham</b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9097"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[{"label":"Naming your code using the id attribute","target":"#tab1"},{"label":"Naming your code using the class attribute","target":"#tab2"}],"relatedArticles":{"fromBook":[{"articleId":242447,"title":"The People Who Bring a Web App to Life","slug":"people-bring-web-app-life","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242447"}},{"articleId":242444,"title":"Research Sources for Coding Your Own App","slug":"research-sources-coding-app","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242444"}},{"articleId":242436,"title":"Getting Ready to Code? Do These Things First","slug":"getting-ready-code-things-first","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242436"}},{"articleId":242408,"title":"Dealing with Dates in Your Data","slug":"dealing-dates-data","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242408"}},{"articleId":242404,"title":"The Limits of Rating Data in Machine Learning","slug":"limits-rating-data-machine-learning","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242404"}}],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281666,"slug":"coding-all-in-one-for-dummies","isbn":"9781119889564","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119889561-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":null,"width":0,"height":0},"title":"Coding All-in-One For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p>This All-in-One includes work by expert coders and coding educators, including <b><b data-author-id=\"9070\">Chris Minnick</b> and Eva Holland </b>coauthors of<i> Coding with JavaScript For Dummies</i>; <b>Nikhil Abraham,</b> author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies;</i> <b>John Paul Mueller and Luca Massaron,</b> coauthors of <i>Python for Data Science For Dummies</i> and <i>Machine Learning For Dummies;</i> and <b>Barry Burd,</b> author of<i> Flutter For Dummies.</i></p>","authors":[{"authorId":9070,"name":"Chris Minnick","slug":"chris-minnick","description":" <p>This All-in-One includes work by expert coders and coding educators, including <b>Chris Minnick and Eva Holland </b>coauthors of<i> Coding with JavaScript For Dummies</i>; <b>Nikhil Abraham,</b> author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies;</i> <b>John Paul Mueller and Luca Massaron,</b> coauthors of <i>Python for Data Science For Dummies</i> and <i>Machine Learning For Dummies;</i> and <b>Barry Burd,</b> author of<i> Flutter For Dummies.</i></p> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9070"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-63221b4c3a764\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-63221b4c3b19d\"></div></div>"},"articleType":{"articleType":"Articles","articleList":null,"content":null,"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":"One year","lifeExpectancySetFrom":"2022-08-16T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":242138},{"headers":{"creationTime":"2016-03-26T08:00:13+00:00","modifiedTime":"2022-07-27T15:53:28+00:00","timestamp":"2022-09-14T18:19:49+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"What Does Python Do?","strippedTitle":"what does python do?","slug":"what-does-python-do","canonicalUrl":"","seo":{"metaDescription":"Python is a general-purpose programming language typically used for web development. This may sound similar to Ruby, and really both languages are more similar ","noIndex":0,"noFollow":0},"content":"Python is a general-purpose programming language typically used for web development. This may sound similar to Ruby, and really both languages are more similar than they are different. Python, like Ruby, allows for storing data after the user has navigated away from the page or closed the browser, unlike HTML, CSS, and JavaScript.\r\n\r\nUsing Python commands you can create, update, store, and retrieve this data in a database. For example, imagine you wanted to create a local search and ratings site like Yelp.com. The reviews users write are stored in a central database. Any review author can exit the browser, turn off the computer, and come back to the website later to find their reviews.\r\n\r\nAdditionally, when others search for venues, this same central database is queried, and the same review is displayed. Storing data in a database is a common task for Python developers, and existing Python libraries include pre-built code to easily create and query databases.\r\n<p class=\"TechnicalStuff\">SQLite is one free lightweight database commonly used by Python programmers to store data.</p>\r\nMany highly trafficked websites, such as YouTube, are created using Python. Other websites currently using Python include:\r\n<ul class=\"level-one\">\r\n \t<li>\r\n<p class=\"first-para\">Quora for its community question and answer site.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Spotify for internal data analysis.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Dropbox for its desktop client software.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Reddit for generating crowd-sourced news.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Industrial Light & Magic and Disney Animation for creating film special effects.</p>\r\n</li>\r\n</ul>\r\nFrom websites to software to special effects, Python is an extremely versatile language, powerful enough to support a range of applications. In addition, to help spread Python code, Python programmers create libraries, which are stand-alone pre-written code that do certain tasks, and make them publicly available for others to use and improve.\r\n\r\nFor example, a library called Scrapy performs web scaping, while another library called SciPy performs math functions used by scientists and mathematicians. The Python community maintains thousands of libraries like these, and most are free and open-source software.\r\n<p class=\"Tip\">You can generally confirm the front-end programming language used by any major website with <a href=\"http://builtwith.com\">BuiltWith</a>. After entering the website address in the search bar, look under the Frameworks section for Python. Note that websites may use Python for backend services not visible to BuiltWith.</p>","description":"Python is a general-purpose programming language typically used for web development. This may sound similar to Ruby, and really both languages are more similar than they are different. Python, like Ruby, allows for storing data after the user has navigated away from the page or closed the browser, unlike HTML, CSS, and JavaScript.\r\n\r\nUsing Python commands you can create, update, store, and retrieve this data in a database. For example, imagine you wanted to create a local search and ratings site like Yelp.com. The reviews users write are stored in a central database. Any review author can exit the browser, turn off the computer, and come back to the website later to find their reviews.\r\n\r\nAdditionally, when others search for venues, this same central database is queried, and the same review is displayed. Storing data in a database is a common task for Python developers, and existing Python libraries include pre-built code to easily create and query databases.\r\n<p class=\"TechnicalStuff\">SQLite is one free lightweight database commonly used by Python programmers to store data.</p>\r\nMany highly trafficked websites, such as YouTube, are created using Python. Other websites currently using Python include:\r\n<ul class=\"level-one\">\r\n \t<li>\r\n<p class=\"first-para\">Quora for its community question and answer site.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Spotify for internal data analysis.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Dropbox for its desktop client software.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Reddit for generating crowd-sourced news.</p>\r\n</li>\r\n \t<li>\r\n<p class=\"first-para\">Industrial Light & Magic and Disney Animation for creating film special effects.</p>\r\n</li>\r\n</ul>\r\nFrom websites to software to special effects, Python is an extremely versatile language, powerful enough to support a range of applications. In addition, to help spread Python code, Python programmers create libraries, which are stand-alone pre-written code that do certain tasks, and make them publicly available for others to use and improve.\r\n\r\nFor example, a library called Scrapy performs web scaping, while another library called SciPy performs math functions used by scientists and mathematicians. The Python community maintains thousands of libraries like these, and most are free and open-source software.\r\n<p class=\"Tip\">You can generally confirm the front-end programming language used by any major website with <a href=\"http://builtwith.com\">BuiltWith</a>. After entering the website address in the search bar, look under the Frameworks section for Python. Note that websites may use Python for backend services not visible to BuiltWith.</p>","blurb":"","authors":[{"authorId":9097,"name":"Nikhil Abraham","slug":"nikhil-abraham","description":" <p><b>Nikhil Abraham</b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9097"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":207582,"title":"Coding For Dummies Cheat Sheet","slug":"coding-for-dummies-cheat-sheet","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/207582"}},{"articleId":203276,"title":"How to Hack Your Favorite News Website","slug":"how-to-hack-your-favorite-news-website","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203276"}},{"articleId":145695,"title":"Common Coding Mistakes","slug":"common-coding-mistakes","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145695"}},{"articleId":145687,"title":"Coding References and Resources","slug":"coding-references-and-resources","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145687"}},{"articleId":145681,"title":"Coding Vocabulary","slug":"coding-vocabulary","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145681"}}],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281667,"slug":"coding-for-dummies","isbn":"9781119293323","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119293324/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119293324/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119293324-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119293324/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119293324/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/coding-for-dummies-cover-9781119293323-205x255.jpg","width":205,"height":255},"title":"Coding For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b><b data-author-id=\"9097\">Nikhil Abraham</b></b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i></p>","authors":[{"authorId":9097,"name":"Nikhil Abraham","slug":"nikhil-abraham","description":" <p><b>Nikhil Abraham</b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9097"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119293323&quot;]}]\" id=\"du-slot-63221b450db81\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119293323&quot;]}]\" id=\"du-slot-63221b450e724\"></div></div>"},"articleType":{"articleType":"Articles","articleList":null,"content":null,"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":"Two years","lifeExpectancySetFrom":"2022-07-27T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":144268},{"headers":{"creationTime":"2017-07-17T17:24:58+00:00","modifiedTime":"2022-07-27T15:46:34+00:00","timestamp":"2022-09-14T18:19:48+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"Dealing with Dates in Your Data","strippedTitle":"dealing with dates in your data","slug":"dealing-dates-data","canonicalUrl":"","seo":{"metaDescription":"Dates can present problems in data. For one thing, dates are stored as numeric values. However, the precise value of the number depends on the representation fo","noIndex":0,"noFollow":0},"content":"Dates can present problems in data. For one thing, dates are stored as numeric values. However, the precise value of the number depends on the representation for the particular platform and could even depend on the users’ preferences. For example, Excel users can choose to start dates in 1900 or 1904. The numeric encoding for each is different, so the same date can have two numeric values depending on the starting date.\r\n\r\nIn addition to problems of representation, you also need to consider how to work with time values. Creating a time value format that represents a value the user can understand is hard. For example, you might need to use Greenwich Mean Time (GMT) in some situations but a local time zone in others. Transforming between various times is also problematic.\r\n<h2 id=\"tab1\" >Formatting date and time values</h2>\r\nObtaining the correct date and time representation can make performing analysis a lot easier. For example, you often have to change the representation to obtain a correct sorting of values. Python provides two common methods of formatting date and time.\r\n\r\nThe first technique is to call <code>str()</code>, which simply turns a <code>datetime</code> value into a string without any formatting. The <code>strftime()</code> function requires more work because you must define how you want the <code>datetime</code> value to appear after conversion. When using <code>strftime()</code>, you must provide a string containing <a href=\"https://strftime.org/\">special directives</a> that define the formatting.\r\n\r\nNow that you have some idea of how time and date conversions work, it’s time to see an example. The following example creates a <code>datetime</code> object and then converts it into a string using two different approaches:\r\n\r\n<code>import datetime as dt</code>\r\n\r\n \r\n\r\n<code>now = dt.datetime.now()</code>\r\n\r\n \r\n\r\n<code>print str(now)</code>\r\n\r\n<code>print now.strftime('%a, %d %B %Y')</code>\r\n\r\nIn this case, you can see that using <code>str()</code> is the easiest approach. However, as shown by the following output, it may not provide the output you need. Using <code>strftime()</code> is infinitely more flexible.\r\n\r\n<code>2017-01-16 17:26:45.986000</code>\r\n\r\n<code>Mon, 16 January 2017</code>\r\n<h2 id=\"tab2\" >Using the right time transformation</h2>\r\nTime zones and differences in local time can cause all sorts of problems when performing analysis. For that matter, some types of calculations simply require a time shift in order to get the right results. No matter what the reason, you may need to transform one time into another time at some point. The following examples show some techniques you can employ to perform the task.\r\n\r\n<code>import datetime as dt</code>\r\n\r\n \r\n\r\n<code>now = dt.datetime.now()</code>\r\n\r\n<code>timevalue = now + dt.timedelta(hours=2)</code>\r\n\r\n \r\n\r\n<code>print now.strftime('%H:%M:%S')</code>\r\n\r\n<code>print timevalue.strftime('%H:%M:%S')</code>\r\n\r\n<code>print timevalue - now</code>\r\n\r\nThe <code>timedelta()</code> function makes the time transformation straightforward. You can use any of these parameter names with <code>timedelta()</code> to change a time and date value:\r\n<ul>\r\n \t<li><code>days</code></li>\r\n \t<li><code>seconds</code></li>\r\n \t<li><code>microseconds</code></li>\r\n \t<li><code>milliseconds</code></li>\r\n \t<li><code>minutes</code></li>\r\n \t<li><code>hours</code></li>\r\n \t<li><code>weeks</code></li>\r\n</ul>\r\nYou can also manipulate time by performing addition or subtraction on time values. You can even subtract two time values to determine the difference between them. Here’s the output from this example:\r\n\r\n<code>17:44:40</code>\r\n\r\n<code>19:44:40</code>\r\n\r\n<code>2:00:00</code>\r\n\r\nNotice that <code>now</code> is the local time, <code>timevalue</code> is two time zones different from this one, and there is a two-hour difference between the two times. You can perform all sorts of transformations using these techniques to ensure that your analysis always shows precisely the time-oriented values you need.","description":"Dates can present problems in data. For one thing, dates are stored as numeric values. However, the precise value of the number depends on the representation for the particular platform and could even depend on the users’ preferences. For example, Excel users can choose to start dates in 1900 or 1904. The numeric encoding for each is different, so the same date can have two numeric values depending on the starting date.\r\n\r\nIn addition to problems of representation, you also need to consider how to work with time values. Creating a time value format that represents a value the user can understand is hard. For example, you might need to use Greenwich Mean Time (GMT) in some situations but a local time zone in others. Transforming between various times is also problematic.\r\n<h2 id=\"tab1\" >Formatting date and time values</h2>\r\nObtaining the correct date and time representation can make performing analysis a lot easier. For example, you often have to change the representation to obtain a correct sorting of values. Python provides two common methods of formatting date and time.\r\n\r\nThe first technique is to call <code>str()</code>, which simply turns a <code>datetime</code> value into a string without any formatting. The <code>strftime()</code> function requires more work because you must define how you want the <code>datetime</code> value to appear after conversion. When using <code>strftime()</code>, you must provide a string containing <a href=\"https://strftime.org/\">special directives</a> that define the formatting.\r\n\r\nNow that you have some idea of how time and date conversions work, it’s time to see an example. The following example creates a <code>datetime</code> object and then converts it into a string using two different approaches:\r\n\r\n<code>import datetime as dt</code>\r\n\r\n \r\n\r\n<code>now = dt.datetime.now()</code>\r\n\r\n \r\n\r\n<code>print str(now)</code>\r\n\r\n<code>print now.strftime('%a, %d %B %Y')</code>\r\n\r\nIn this case, you can see that using <code>str()</code> is the easiest approach. However, as shown by the following output, it may not provide the output you need. Using <code>strftime()</code> is infinitely more flexible.\r\n\r\n<code>2017-01-16 17:26:45.986000</code>\r\n\r\n<code>Mon, 16 January 2017</code>\r\n<h2 id=\"tab2\" >Using the right time transformation</h2>\r\nTime zones and differences in local time can cause all sorts of problems when performing analysis. For that matter, some types of calculations simply require a time shift in order to get the right results. No matter what the reason, you may need to transform one time into another time at some point. The following examples show some techniques you can employ to perform the task.\r\n\r\n<code>import datetime as dt</code>\r\n\r\n \r\n\r\n<code>now = dt.datetime.now()</code>\r\n\r\n<code>timevalue = now + dt.timedelta(hours=2)</code>\r\n\r\n \r\n\r\n<code>print now.strftime('%H:%M:%S')</code>\r\n\r\n<code>print timevalue.strftime('%H:%M:%S')</code>\r\n\r\n<code>print timevalue - now</code>\r\n\r\nThe <code>timedelta()</code> function makes the time transformation straightforward. You can use any of these parameter names with <code>timedelta()</code> to change a time and date value:\r\n<ul>\r\n \t<li><code>days</code></li>\r\n \t<li><code>seconds</code></li>\r\n \t<li><code>microseconds</code></li>\r\n \t<li><code>milliseconds</code></li>\r\n \t<li><code>minutes</code></li>\r\n \t<li><code>hours</code></li>\r\n \t<li><code>weeks</code></li>\r\n</ul>\r\nYou can also manipulate time by performing addition or subtraction on time values. You can even subtract two time values to determine the difference between them. Here’s the output from this example:\r\n\r\n<code>17:44:40</code>\r\n\r\n<code>19:44:40</code>\r\n\r\n<code>2:00:00</code>\r\n\r\nNotice that <code>now</code> is the local time, <code>timevalue</code> is two time zones different from this one, and there is a two-hour difference between the two times. You can perform all sorts of transformations using these techniques to ensure that your analysis always shows precisely the time-oriented values you need.","blurb":"","authors":[{"authorId":9097,"name":"Nikhil Abraham","slug":"nikhil-abraham","description":" <p><b>Nikhil Abraham</b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9097"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[{"label":"Formatting date and time values","target":"#tab1"},{"label":"Using the right time transformation","target":"#tab2"}],"relatedArticles":{"fromBook":[{"articleId":242447,"title":"The People Who Bring a Web App to Life","slug":"people-bring-web-app-life","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242447"}},{"articleId":242444,"title":"Research Sources for Coding Your Own App","slug":"research-sources-coding-app","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242444"}},{"articleId":242436,"title":"Getting Ready to Code? Do These Things First","slug":"getting-ready-code-things-first","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242436"}},{"articleId":242404,"title":"The Limits of Rating Data in Machine Learning","slug":"limits-rating-data-machine-learning","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242404"}},{"articleId":242398,"title":"Handling Problems with Raw Text in Python","slug":"handling-problems-raw-text-python","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242398"}}],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281666,"slug":"coding-all-in-one-for-dummies","isbn":"9781119889564","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119889561-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":null,"width":0,"height":0},"title":"Coding All-in-One For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p>This All-in-One includes work by expert coders and coding educators, including <b><b data-author-id=\"9070\">Chris Minnick</b> and Eva Holland </b>coauthors of<i> Coding with JavaScript For Dummies</i>; <b>Nikhil Abraham,</b> author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies;</i> <b>John Paul Mueller and Luca Massaron,</b> coauthors of <i>Python for Data Science For Dummies</i> and <i>Machine Learning For Dummies;</i> and <b>Barry Burd,</b> author of<i> Flutter For Dummies.</i></p>","authors":[{"authorId":9070,"name":"Chris Minnick","slug":"chris-minnick","description":" <p>This All-in-One includes work by expert coders and coding educators, including <b>Chris Minnick and Eva Holland </b>coauthors of<i> Coding with JavaScript For Dummies</i>; <b>Nikhil Abraham,</b> author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies;</i> <b>John Paul Mueller and Luca Massaron,</b> coauthors of <i>Python for Data Science For Dummies</i> and <i>Machine Learning For Dummies;</i> and <b>Barry Burd,</b> author of<i> Flutter For Dummies.</i></p> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9070"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-63221b450282f\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-63221b45032d0\"></div></div>"},"articleType":{"articleType":"Articles","articleList":null,"content":null,"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":"Two years","lifeExpectancySetFrom":"2022-07-27T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":242408},{"headers":{"creationTime":"2017-07-17T17:36:45+00:00","modifiedTime":"2022-07-27T15:43:52+00:00","timestamp":"2022-09-14T18:19:48+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"Getting Ready to Code? Do These Things First","strippedTitle":"getting ready to code? do these things first","slug":"getting-ready-code-things-first","canonicalUrl":"","seo":{"metaDescription":"There are many tools available to help coders do their best work. Before you start coding, do a few housekeeping items. First, ensure that you are doing all of ","noIndex":0,"noFollow":0},"content":"There are many tools available to help coders do their best work. Before you start coding, do a few housekeeping items. First, ensure that you are doing all of the following:\r\n<ul>\r\n \t<li><strong>Using the Chrome browser:</strong> <a href=\"http://www.google.com/chrome/browser\">Download and install the latest version of Chrome</a>, as it offers the most support for the latest HTML standards.</li>\r\n \t<li><strong>Working on a desktop or laptop computer:</strong> Although it is possible to code on a mobile device, it can be more difficult and all layouts may not appear properly.</li>\r\n \t<li><strong>Remembering to indent your code to make it easier to read:</strong> One main source of mistakes is forgetting to close a tag or curly brace, and indenting your code will make spotting these errors easier.</li>\r\n \t<li><strong>Remembering to enable location services on your browser and computer:</strong> To <a href=\"http://support.google.com/chrome/answer/142065\">enable location services</a> within Chrome, click on the settings icon (three horizontal lines on the top right of the browser), and click on Settings. Then click on the Settings tab, and at the bottom of the screen click on “Show Advanced settings … ” Under the Privacy menu heading, click on “Content settings … ” and scroll down to Location and make sure that “Ask when a site tries to track your physical location” is selected.</li>\r\n</ul>\r\n<p style=\"padding-left: 30px;\">To enable location services on a PC no additional setting is necessary, but on a <a href=\"https://support.apple.com/en-us/HT204690\">Mac using OS X Mountain Lion or later</a>, from the Apple menu choose System Preferences, then click on the Security & Privacy icon, and click the Privacy tab. Click the padlock icon on the lower left, and select Location Services, and check Enable Location Services.</p>\r\nFinally, you need to set up your development environment. To emulate a development environment without instructional content use Codepen.io. <a href=\"https://codepen.io/nabraham/pen/rNXJqO\">Codepen.io</a> offers a free stand-alone development environment, and makes it easy to share your code.","description":"There are many tools available to help coders do their best work. Before you start coding, do a few housekeeping items. First, ensure that you are doing all of the following:\r\n<ul>\r\n \t<li><strong>Using the Chrome browser:</strong> <a href=\"http://www.google.com/chrome/browser\">Download and install the latest version of Chrome</a>, as it offers the most support for the latest HTML standards.</li>\r\n \t<li><strong>Working on a desktop or laptop computer:</strong> Although it is possible to code on a mobile device, it can be more difficult and all layouts may not appear properly.</li>\r\n \t<li><strong>Remembering to indent your code to make it easier to read:</strong> One main source of mistakes is forgetting to close a tag or curly brace, and indenting your code will make spotting these errors easier.</li>\r\n \t<li><strong>Remembering to enable location services on your browser and computer:</strong> To <a href=\"http://support.google.com/chrome/answer/142065\">enable location services</a> within Chrome, click on the settings icon (three horizontal lines on the top right of the browser), and click on Settings. Then click on the Settings tab, and at the bottom of the screen click on “Show Advanced settings … ” Under the Privacy menu heading, click on “Content settings … ” and scroll down to Location and make sure that “Ask when a site tries to track your physical location” is selected.</li>\r\n</ul>\r\n<p style=\"padding-left: 30px;\">To enable location services on a PC no additional setting is necessary, but on a <a href=\"https://support.apple.com/en-us/HT204690\">Mac using OS X Mountain Lion or later</a>, from the Apple menu choose System Preferences, then click on the Security & Privacy icon, and click the Privacy tab. Click the padlock icon on the lower left, and select Location Services, and check Enable Location Services.</p>\r\nFinally, you need to set up your development environment. To emulate a development environment without instructional content use Codepen.io. <a href=\"https://codepen.io/nabraham/pen/rNXJqO\">Codepen.io</a> offers a free stand-alone development environment, and makes it easy to share your code.","blurb":"","authors":[{"authorId":9097,"name":"Nikhil Abraham","slug":"nikhil-abraham","description":" <p><b>Nikhil Abraham</b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9097"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":242447,"title":"The People Who Bring a Web App to Life","slug":"people-bring-web-app-life","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242447"}},{"articleId":242444,"title":"Research Sources for Coding Your Own App","slug":"research-sources-coding-app","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242444"}},{"articleId":242408,"title":"Dealing with Dates in Your Data","slug":"dealing-dates-data","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242408"}},{"articleId":242404,"title":"The Limits of Rating Data in Machine Learning","slug":"limits-rating-data-machine-learning","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242404"}},{"articleId":242398,"title":"Handling Problems with Raw Text in Python","slug":"handling-problems-raw-text-python","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242398"}}],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281666,"slug":"coding-all-in-one-for-dummies","isbn":"9781119889564","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119889561-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":null,"width":0,"height":0},"title":"Coding All-in-One For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p>This All-in-One includes work by expert coders and coding educators, including <b><b data-author-id=\"9070\">Chris Minnick</b> and Eva Holland </b>coauthors of<i> Coding with JavaScript For Dummies</i>; <b>Nikhil Abraham,</b> author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies;</i> <b>John Paul Mueller and Luca Massaron,</b> coauthors of <i>Python for Data Science For Dummies</i> and <i>Machine Learning For Dummies;</i> and <b>Barry Burd,</b> author of<i> Flutter For Dummies.</i></p>","authors":[{"authorId":9070,"name":"Chris Minnick","slug":"chris-minnick","description":" <p>This All-in-One includes work by expert coders and coding educators, including <b>Chris Minnick and Eva Holland </b>coauthors of<i> Coding with JavaScript For Dummies</i>; <b>Nikhil Abraham,</b> author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies;</i> <b>John Paul Mueller and Luca Massaron,</b> coauthors of <i>Python for Data Science For Dummies</i> and <i>Machine Learning For Dummies;</i> and <b>Barry Burd,</b> author of<i> Flutter For Dummies.</i></p> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9070"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-63221b44ed226\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-63221b44edd13\"></div></div>"},"articleType":{"articleType":"Articles","articleList":null,"content":null,"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":"Two years","lifeExpectancySetFrom":"2022-07-27T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":242436},{"headers":{"creationTime":"2018-06-22T19:49:36+00:00","modifiedTime":"2022-07-14T14:57:33+00:00","timestamp":"2022-09-14T18:19:45+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"Teaching Kids about Setting and Finding Position with Code","strippedTitle":"teaching kids about setting and finding position with code","slug":"teaching-kids-setting-finding-position-code","canonicalUrl":"","seo":{"metaDescription":"When coding, it’s important to teach kids the basics of setting and finding position. Setting the position of an object means assigning it coordinates to put it","noIndex":0,"noFollow":0},"content":"When coding, it’s important to teach kids the basics of setting and finding position.<em> Setting</em> the position of an object means assigning it coordinates to put it in a specific place onscreen. <em>Finding</em> the position of an object means identifying its coordinates to know where it’s located.\r\n<h2 id=\"tab1\" >Using pseudocode</h2>\r\nWhile each programming language uses its own structure for setting and finding coordinates, a typical pseudocode expression you may write to set the position of an object looks like this:\r\n<pre class=\"code\">setx &lt;em&gt;x-coordinate&lt;/em&gt;\r\nsety &lt;em&gt;y-coordinate&lt;/em&gt;</pre>\r\nOr\r\n<pre class=\"code\">setposition &lt;em&gt;(x-coordinate, y-coordinate)&lt;/em&gt;</pre>\r\nTo find the current position of an object, you can write pseudocode for each separate coordinate: <code>x-position</code> for the x-coordinate of the object, and <code>y-position</code> for the y-coordinate of the object. You can also write <code>position</code> to describe the object position as a coordinate pair.\r\n<h2 id=\"tab2\" >Using Scratch to set position</h2>\r\nTo set the x-coordinate of an object in Scratch, use the <code>set x to &lt;em&gt;number&lt;/em&gt;</code> command in the Motion category. The minimum value of the x-coordinate ranges is -240, and the maximum value is 240.\r\n\r\n[caption id=\"attachment_253679\" align=\"aligncenter\" width=\"535\"]<img class=\"wp-image-253679 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-x-coordinate.jpg\" alt=\"x-coordinate coding for kids\" width=\"535\" height=\"206\" /> Use <code>set x to number</code> command to set the x-coordinate of an object in Scratch.[/caption]\r\n\r\nTo set the y-coordinate of an object in Scratch, use the <code>set y to &lt;em&gt;number&lt;/em&gt;</code> command in the Motion category. The minimum value of the y-coordinate ranges is -180, and the maximum value is 180.\r\n\r\n[caption id=\"attachment_253680\" align=\"aligncenter\" width=\"535\"]<img class=\"wp-image-253680 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-y-coordinate.jpg\" alt=\"y-coordinate kids coding\" width=\"535\" height=\"206\" /> Use <code>set y to number</code> command to set the y-coordinate of an object in Scratch.[/caption]\r\n\r\nTo set both the x-coordinate and y-coordinate of an object in Scratch, use the <code>go to x: &lt;em&gt;number&lt;/em&gt; y: &lt;em&gt;number&lt;/em&gt;</code> command in the Motion category. The range of the x-coordinate value is -240 to 240, and the range of the y-coordinate value is -180 to 180.\r\n\r\n[caption id=\"attachment_253681\" align=\"aligncenter\" width=\"535\"]<img class=\"wp-image-253681 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-set-position.jpg\" alt=\"set object position coding\" width=\"535\" height=\"147\" /> Use <code>go to x: number y: number</code> command to set the position of an object in Scratch.[/caption]\r\n<p class=\"article-tips tech\">In Scratch, you can set the size of an object using the <code>set size to number %</code> command in the Looks category. This sets the size of the object as a percentage of its original size. Percentages smaller than 100 shrink the object. Percentages larger than 100 grow the object.</p>\r\n\r\n\r\n[caption id=\"attachment_253682\" align=\"aligncenter\" width=\"535\"]<img class=\"wp-image-253682 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-object-size.jpg\" alt=\"object size coding\" width=\"535\" height=\"135\" /> Use the <code>set size to number %</code> command to set size of an object in Scratch.[/caption]\r\n<h2 id=\"tab3\" >Using Scratch to find position</h2>\r\nTo find the x-coordinate of an object in Scratch, use the <code>x position</code> command in the Motion category. To find the y-coordinate of an object in Scratch, use the <code>y position</code> command in the Motion category. You and your coder can use these commands in your programs when you need to write commands that require information about an object's position.\r\n\r\nAs you code, sometimes you want to position an object (sprite) onscreen and then get its coordinates. You can do this for any sprite using either of these methods:\r\n<ul>\r\n \t<li>Select the checkbox next to the <code>x position</code> command and the <code>y position command</code> in the Motion category to show these values onscreen.</li>\r\n \t<li>On the thumbnail of the sprite, click the “i” icon to expand its information center and then view the x: and y: values displayed there.</li>\r\n</ul>\r\n[caption id=\"attachment_253683\" align=\"aligncenter\" width=\"351\"]<img class=\"wp-image-253683 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-sprite-coordinates.jpg\" alt=\"sprite coordinates coding\" width=\"351\" height=\"450\" /> Two ways to view the current x- and y-coordinates of a sprite.[/caption]\r\n\r\nIn both methods, the coordinates of Scratch Cat are (60, -18).\r\n<h2 id=\"tab4\" >Using JavaScript</h2>\r\nTo set both the x-coordinate and y-coordinate of an object in JavaScript, identify the object you want to position, and then use the <code>setPosition</code> command.\r\n\r\nHere are the steps for how to position an image of a mouse onscreen in the Code.org App Lab, using JavaScript.\r\n<ol>\r\n \t<li>In App Lab, click the Design button above the emulator of the mobile device.</li>\r\n \t<li>In the Workspace, select Image →   Choose.\r\n\r\nThe Choose Assets dialog box opens.</li>\r\n \t<li>Click the Upload button.</li>\r\n \t<li>Select the file you want, and then click the Choose button.\r\n<strong>\r\n</strong>The uploaded file appears in the dialog box. The name of the uploaded image file shown here is <code>mouse.png</code>.</li>\r\n \t<li>In the App Lab program workspace, type these commands:</li>\r\n</ol>\r\n<pre class=\"code\">&gt;image(\"character\", \"mouse.png\");\r\nsetPosition(\"character\", 160, 225, 100, 100);</pre>\r\nHere is what these commands do: The first command creates an image reference identification, <code>character</code>, and links the file, <code>mouse.png</code>, to this identification. The second command displays the image in <code>character</code> according to four quantities: the x-coordinate of the object, the y-coordinate of the object, the width of the object in pixels, and the height of the object in pixels.\r\n<p class=\"article-tips tech\">In App Lab, the range of the x-coordinate value is 0 to 320, and the range of the y-coordinate value is 0 to 450. When using JavaScript to program images displayed on a webpage, these values have larger maximum values, representing the larger size of a computer screen.</p>\r\nThe image below shows the mouse positioned at the coordinates (160, 225), which is the exact center of the screen. You can see that the mouse is positioned by its upper-left corner where the tip of its tail is located. The mouse has a width of 100 pixels and a height of 100 pixels.\r\n\r\n[caption id=\"attachment_253684\" align=\"aligncenter\" width=\"256\"]<img class=\"wp-image-253684 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-setposition.jpg\" alt=\"setPosition coding\" width=\"256\" height=\"450\" /> Use the <code>setPosition</code> command to set the position of an object in JavaScript.[/caption]\r\n\r\nTo find the x-coordinate of an object in JavaScript, use the <code>getXPosition(\"character\");</code> command where <code>character</code> is the identification reference of the object. To find the y-coordinate of an object in JavaScript, use the <code>getYPosition(\"character\");</code> command where <code>character</code> is the identification reference of the object.\r\n\r\nYou and your coder can write the following code to find and display onscreen the coordinates of an object named <code>character</code>. This assumes you have uploaded an image file and assigned it to the reference identification, <code>character</code>. Type this code in the App Lab program workspace.\r\n<pre class=\"code\">var x = getXPosition(\"character\");\r\nvar y = getYPosition(\"character\");\r\ntextLabel(\"xcor\");\r\ntextLabel(\"ycor\");\r\nsetText(\"xcor\", \"x-coordinate is \" + x);\r\nsetText(\"ycor\", \"y-coordinate is \" + y);</pre>\r\nHere is how this code works:\r\n<ul>\r\n \t<li>The <code>var x</code> variable gets the x position and the <code>var y</code> variable gets the y position of the object.</li>\r\n \t<li>The two <code>textLabel</code> commands create locations onscreen, called <code>xcor</code> and <code>ycor</code>, to display information.</li>\r\n \t<li>Each <code>setText</code> command displays a value in a text label. The value of <code>x</code> displays in the <code>xcor</code> label and the value of <code>y</code> displays in the <code>ycor</code></li>\r\n</ul>\r\n[caption id=\"attachment_253685\" align=\"aligncenter\" width=\"255\"]<img class=\"wp-image-253685 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-get-object-position.jpg\" alt=\"get object position coding\" width=\"255\" height=\"450\" /> Use the <code>getXPosition</code> and <code>getYPosition</code> commands to get the position of an object in JavaScript.[/caption]","description":"When coding, it’s important to teach kids the basics of setting and finding position.<em> Setting</em> the position of an object means assigning it coordinates to put it in a specific place onscreen. <em>Finding</em> the position of an object means identifying its coordinates to know where it’s located.\r\n<h2 id=\"tab1\" >Using pseudocode</h2>\r\nWhile each programming language uses its own structure for setting and finding coordinates, a typical pseudocode expression you may write to set the position of an object looks like this:\r\n<pre class=\"code\">setx &lt;em&gt;x-coordinate&lt;/em&gt;\r\nsety &lt;em&gt;y-coordinate&lt;/em&gt;</pre>\r\nOr\r\n<pre class=\"code\">setposition &lt;em&gt;(x-coordinate, y-coordinate)&lt;/em&gt;</pre>\r\nTo find the current position of an object, you can write pseudocode for each separate coordinate: <code>x-position</code> for the x-coordinate of the object, and <code>y-position</code> for the y-coordinate of the object. You can also write <code>position</code> to describe the object position as a coordinate pair.\r\n<h2 id=\"tab2\" >Using Scratch to set position</h2>\r\nTo set the x-coordinate of an object in Scratch, use the <code>set x to &lt;em&gt;number&lt;/em&gt;</code> command in the Motion category. The minimum value of the x-coordinate ranges is -240, and the maximum value is 240.\r\n\r\n[caption id=\"attachment_253679\" align=\"aligncenter\" width=\"535\"]<img class=\"wp-image-253679 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-x-coordinate.jpg\" alt=\"x-coordinate coding for kids\" width=\"535\" height=\"206\" /> Use <code>set x to number</code> command to set the x-coordinate of an object in Scratch.[/caption]\r\n\r\nTo set the y-coordinate of an object in Scratch, use the <code>set y to &lt;em&gt;number&lt;/em&gt;</code> command in the Motion category. The minimum value of the y-coordinate ranges is -180, and the maximum value is 180.\r\n\r\n[caption id=\"attachment_253680\" align=\"aligncenter\" width=\"535\"]<img class=\"wp-image-253680 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-y-coordinate.jpg\" alt=\"y-coordinate kids coding\" width=\"535\" height=\"206\" /> Use <code>set y to number</code> command to set the y-coordinate of an object in Scratch.[/caption]\r\n\r\nTo set both the x-coordinate and y-coordinate of an object in Scratch, use the <code>go to x: &lt;em&gt;number&lt;/em&gt; y: &lt;em&gt;number&lt;/em&gt;</code> command in the Motion category. The range of the x-coordinate value is -240 to 240, and the range of the y-coordinate value is -180 to 180.\r\n\r\n[caption id=\"attachment_253681\" align=\"aligncenter\" width=\"535\"]<img class=\"wp-image-253681 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-set-position.jpg\" alt=\"set object position coding\" width=\"535\" height=\"147\" /> Use <code>go to x: number y: number</code> command to set the position of an object in Scratch.[/caption]\r\n<p class=\"article-tips tech\">In Scratch, you can set the size of an object using the <code>set size to number %</code> command in the Looks category. This sets the size of the object as a percentage of its original size. Percentages smaller than 100 shrink the object. Percentages larger than 100 grow the object.</p>\r\n\r\n\r\n[caption id=\"attachment_253682\" align=\"aligncenter\" width=\"535\"]<img class=\"wp-image-253682 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-object-size.jpg\" alt=\"object size coding\" width=\"535\" height=\"135\" /> Use the <code>set size to number %</code> command to set size of an object in Scratch.[/caption]\r\n<h2 id=\"tab3\" >Using Scratch to find position</h2>\r\nTo find the x-coordinate of an object in Scratch, use the <code>x position</code> command in the Motion category. To find the y-coordinate of an object in Scratch, use the <code>y position</code> command in the Motion category. You and your coder can use these commands in your programs when you need to write commands that require information about an object's position.\r\n\r\nAs you code, sometimes you want to position an object (sprite) onscreen and then get its coordinates. You can do this for any sprite using either of these methods:\r\n<ul>\r\n \t<li>Select the checkbox next to the <code>x position</code> command and the <code>y position command</code> in the Motion category to show these values onscreen.</li>\r\n \t<li>On the thumbnail of the sprite, click the “i” icon to expand its information center and then view the x: and y: values displayed there.</li>\r\n</ul>\r\n[caption id=\"attachment_253683\" align=\"aligncenter\" width=\"351\"]<img class=\"wp-image-253683 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-sprite-coordinates.jpg\" alt=\"sprite coordinates coding\" width=\"351\" height=\"450\" /> Two ways to view the current x- and y-coordinates of a sprite.[/caption]\r\n\r\nIn both methods, the coordinates of Scratch Cat are (60, -18).\r\n<h2 id=\"tab4\" >Using JavaScript</h2>\r\nTo set both the x-coordinate and y-coordinate of an object in JavaScript, identify the object you want to position, and then use the <code>setPosition</code> command.\r\n\r\nHere are the steps for how to position an image of a mouse onscreen in the Code.org App Lab, using JavaScript.\r\n<ol>\r\n \t<li>In App Lab, click the Design button above the emulator of the mobile device.</li>\r\n \t<li>In the Workspace, select Image →   Choose.\r\n\r\nThe Choose Assets dialog box opens.</li>\r\n \t<li>Click the Upload button.</li>\r\n \t<li>Select the file you want, and then click the Choose button.\r\n<strong>\r\n</strong>The uploaded file appears in the dialog box. The name of the uploaded image file shown here is <code>mouse.png</code>.</li>\r\n \t<li>In the App Lab program workspace, type these commands:</li>\r\n</ol>\r\n<pre class=\"code\">&gt;image(\"character\", \"mouse.png\");\r\nsetPosition(\"character\", 160, 225, 100, 100);</pre>\r\nHere is what these commands do: The first command creates an image reference identification, <code>character</code>, and links the file, <code>mouse.png</code>, to this identification. The second command displays the image in <code>character</code> according to four quantities: the x-coordinate of the object, the y-coordinate of the object, the width of the object in pixels, and the height of the object in pixels.\r\n<p class=\"article-tips tech\">In App Lab, the range of the x-coordinate value is 0 to 320, and the range of the y-coordinate value is 0 to 450. When using JavaScript to program images displayed on a webpage, these values have larger maximum values, representing the larger size of a computer screen.</p>\r\nThe image below shows the mouse positioned at the coordinates (160, 225), which is the exact center of the screen. You can see that the mouse is positioned by its upper-left corner where the tip of its tail is located. The mouse has a width of 100 pixels and a height of 100 pixels.\r\n\r\n[caption id=\"attachment_253684\" align=\"aligncenter\" width=\"256\"]<img class=\"wp-image-253684 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-setposition.jpg\" alt=\"setPosition coding\" width=\"256\" height=\"450\" /> Use the <code>setPosition</code> command to set the position of an object in JavaScript.[/caption]\r\n\r\nTo find the x-coordinate of an object in JavaScript, use the <code>getXPosition(\"character\");</code> command where <code>character</code> is the identification reference of the object. To find the y-coordinate of an object in JavaScript, use the <code>getYPosition(\"character\");</code> command where <code>character</code> is the identification reference of the object.\r\n\r\nYou and your coder can write the following code to find and display onscreen the coordinates of an object named <code>character</code>. This assumes you have uploaded an image file and assigned it to the reference identification, <code>character</code>. Type this code in the App Lab program workspace.\r\n<pre class=\"code\">var x = getXPosition(\"character\");\r\nvar y = getYPosition(\"character\");\r\ntextLabel(\"xcor\");\r\ntextLabel(\"ycor\");\r\nsetText(\"xcor\", \"x-coordinate is \" + x);\r\nsetText(\"ycor\", \"y-coordinate is \" + y);</pre>\r\nHere is how this code works:\r\n<ul>\r\n \t<li>The <code>var x</code> variable gets the x position and the <code>var y</code> variable gets the y position of the object.</li>\r\n \t<li>The two <code>textLabel</code> commands create locations onscreen, called <code>xcor</code> and <code>ycor</code>, to display information.</li>\r\n \t<li>Each <code>setText</code> command displays a value in a text label. The value of <code>x</code> displays in the <code>xcor</code> label and the value of <code>y</code> displays in the <code>ycor</code></li>\r\n</ul>\r\n[caption id=\"attachment_253685\" align=\"aligncenter\" width=\"255\"]<img class=\"wp-image-253685 size-full\" src=\"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-get-object-position.jpg\" alt=\"get object position coding\" width=\"255\" height=\"450\" /> Use the <code>getXPosition</code> and <code>getYPosition</code> commands to get the position of an object in JavaScript.[/caption]","blurb":"","authors":[{"authorId":9324,"name":"Camille McCue","slug":"camille-mccue","description":" <p><b>Camille McCue, PhD</b> is a STEM educator and leader who has worked for IBM, NASA, PBS, and numerous independent schools. She has taught every grade from kindergarten to grad school, covering topics ranging from Scratch to AP computer science. Camille is co&#45;author of <i>Helping Kids with Coding For Dummies</i> and author of <i>Getting Started with Coding</i> and <i>Getting Started with Engineering.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9324"}},{"authorId":9091,"name":"Sarah Guthals","slug":"sarah-guthals","description":" <p><b>Camille McCue, PhD,</b> is Director of Curriculum Innovations at the Adelson Educational Campus in Las Vegas where she leads the Startup Incubator, teaches STEM, and kickstarts K&#45;12 learning initiatives. <b>Sarah Guthals, PhD,</b> co&#45;founded an ed&#45;tech company and now continues to build technology for kids to learn, create, and share safely online. She loves to teach teachers how to teach coding in the classroom. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9091"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[{"label":"Using pseudocode","target":"#tab1"},{"label":"Using Scratch to set position","target":"#tab2"},{"label":"Using Scratch to find position","target":"#tab3"},{"label":"Using JavaScript","target":"#tab4"}],"relatedArticles":{"fromBook":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281734,"slug":"helping-kids-with-coding-for-dummies","isbn":"9781119380672","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119380677/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119380677/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119380677-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119380677/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119380677/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-for-dummies-cover-9781119380672-203x255.jpg","width":203,"height":255},"title":"Helping Kids with Coding For Dummies","testBankPinActivationLink":"","bookOutOfPrint":false,"authorsInfo":"<p><b data-author-id=\"9324\">Camille McCue, PhD,</b> is Director of Curriculum Innovations at the Adelson Educational Campus in Las Vegas where she leads the Startup Incubator, teaches STEM, and kickstarts K-12 learning initiatives. <b data-author-id=\"9091\">Sarah Guthals, PhD,</b> co-founded an ed-tech company and now continues to build technology for kids to learn, create, and share safely online. She loves to teach teachers how to teach coding in the classroom. </p>","authors":[{"authorId":9324,"name":"Camille McCue","slug":"camille-mccue","description":" <p><b>Camille McCue, PhD</b> is a STEM educator and leader who has worked for IBM, NASA, PBS, and numerous independent schools. She has taught every grade from kindergarten to grad school, covering topics ranging from Scratch to AP computer science. Camille is co&#45;author of <i>Helping Kids with Coding For Dummies</i> and author of <i>Getting Started with Coding</i> and <i>Getting Started with Engineering.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9324"}},{"authorId":9091,"name":"Sarah Guthals","slug":"sarah-guthals","description":" <p><b>Camille McCue, PhD,</b> is Director of Curriculum Innovations at the Adelson Educational Campus in Las Vegas where she leads the Startup Incubator, teaches STEM, and kickstarts K&#45;12 learning initiatives. <b>Sarah Guthals, PhD,</b> co&#45;founded an ed&#45;tech company and now continues to build technology for kids to learn, create, and share safely online. She loves to teach teachers how to teach coding in the classroom. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9091"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119380672&quot;]}]\" id=\"du-slot-63221b4153605\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119380672&quot;]}]\" id=\"du-slot-63221b4154052\"></div></div>"},"articleType":{"articleType":"Articles","articleList":null,"content":null,"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Explore","lifeExpectancy":"Five years","lifeExpectancySetFrom":"2022-07-14T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":253678},{"headers":{"creationTime":"2017-04-24T18:11:34+00:00","modifiedTime":"2022-06-30T21:38:03+00:00","timestamp":"2022-09-14T18:19:45+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"Coding All-in-One For Dummies Cheat Sheet","strippedTitle":"coding all-in-one for dummies cheat sheet","slug":"coding-one-dummies-cheat-sheet","canonicalUrl":"","seo":{"metaDescription":"This Cheat Sheet includes basic coding vocabulary, resources for beginners, and advice on how to perform well in a coding job interview.","noIndex":0,"noFollow":0},"content":"Coding is equal parts vocabulary, logic, and syntax. Coding may at first seem intimidating, but with practice, though, it's easy to get comfortable with its terminology, concepts, and structure. Understanding coding is not unlike learning a new language: Use it often enough and you'll find yourself able to speak, think, and write in code.\r\n\r\nStill, it's natural for beginners to have questions. There are many coding resources available to you, both on- and off-line. Ask around and you'll find you're not alone — many other people are learning. After all, coding is a never-ending education. Master one facet or another and a new one opens in front of you.","description":"Coding is equal parts vocabulary, logic, and syntax. Coding may at first seem intimidating, but with practice, though, it's easy to get comfortable with its terminology, concepts, and structure. Understanding coding is not unlike learning a new language: Use it often enough and you'll find yourself able to speak, think, and write in code.\r\n\r\nStill, it's natural for beginners to have questions. There are many coding resources available to you, both on- and off-line. Ask around and you'll find you're not alone — many other people are learning. After all, coding is a never-ending education. Master one facet or another and a new one opens in front of you.","blurb":"","authors":[{"authorId":9097,"name":"Nikhil Abraham","slug":"nikhil-abraham","description":" <p><b>Nikhil Abraham</b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9097"}},{"authorId":9070,"name":"Chris Minnick","slug":"chris-minnick","description":" <p>This All-in-One includes work by expert coders and coding educators, including <b>Chris Minnick and Eva Holland </b>coauthors of<i> Coding with JavaScript For Dummies</i>; <b>Nikhil Abraham,</b> author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies;</i> <b>John Paul Mueller and Luca Massaron,</b> coauthors of <i>Python for Data Science For Dummies</i> and <i>Machine Learning For Dummies;</i> and <b>Barry Burd,</b> author of<i> Flutter For Dummies.</i></p> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9070"}},{"authorId":9069,"name":"Barry Burd","slug":"barry-burd","description":" <p><b>Dr. Barry Burd</b> holds an M.S. in Computer Science from Rutgers University and a Ph.D. in Mathematics from the University of Illinois. Barry is also the author of <i>Beginning Programming with Java For Dummies, Java for Android For Dummies,</i> and <i>Flutter For Dummies.</i></p> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9069"}},{"authorId":9071,"name":"Eva Holland","slug":"eva-holland","description":" <p><b>Chris Minnick</b> is an accomplished author, trainer, and web developer who has worked on web and mobile projects for both small and major businesses. <b>Eva Holland</b> is an experienced writer and trainer who has designed and taught online, in&#45;person, and video courses. They are cofounders of WatzThis&#63; ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9071"}},{"authorId":9110,"name":"Luca Massaron","slug":"luca-massaron","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9110"}},{"authorId":9109,"name":"John Paul Mueller","slug":"john-paul-mueller","description":" <p><b>John Mueller</b> has produced 114 books and more than 600 articles on topics ranging from functional programming techniques to working with Amazon Web Services &#40;AWS&#41;. <b>Luca Massaron,</b> a Google Developer Expert &#40;GDE&#41;,??interprets big data and transforms it into smart data through simple and effective data mining and machine learning techniques. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9109"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":242447,"title":"The People Who Bring a Web App to Life","slug":"people-bring-web-app-life","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242447"}},{"articleId":242444,"title":"Research Sources for Coding Your Own App","slug":"research-sources-coding-app","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242444"}},{"articleId":242436,"title":"Getting Ready to Code? Do These Things First","slug":"getting-ready-code-things-first","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242436"}},{"articleId":242408,"title":"Dealing with Dates in Your Data","slug":"dealing-dates-data","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242408"}},{"articleId":242404,"title":"The Limits of Rating Data in Machine Learning","slug":"limits-rating-data-machine-learning","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/242404"}}],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281666,"slug":"coding-all-in-one-for-dummies","isbn":"9781119889564","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119889561-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119889561/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":null,"width":0,"height":0},"title":"Coding All-in-One For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p>This All-in-One includes work by expert coders and coding educators, including <b><b data-author-id=\"9070\">Chris Minnick</b> and Eva Holland </b>coauthors of<i> Coding with JavaScript For Dummies</i>; <b>Nikhil Abraham,</b> author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies;</i> <b>John Paul Mueller and Luca Massaron,</b> coauthors of <i>Python for Data Science For Dummies</i> and <i>Machine Learning For Dummies;</i> and <b>Barry Burd,</b> author of<i> Flutter For Dummies.</i></p>","authors":[{"authorId":9070,"name":"Chris Minnick","slug":"chris-minnick","description":" <p>This All-in-One includes work by expert coders and coding educators, including <b>Chris Minnick and Eva Holland </b>coauthors of<i> Coding with JavaScript For Dummies</i>; <b>Nikhil Abraham,</b> author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies;</i> <b>John Paul Mueller and Luca Massaron,</b> coauthors of <i>Python for Data Science For Dummies</i> and <i>Machine Learning For Dummies;</i> and <b>Barry Burd,</b> author of<i> Flutter For Dummies.</i></p> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9070"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-63221b411d5aa\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119889564&quot;]}]\" id=\"du-slot-63221b411df50\"></div></div>"},"articleType":{"articleType":"Cheat Sheet","articleList":[{"articleId":238417,"title":"Basic Coding Vocabulary","slug":"coding-vocabulary-2","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/238417"}},{"articleId":238425,"title":"References and Resources for the Beginning Programmer","slug":"coding-references-resources","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/238425"}},{"articleId":238428,"title":"Performing in a Coding Job Interview","slug":"performing-coding-interview","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/238428"}}],"content":[{"title":"Basic coding vocabulary ","thumb":null,"image":null,"content":"<div id=\"article-content-wrapper\" data-v-89b5964a=\"\" data-v-76ccd6ad=\"\">\n<article class=\"article-content\" data-v-89b5964a=\"\" data-testid=\"articleContent\">Coding has an extensive vocabulary that to laymen can seem like impenetrable techno-babble. Whether you&#8217;re reading coding-related article online or speaking to a developer at work, you may hear words that you have not heard before or that have a different meaning in a coding context. Following, are some common vocabulary words to know.</p>\n<h3><strong>General web development terms</strong></h3>\n<ul>\n<li><strong>Server</strong>: A computer that hosts website code, and that &#8220;serves&#8221; website code when requested by a &#8220;client&#8221; computer. Servers usually sit in large warehouses with thousands of other servers, and are similar in size and power to your home computer.</li>\n<li><strong>Client</strong>: A device used to access a website, including desktop or laptop computers, tablets, or mobile phones</li>\n<li><strong>Designer</strong>: An artistic professional who decides how a website will look and feel, along with the ways users will interact with the website — such as, for example, clicking, swiping, scrolling, and so on</li>\n<li><strong>Wireframe</strong>: An illustration created by designers that show in detail a website&#8217;s layouts, images, and color schemes</li>\n<li><strong>Developer</strong>: An engineering professional who writes code to turn wireframes into useable websites. Based on the type of code written, developers are referred to as front-end, back-end, or full stack.</li>\n<li><strong>Front-end</strong>: Everything you can see and click in a browser. Front-end developers write code in front-end languages, like HTML, CSS, and JavaScript, to create the website appearance.</li>\n<li><strong>Back-end</strong>: Everything that happens behind-the-scenes to make the front-end perform as intended. Back-end developers write code in back-end languages — like Ruby or Python — to create functionality, such as logging in users, storing user preferences, and retrieving data like comments on a photo.</li>\n</ul>\n<h3><strong>Terms related to front-end languages</strong></h3>\n<p><strong>HTML (Hypertext Markup Language):</strong>A language used to place text, images, and other content on a webpage.</p>\n<p><strong>HTML tag:</strong> HTML instructions, usually appearing in pairs. Browsers apply special effects to text between an opening <code>&lt;element&amp;gt&lt; code=\"\"&gt;; and closing &lt;/element&amp;gt&lt;&gt;; HTML tag. For instance, the &lt;h1&amp;gt&lt; code=\"\"&gt;; tag renders in a browser as a large bolded headline and can be used like this:</code></p>\n<h1>Dewey beats Truman</h1>\n<p><strong>HTML attribute:</strong> Attributes or parameters for HTML tags that modify the tag&#8217;s behavior. Attributes are always placed in the opening HTML tag. For example, <code>href</code> is the attribute in the following anchor tag (used to create hyperlinks): <code><a href=\"http://www.google.com/\">Search engine</a></code></p>\n<p><strong>CSS (Cascading Style Sheets)</strong>: Code that modifies HTML on webpages and that controls the appearance of content by changing text size, image size, and other attributes.</p>\n<p><strong>JavaScript</strong>: Code that adds interactivity and animation to webpages. JavaScript also detects browser events such as mouse clicks, validates user input such as text entries, and retrieves data from external websites.</p>\n<p><strong>Variable:</strong> A storage location that&#8217;s given a name and that contains numerical data or text (referred to as <em>strings</em>) for later use.</p>\n<p><strong>If statement (conditional):</strong> A code instruction that tests a condition that usually includes variables, such as <code>x &lt; 18</code>, and executes code you write when the condition is true.</p>\n<p><strong>Function:</strong> A name given to a group of programming statements for easy reference and use.</p>\n<h3><strong>Terms related to back-end languages</strong></h3>\n<p><strong>Ruby:</strong> An open-source programming language best known for use in web programming.</p>\n<p><strong>Rails:</strong> A framework designed to make creating webpages with Ruby easy.</p>\n<p><strong>Python: </strong>An open-source programming language used on the web, in scientific applications, and for data analysis.</p>\n<h3>Terms related to mobile apps</h3>\n<p><strong>Android:</strong> An open-source mobile operating system created by Google.</p>\n<p><strong>iOS:</strong> Apple&#8217;s mobile operating system, which runs on iPhones and iPads.</p>\n<p><strong>Emulator:</strong> An application that duplications the functionality of a mobile device on a desktop computer.</p>\n<p><strong>Cross-platform Development:</strong> The practice of developing software for multiple software environments, such as the Web, Android, and iOS.</p>\n</article>\n</div>\n"},{"title":"References and resources for the beginning programmer ","thumb":null,"image":null,"content":"<p>HTML, CSS, and JavaScript are the most common front-end coding languages. Following is a list of some online resources, references, and tutorials to help you continue practicing all three languages.</p>\n<ul>\n<li><a href=\"http://www.w3schools.com/\" target=\"_blank\" rel=\"noopener\">W3Schools</a>: Reference guides for HTML, CSS, and JavaScript</li>\n<li><a href=\"https://htmlcheatsheet.com/\" target=\"_blank\" rel=\"noopener\">HTML cheat sheet</a>: Most commonly used HTML commands</li>\n<li><a href=\"https://htmlcheatsheet.com/css/\" target=\"_blank\" rel=\"noopener\">CSS cheat sheet</a>: Most commonly used CSS commands</li>\n<li><a href=\"http://www.html5rocks.com/en/tutorials/\" target=\"_blank\" rel=\"noopener\">HTML tutorials</a>: Tutorials and articles for the web maintained by Google</li>\n<li><a href=\"http://css-tricks.com/\" target=\"_blank\" rel=\"noopener\">CSS tutorials</a>: Tutorials and articles for web programming, with a focus on CSS</li>\n<li><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript\" target=\"_blank\" rel=\"noopener\">JavaScript tutorials</a>: Tutorials and reference guides for JavaScript</li>\n</ul>\n"},{"title":"Performing in a coding job interview ","thumb":null,"image":null,"content":"<p>You&#8217;ve filtered coding job postings, networked with dozens of people, created a great portfolio site, and finally landed one or more interviews. Use these tips to maximize the chances of turning the interview into an offer for employment:</p>\n<ul>\n<li><strong>Prepare diligently:</strong> Review the company’s website, blog posts, news releases, tweets, and any other social media to learn more about the company’s culture, technologies, and past clients. For public companies, browse annual reports to get a sense for past performance and future strategic goals.</li>\n<li><strong>Advocate for yourself: </strong>You know what you want and why, so make sure you communicate that to your future potential employer. Think about why you want to work at the company, which product you’d be most excited to work on, and what you want to spend the next few months and years learning technically. If you don’t have any preferences or thoughts, it can be hard for an employer to believe that you’re excited about the company and that you’ll have the motivation to keep learning on the job.</li>\n<li><strong>Sharpen your technical skills: </strong>Assessment of technical skills are the big part of any coding interview, so review code for programs you’ve already built and make sure you understand why you made certain decisions and used certain technologies. A big part of your job will be deciding what tools to use and when, and employers want to see as soon as possible your thought process on how you choose your tools.</li>\n<li><strong>Show your fit: </strong>Many candidates are technically competent but fail the fit interview. Make sure you understand before the interview the company’s culture and values so you’ll have time to see whether you’ll fit in.</li>\n<li><strong>Ask questions:</strong> Demonstrate your passion by asking questions that are not answered on the company website. Your interviewer has likely just spent 30 minutes asking you personal questions, so feel free to ask some personal questions of your own about the role, the work, or the company.</li>\n<li><strong>Follow up:</strong> After the interview is over, your interviewers will categorize you as a definite hire, possible hire, or rejected candidate. Many people fall into the possible hire category, and following up with your interviewers can increase your chances of receiving an offer.\n<p>After your interview, send a short email thanking your interviewers, reinforcing your key skills, and addressing any weak areas that came up during the interview. Additionally, include a brief reference to any personal interests you shared with your interviewers to help them remember you.</li>\n</ul>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":"Two years","lifeExpectancySetFrom":"2022-06-30T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":238432},{"headers":{"creationTime":"2018-06-02T04:51:46+00:00","modifiedTime":"2022-04-27T19:00:34+00:00","timestamp":"2022-09-14T18:19:41+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"Helping Kids with Coding For Dummies Cheat Sheet","strippedTitle":"helping kids with coding for dummies cheat sheet","slug":"helping-kids-coding-dummies-cheat-sheet","canonicalUrl":"","seo":{"metaDescription":"This Cheat Sheet offers many ways you can support children's learning of coding, and describes many possible career paths for coders.","noIndex":0,"noFollow":0},"content":"Coding is fast becoming a skill that every child needs to be educated for in the 21st Century. But coding is taught at only a small fraction of schools, and often only at the high school level. Helping kids learn how to code also means you’re assisting them in developing a skill that is highly marketable and sets them apart from peers at school and later, in their careers.\r\n\r\nThe topics in this cheat sheet can assist you on getting started when your kid expresses an interest in learning how to code.","description":"Coding is fast becoming a skill that every child needs to be educated for in the 21st Century. But coding is taught at only a small fraction of schools, and often only at the high school level. Helping kids learn how to code also means you’re assisting them in developing a skill that is highly marketable and sets them apart from peers at school and later, in their careers.\r\n\r\nThe topics in this cheat sheet can assist you on getting started when your kid expresses an interest in learning how to code.","blurb":"","authors":[{"authorId":9324,"name":"Camille McCue","slug":"camille-mccue","description":" <p><b>Camille McCue, PhD</b> is a STEM educator and leader who has worked for IBM, NASA, PBS, and numerous independent schools. She has taught every grade from kindergarten to grad school, covering topics ranging from Scratch to AP computer science. Camille is co&#45;author of <i>Helping Kids with Coding For Dummies</i> and author of <i>Getting Started with Coding</i> and <i>Getting Started with Engineering.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9324"}},{"authorId":9091,"name":"Sarah Guthals","slug":"sarah-guthals","description":" <p><b>Camille McCue, PhD,</b> is Director of Curriculum Innovations at the Adelson Educational Campus in Las Vegas where she leads the Startup Incubator, teaches STEM, and kickstarts K&#45;12 learning initiatives. <b>Sarah Guthals, PhD,</b> co&#45;founded an ed&#45;tech company and now continues to build technology for kids to learn, create, and share safely online. She loves to teach teachers how to teach coding in the classroom. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9091"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281734,"slug":"helping-kids-with-coding-for-dummies","isbn":"9781119380672","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119380677/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119380677/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119380677-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119380677/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119380677/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/helping-kids-with-coding-for-dummies-cover-9781119380672-203x255.jpg","width":203,"height":255},"title":"Helping Kids with Coding For Dummies","testBankPinActivationLink":"","bookOutOfPrint":false,"authorsInfo":"<p><b data-author-id=\"9324\">Camille McCue, PhD,</b> is Director of Curriculum Innovations at the Adelson Educational Campus in Las Vegas where she leads the Startup Incubator, teaches STEM, and kickstarts K-12 learning initiatives. <b data-author-id=\"9091\">Sarah Guthals, PhD,</b> co-founded an ed-tech company and now continues to build technology for kids to learn, create, and share safely online. She loves to teach teachers how to teach coding in the classroom. </p>","authors":[{"authorId":9324,"name":"Camille McCue","slug":"camille-mccue","description":" <p><b>Camille McCue, PhD</b> is a STEM educator and leader who has worked for IBM, NASA, PBS, and numerous independent schools. She has taught every grade from kindergarten to grad school, covering topics ranging from Scratch to AP computer science. Camille is co&#45;author of <i>Helping Kids with Coding For Dummies</i> and author of <i>Getting Started with Coding</i> and <i>Getting Started with Engineering.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9324"}},{"authorId":9091,"name":"Sarah Guthals","slug":"sarah-guthals","description":" <p><b>Camille McCue, PhD,</b> is Director of Curriculum Innovations at the Adelson Educational Campus in Las Vegas where she leads the Startup Incubator, teaches STEM, and kickstarts K&#45;12 learning initiatives. <b>Sarah Guthals, PhD,</b> co&#45;founded an ed&#45;tech company and now continues to build technology for kids to learn, create, and share safely online. She loves to teach teachers how to teach coding in the classroom. ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9091"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119380672&quot;]}]\" id=\"du-slot-63221b3db4b6f\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119380672&quot;]}]\" id=\"du-slot-63221b3db55f2\"></div></div>"},"articleType":{"articleType":"Cheat Sheet","articleList":[{"articleId":252783,"title":"Programming Languages by Ages","slug":"programming-languages-ages","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/252783"}},{"articleId":252786,"title":"Career Paths for Coders","slug":"career-paths-coders","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/252786"}},{"articleId":252789,"title":"Example Applications for Novice Coders by Language","slug":"example-applications-novice-coders-language","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/252789"}},{"articleId":252825,"title":"10 Ways to Invest in a Kid’s Coding Future","slug":"10-ways-invest-kids-coding-future","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/252825"}}],"content":[{"title":"Programming languages by ages","thumb":null,"image":null,"content":"<p>When we were growing up, there weren’t as many applications and languages targeting novices. Logo and Basic were the main choices! Luckily, in the past decade, programmers and educators from around the world have developed so many languages and environments for coders of all ages and levels of expertise! This is a short list of programming languages, applications, and environments by age.</p>\n<h3><strong>Ages 4 to 7</strong></h3>\n<p>The general goal for coding with children as young as age 4 is to help them develop logical thinking and “computational thinking.” Basically, this is understanding how to break apart problems and formulate a set of clearly defined steps to solve the problem in such a way that a computer could carry out the steps.</p>\n<ul>\n<li><a href=\"https://codespark.com/webglhost/\" target=\"_blank\" rel=\"noopener\">The Foos</a></li>\n<li><a href=\"http://www.daisythedinosaur.com/\" target=\"_blank\" rel=\"noopener\">Daisy the Dinosaur</a></li>\n<li><a href=\"https://www.scratchjr.org/\" target=\"_blank\" rel=\"noopener\">ScratchJr</a></li>\n<li><a href=\"https://www.kodable.com/\" target=\"_blank\" rel=\"noopener\">Kodable</a></li>\n<li><a href=\"http://lightbot.com/index.html\" target=\"_blank\" rel=\"noopener\">Light Bot</a></li>\n<li><a href=\"https://www.makewonder.com/dash\">Dash and Dot</a></li>\n<li><a href=\"http://www.microworlds.com/\" target=\"_blank\" rel=\"noopener\">MicroWorlds JR</a></li>\n</ul>\n<h3><strong>Ages 8 to 12</strong></h3>\n<p>Children in this age range really rev up their coding as they advance their math skills and improve their abilities in creating long and more complex sequences of code.</p>\n<p>At this point your goals in guiding them are helping them expand their understanding of how code is used (apps, electronics, and others), fostering their creativity, and building their persistence in sticking-to-it when they encounter challenges — including debugging. Help them realize that they can build almost anything they can imagine!</p>\n<ul>\n<li><a href=\"https://scratch.mit.edu/\" target=\"_blank\" rel=\"noopener\">Scratch</a></li>\n<li><a href=\"https://code.org/educate/applab\" target=\"_blank\" rel=\"noopener\">App Lab</a></li>\n<li><a href=\"https://www.gethopscotch.com/\" target=\"_blank\" rel=\"noopener\">Hopscotch</a></li>\n<li><a href=\"https://www.kodugamelab.com/\" target=\"_blank\" rel=\"noopener\">Kodu</a></li>\n<li><a href=\"http://microbit.org/\" target=\"_blank\" rel=\"noopener\">micro:bit</a></li>\n<li><a href=\"https://makecode.com/\" target=\"_blank\" rel=\"noopener\">Make Code</a></li>\n<li><a href=\"https://www.arduino.cc/\" target=\"_blank\" rel=\"noopener\">Arduino</a></li>\n<li><a href=\"http://www.microworlds.com/\">MicroWorlds EX</a></li>\n<li><a href=\"https://www.tynker.com/\" target=\"_blank\" rel=\"noopener\">Tynker</a></li>\n</ul>\n<h3><strong>Ages 13+</strong></h3>\n<p>Coding with teens introduces a whole new world of making! This is usually when youth start working in text-based languages and therefore engage in industry-standard languages and high-level concepts.</p>\n<p>At this point, you should be motivating your young coders to think about how they might apply what they are learning to future careers, advising them to really plan their programs, and encouraging them to determine what languages would be best for what they want to build.</p>\n<ul>\n<li><a href=\"https://www.alice.org/\" target=\"_blank\" rel=\"noopener\">Alice</a></li>\n<li><a href=\"http://appinventor.mit.edu/explore/\" target=\"_blank\" rel=\"noopener\">MIT App Inventor</a></li>\n<li><a href=\"https://www.python.org/\" target=\"_blank\" rel=\"noopener\">Python</a></li>\n<li><a href=\"https://www.javascript.com/\" target=\"_blank\" rel=\"noopener\">JavaScript</a></li>\n<li><a href=\"https://java.com/en/\" target=\"_blank\" rel=\"noopener\">Java</a></li>\n<li><a href=\"https://www.makewonder.com/cue_the_cleverbot\" target=\"_blank\" rel=\"noopener\">Cue</a></li>\n<li><a href=\"https://gamesalad.com/\" target=\"_blank\" rel=\"noopener\">Game Salad</a></li>\n</ul>\n<p>(<em>Note:</em> Alice is a teaching language, and Cue is a robot that uses both tile-based code and JavaScript.)</p>\n<p>Coding is a life-long journey. Even adults with extensive experience are surprised by the programs they can write in Scratch. So, if you have an older coder, don’t be afraid to challenge them with applications to build in “younger” languages.</p>\n<p>Scratch is the first language used at Berkeley for students who might be interested in computer science — undergraduate students! Exposure, creativity, and exploration is what matters; don’t feel the need to force kids to move onto “real” languages too quickly — let it be a journey!</p>\n"},{"title":"Career paths for coders","thumb":null,"image":null,"content":"<p>The really neat thing about learning to code is that you can literally apply it to pretty much any other passion in life, and any other field.</p>\n<p>Our biggest piece of advice for coders in high school and college who are considering computer science as their career path is to first choose a passion outside of coding, and then figure out a way to apply coding to that passion. This doesn’t have to be a requirement, but it’s a lot of fun and really inspiring to have older kids discover that they can mix their love of rap music to their new-found excitement of computer science and make a career out of it.</p>\n<h3>Software companies</h3>\n<p>The most commonly talked about career path for someone interested in coding is to work for a software company — such as Google, Microsoft, or Facebook. These companies typically hire folks who have degrees in computer science (bachelor’s through doctorate), although they&#8217;ve been known to hire from boot camps and people who are self-taught.</p>\n<p>For many companies, the degree isn’t what matters, only the skill set coders possess. GitHub, for example, is a company that doesn’t require candidates to even list what school they went to, instead asking for a technical portfolio. These companies typically provide high-paying jobs, good benefits, and flexibility in work schedules. Coders are usually the focus of the company, and employees can work on cutting edge technology.</p>\n<h3>Freelance coding</h3>\n<p>One of the really neat things about the computer science industry is that you do not have to join a large tech company to be a part of the field! People all around the world with varying levels of formal education, from being self-taught to having PhDs in computer science, become freelance coders.</p>\n<p>Sites, such as <a href=\"https://www.upwork.com/\" target=\"_blank\" rel=\"noopener\">Upwork</a>, help coders find people who need code written for them. A lot of freelance coders will work on web development or mobile development, because those projects tend to be more contained and have clearer cut lines regarding ownership. This is a great career, especially for those who want to live in places where fewer technical jobs are available.</p>\n<h3>Entertainment companies</h3>\n<p>Most forms of entertainment these days involve an incredible amount of coding. For example, most movies have huge teams of software engineers for special effects and animation.</p>\n<p>Aside from movies, video games are huge efforts by hundreds and thousands of software engineers over years. For example, World of Warcraft took nearly five years to make. Companies such as Blizzard (creator of World of Warcraft) and Riot Games (creator of League of Legends) employ thousands of artists and engineers to produce games.</p>\n<p>Even the music industry has software engineers, creating soundboards, using algorithms to create new music, and discovering new ways to engage with their audiences.</p>\n<p>Finally, entertainment parks are filled with software engineers; most notably Disney’s <em>imagineers</em> are some of the most innovative when it comes to in-person customer experience.</p>\n<h3>Non-software focused companies</h3>\n<p>In today’s world, pretty much every industry and company has a need for a coder. Smaller companies might use existing software or get freelance coders to help. For example, small companies might use something like Wix or Squarespace to create their websites, both of which provide an easy-to-use interface for high quality websites.</p>\n<p>Larger companies, with more specialized software needs, might hire coders to make software specifically for their needs. For example, companies like Target hire software engineers to build the mobile apps, website, and behind-the-scenes software for sales and inventory.</p>\n<p>Working at non-software focused companies can be fun, because the software can have a direct application other than just “software.”</p>\n<h3>Any other industry</h3>\n<p>The really neat thing about knowing how to code is that it can be useful in pretty much any other industry and context, without it being the main focus of your career.</p>\n<p>Having the ability to code could give you the power to enhance and improve your job in ways you didn’t expect. Furthermore, even if you don’t code within your job, you will most likely interact with some kind of software, and that software will most likely have a problem. At this point, you will most likely have to interact with the IT department, and the more you understand about computers and coding, the more likely you are able to explain and help IT resolve your issue.</p>\n"},{"title":"Example applications for novice coders by language","thumb":null,"image":null,"content":"<p>Following, are some ideas for programs you and your young coder can write, separated by programming language. You can also imagine creating almost any of these in the other languages, too.</p>\n<p>When in doubt, search the internet for examples of programs you want to build in the languages you want to build them in — luckily there is almost always a near-example that can help guide you.</p>\n<h3>Scratch</h3>\n<p><a href=\"https://scratch.mit.edu/projects/203946438/\" target=\"_blank\" rel=\"noopener\">Question and Answer Game</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252790\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0101.jpg\" alt=\"kidscode-question\" width=\"535\" height=\"255\" /></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252791\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0102.jpg\" alt=\"kidscode-answer\" width=\"535\" height=\"212\" /></p>\n<p><a href=\"https://scratch.mit.edu/projects/177641066/\" target=\"_blank\" rel=\"noopener\">Asteroid Game</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252794\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0105.jpg\" alt=\"kidscode-asteroid\" width=\"535\" height=\"334\" /></p>\n<p><a href=\"https://scratch.mit.edu/projects/195801142/\" target=\"_blank\" rel=\"noopener\">Costume Changer with Sounds</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252795\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0106.jpg\" alt=\"kidscode-costume\" width=\"535\" height=\"157\" /></p>\n<p><a href=\"https://scratch.mit.edu/projects/204630366/\" target=\"_blank\" rel=\"noopener\">Helicopter Flying</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252796\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0107.jpg\" alt=\"kidscode-helicopter\" width=\"535\" height=\"334\" /></p>\n<p><a href=\"https://scratch.mit.edu/projects/167906267/\" target=\"_blank\" rel=\"noopener\">Crypto Code Breaker</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252798\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0109.jpg\" alt=\"kidscode-crypto\" width=\"437\" height=\"400\" /></p>\n<p><a href=\"https://scratch.mit.edu/projects/204630588/\" target=\"_blank\" rel=\"noopener\">Rock-Paper-Scissors</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252799\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0110.jpg\" alt=\"kidscode-rock\" width=\"535\" height=\"334\" /></p>\n<p><a href=\"https://scratch.mit.edu/projects/196405818/\" target=\"_blank\" rel=\"noopener\">Random Art Maker 1</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252802\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0113.jpg\" alt=\"kidscode-random-art\" width=\"535\" height=\"172\" /></p>\n<p><a href=\"https://scratch.mit.edu/projects/204631318/\" target=\"_blank\" rel=\"noopener\">Random Art Maker 2</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252803\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0114.jpg\" alt=\"kidscode-randomart2\" width=\"535\" height=\"172\" /></p>\n<p><a href=\"https://scratch.mit.edu/projects/203948999/\" target=\"_blank\" rel=\"noopener\">Race</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252804\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0115.jpg\" alt=\"kidscode-race\" width=\"535\" height=\"218\" /></p>\n<p><a href=\"https://scratch.mit.edu/projects/204631450/\" target=\"_blank\" rel=\"noopener\">Greeter</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252809\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0120.jpg\" alt=\"kidscode-greeter\" width=\"535\" height=\"238\" /></p>\n<h3>Micro:bit</h3>\n<p><a href=\"https://makecode.microbit.org/_ajrTHD67s6Aw\" target=\"_blank\" rel=\"noopener\">Stock Ticker</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252797\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0108.jpg\" alt=\"kidscode-face\" width=\"535\" height=\"334\" /></p>\n<p><a href=\"https://makecode.microbit.org/_MCLDL3MCqERH\" target=\"_blank\" rel=\"noopener\">Face Maker</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252822\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0333.jpg\" alt=\"kidscode-stock\" width=\"535\" height=\"334\" /></p>\n<h3>MIT App Inventor</h3>\n<p>Mobile App Game</p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252820\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0131.jpg\" alt=\"kidscode-app\" width=\"250\" height=\"400\" /></p>\n<p>Greeter</p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252821\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0132.jpg\" alt=\"kidscode-winston\" width=\"250\" height=\"400\" /></p>\n<h3>JavaScript/HTML/CSS</h3>\n<p><a href=\"https://drive.google.com/open?id=1xv55S2Z1vOhtOsMQJYPj-E_EqhWMQz6F\" target=\"_blank\" rel=\"noopener\">Greeter</a></p>\n<p>Note: Be sure you have a file called “puppy.jpg” in the same folder as your HTML file so that the image actually appears.</p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252817\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0128.jpg\" alt=\"kidscode-first\" width=\"535\" height=\"220\" /></p>\n<p><a href=\"https://drive.google.com/open?id=1ESeQvij2lkYDCdfDUPKgs2MvmMx0SPvs\" target=\"_blank\" rel=\"noopener\">Picture Hider</a></p>\n<p>Note: Be sure you have files called “puppy.jpg” and “kitten.jpeg” in the same folder as your HTML file so that the images actually appears.</p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252818\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0129.jpg\" alt=\"kidscode-picture\" width=\"535\" height=\"244\" /></p>\n<p><a href=\"https://drive.google.com/file/d/1sALjJDsENfuBgIleYA1KAuhVzByAqzuO/view?usp=sharing\" target=\"_blank\" rel=\"noopener\">Webpage</a></p>\n<p>Note: Be sure you have files called “winston.jpg,” “princess.jpg,” and “luke.jpg” in the same folder as your HTML file so that the images actually appear!</p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252819\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0130.jpg\" alt=\"kidscode-welcome\" width=\"535\" height=\"187\" /></p>\n<h3>Python</h3>\n<p><a href=\"https://repl.it/@sguthals/GainsboroAthleticCodewarrior\" target=\"_blank\" rel=\"noopener\">Mad Libs Game</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252792\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0103.jpg\" alt=\"kidscode-mad-lib\" width=\"535\" height=\"198\" /></p>\n<p><a href=\"https://repl.it/@sguthals/BuzzingCommonMenu\" target=\"_blank\" rel=\"noopener\">Number Guesser</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252805\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0116.jpg\" alt=\"kidscode-guesser\" width=\"535\" height=\"193\" /></p>\n<p><a href=\"https://repl.it/@sguthals/NecessaryEnchantingProblems\" target=\"_blank\" rel=\"noopener\">Greeter</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252806\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0117.jpg\" alt=\"kidscode-names\" width=\"535\" height=\"102\" /></p>\n<p><a href=\"https://repl.it/@sguthals/NaiveOrderlyFile\" target=\"_blank\" rel=\"noopener\">Art Maker</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252807\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0118.jpg\" alt=\"kidscode-print\" width=\"535\" height=\"246\" /></p>\n<p><a href=\"https://repl.it/@sguthals/WeeklyGaseousTranslation\" target=\"_blank\" rel=\"noopener\">Fibonacci Printer</a></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252808\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0119.jpg\" alt=\"kidscode-fibonacci\" width=\"535\" height=\"153\" /></p>\n<h3>Java</h3>\n<p><a href=\"https://drive.google.com/drive/folders/1UndZGQMZ4ArHZ0VqeLDgUDFrDUxySnL_?usp=sharing\" target=\"_blank\" rel=\"noopener\">Pizza Divider</a></p>\n<p>The Pizza Divider is a BlueJ program that you can download and run inside of the BlueJ code editor.</p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252800\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0111.jpg\" alt=\"kidscode-pizza\" width=\"535\" height=\"396\" /></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252801\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0112.jpg\" alt=\"kidscode-pizza\" width=\"535\" height=\"382\" /></p>\n<p><a href=\"https://drive.google.com/drive/folders/1NGwSIiZWBpl4iVC21hxAeut-AMS2wGNW?usp=sharing\" target=\"_blank\" rel=\"noopener\">Greeter</a></p>\n<p>The Greeter is a BlueJ program that you can download and run inside of the BlueJ code editor.</p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252810\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0121.jpg\" alt=\"kidscode-bluej\" width=\"535\" height=\"380\" /></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252811\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0122.jpg\" alt=\"kidscode-naming\" width=\"535\" height=\"152\" /></p>\n<p><a href=\"https://drive.google.com/drive/folders/1sdjjk0CBUU68E3aQY-gTab6a8Ip9Aq3p?usp=sharing\" target=\"_blank\" rel=\"noopener\">Number Sorter</a></p>\n<p>The Number Sorter is a BlueJ program that you can download and run inside of the BlueJ code editor.</p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252812\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0123.jpg\" alt=\"kidscode-numbering\" width=\"535\" height=\"348\" /></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252813\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0124.jpg\" alt=\"kidscode-numbers\" width=\"535\" height=\"97\" /></p>\n<p><a href=\"https://drive.google.com/drive/folders/1zIWS-qtYQ9ygc23zLizYY8I7-jisIMIm?usp=sharing\" target=\"_blank\" rel=\"noopener\">Phone Number Finder</a></p>\n<p>The Phone Number Finder is a BlueJ program that you can download and run inside of the BlueJ code editor.</p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252814\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0125.jpg\" alt=\"kidscode-phone\" width=\"481\" height=\"400\" /></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252815\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0126.jpg\" alt=\"kidscode-phoning\" width=\"463\" height=\"400\" /></p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-252816\" src=\"https://www.dummies.com/wp-content/uploads/9781119380672-oa0127.jpg\" alt=\"kidscode-final\" width=\"535\" height=\"121\" /></p>\n"},{"title":"10 ways to invest in a kid's coding future","thumb":null,"image":null,"content":"<p>There are so many ways to invest in your young coders coding future. Though a computer with an internet connection and time and dedication are some of the best ways to invest, this list gives an overview of some of the ways parents we know have dedicated time or money to support their children in their coding adventures.</p>\n<p><strong>Coding workshops: </strong>Coding workshops are often one to two hours long and held at community centers or libraries. They vary in price, but provide novice coders with a sense of community and an easy-to-finish project that they can feel proud of.</p>\n<p><strong>Coding camps: </strong>Camps are typically more expensive but offer full  or half days for at least one week. These are great for school breaks and students often finish the camp, having completed a larger project and having a sense of what to do next, on their own.</p>\n<p><strong>Coding classes (in person):</strong> In person coding classes are typically once per week and can happen during the school year (after school or on weekends). Students are often learning something specific and there is a guided curriculum, but they still gain a sense of community and growth.</p>\n<p><strong>Private tutors: </strong>For your budding coder who really wants to build something specific, a private tutor can help get your young coder ready for a high school or college class, support them outside of a class they are already taking, or help them create a very specific project that they have in mind.</p>\n<p><strong>Coding classes (online):</strong> Online classes are great for asynchronously learning; with the ability to watch videos, pause them, and re-watch them, students are able to learn a variety of things without the hassle of leaving their home. Sometimes you can still get a sense of community, depending on the platform.</p>\n<p><strong><a href=\"https://www.lego.com/en-us/themes/mindstorms\" target=\"_blank\" rel=\"noopener\">Lego Mindstorms</a></strong>: Lego Mindstorms is an entire kit that integrates coding and robot building. A young coder can work on this on their own, or even create a team of people and recruit an adult to help lead them through the curriculum provided by Lego in its Education set.</p>\n<p><strong><a href=\"https://kano.tech/us/original\" target=\"_blank\" rel=\"noopener\">Kano</a>:</strong> Kano is an all-in-one, lightweight, DIY computer. Using a micro-controller as the computer (Raspberry Pi), and simple mouse, keyboard, and speakers, young coders can quickly wire up their computer and play Minecraft, jump on the web, or start coding.</p>\n<p><strong>Codable toys: </strong>A great gift for the young coder is codable toys. With edutainment like <a href=\"http://littlebits.cc/\" target=\"_blank\" rel=\"noopener\">Little Bits</a>, or the <a href=\"https://www.makewonder.com/\" target=\"_blank\" rel=\"noopener\">Dash and Dot Robots</a>, coding can be for an immediate purpose—changing and interacting with the world around you.</p>\n<p><strong>Computers and devices</strong>: A big question is always what kind of device to get for a young coder. Often hand-me-down computers (OSX or Windows) can be useful, as long as they can run the programs your young coder is looking to run. If you’re primarily working on the web, a Chromebook can be a great option (especially for Scratch coders). And every day more apps are coming out, making mobile devices more accessible to young coders too.</p>\n<p><strong>Software: </strong>Most software that a young coder will want to use is free; however, sometimes it can make sense to invest in software to support the entire development process. Software like Photoshop or Illustrator can invite more artistic folks into the coding world, integrating their creations into software like Blender or Maya to create games in game engines like Unity.</p>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Explore","lifeExpectancy":"One year","lifeExpectancySetFrom":"2022-04-27T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":252828},{"headers":{"creationTime":"2016-03-27T16:47:36+00:00","modifiedTime":"2022-01-19T21:36:32+00:00","timestamp":"2022-09-14T18:19:02+00:00"},"data":{"breadcrumbs":[{"name":"Technology","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33512"},"slug":"technology","categoryId":33512},{"name":"Programming & Web Design","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33592"},"slug":"programming-web-design","categoryId":33592},{"name":"Coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"},"slug":"coding","categoryId":33599}],"title":"Coding For Dummies Cheat Sheet","strippedTitle":"coding for dummies cheat sheet","slug":"coding-for-dummies-cheat-sheet","canonicalUrl":"","seo":{"metaDescription":"Keep this handy Cheat Sheet nearby as you're learning to code. It includes coding vocabulary, common mistakes, and helpful resources.","noIndex":0,"noFollow":0},"content":"Coding is equal parts vocabulary, logic, and syntax. Coding may at first seem intimidating, but with practice, though, it’s easy to get comfortable with its terminology, concepts, and structure. Understanding coding is not unlike learning a new language: Use it often enough and you’ll find yourself able to speak, think, and write in code. Still, it’s natural for beginners to have questions.\r\n\r\nThere are many coding resources available to you, both on- and off-line. Ask around and you’ll find you’re not alone — many other people are learning. After all, coding is a never-ending education. Master one facet or another and a new one opens in front of you.","description":"Coding is equal parts vocabulary, logic, and syntax. Coding may at first seem intimidating, but with practice, though, it’s easy to get comfortable with its terminology, concepts, and structure. Understanding coding is not unlike learning a new language: Use it often enough and you’ll find yourself able to speak, think, and write in code. Still, it’s natural for beginners to have questions.\r\n\r\nThere are many coding resources available to you, both on- and off-line. Ask around and you’ll find you’re not alone — many other people are learning. After all, coding is a never-ending education. Master one facet or another and a new one opens in front of you.","blurb":"","authors":[{"authorId":9097,"name":"Nikhil Abraham","slug":"nikhil-abraham","description":" <p><b>Nikhil Abraham</b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9097"}}],"primaryCategoryTaxonomy":{"categoryId":33599,"title":"Coding","slug":"coding","_links":{"self":"https://dummies-api.dummies.com/v2/categories/33599"}},"secondaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"tertiaryCategoryTaxonomy":{"categoryId":0,"title":null,"slug":null,"_links":null},"trendingArticles":[{"articleId":192609,"title":"How to Pray the Rosary: A Comprehensive Guide","slug":"how-to-pray-the-rosary","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/192609"}},{"articleId":208741,"title":"Kabbalah For Dummies Cheat Sheet","slug":"kabbalah-for-dummies-cheat-sheet","categoryList":["body-mind-spirit","religion-spirituality","kabbalah"],"_links":{"self":"/articles/208741"}},{"articleId":230957,"title":"Nikon D3400 For Dummies Cheat Sheet","slug":"nikon-d3400-dummies-cheat-sheet","categoryList":["home-auto-hobbies","photography"],"_links":{"self":"/articles/230957"}},{"articleId":235851,"title":"Praying the Rosary and Meditating on the Mysteries","slug":"praying-rosary-meditating-mysteries","categoryList":["body-mind-spirit","religion-spirituality","christianity","catholicism"],"_links":{"self":"/articles/235851"}},{"articleId":284787,"title":"What Your Society Says About You","slug":"what-your-society-says-about-you","categoryList":["academics-the-arts","humanities"],"_links":{"self":"/articles/284787"}}],"inThisArticle":[],"relatedArticles":{"fromBook":[{"articleId":203276,"title":"How to Hack Your Favorite News Website","slug":"how-to-hack-your-favorite-news-website","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/203276"}},{"articleId":145695,"title":"Common Coding Mistakes","slug":"common-coding-mistakes","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145695"}},{"articleId":145687,"title":"Coding References and Resources","slug":"coding-references-and-resources","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145687"}},{"articleId":145681,"title":"Coding Vocabulary","slug":"coding-vocabulary","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145681"}},{"articleId":145680,"title":"Hosting Your Web Application","slug":"hosting-your-web-application","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145680"}}],"fromCategory":[{"articleId":253846,"title":"Helping Kids with Coding: Distributing Mobile Apps","slug":"helping-kids-coding-distributing-mobile-apps","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253846"}},{"articleId":253837,"title":"Using the MIT App Inventor to Teach Kids Coding","slug":"using-mit-app-inventor-teach-kids-coding","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253837"}},{"articleId":253831,"title":"Teaching Kids Strategies for Debugging Code","slug":"teaching-kids-strategies-debugging-code","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253831"}},{"articleId":253826,"title":"Helping Kids Find Common Coding Semantic Errors","slug":"helping-kids-find-common-coding-semantic-errors","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253826"}},{"articleId":253818,"title":"Teaching Kids to Code Subprograms with Parameters","slug":"teaching-kids-code-subprograms-parameters","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/253818"}}]},"hasRelatedBookFromSearch":false,"relatedBook":{"bookId":281667,"slug":"coding-for-dummies","isbn":"9781119293323","categoryList":["technology","programming-web-design","coding"],"amazon":{"default":"https://www.amazon.com/gp/product/1119293324/ref=as_li_tl?ie=UTF8&tag=wiley01-20","ca":"https://www.amazon.ca/gp/product/1119293324/ref=as_li_tl?ie=UTF8&tag=wiley01-20","indigo_ca":"http://www.tkqlhce.com/click-9208661-13710633?url=https://www.chapters.indigo.ca/en-ca/books/product/1119293324-item.html&cjsku=978111945484","gb":"https://www.amazon.co.uk/gp/product/1119293324/ref=as_li_tl?ie=UTF8&tag=wiley01-20","de":"https://www.amazon.de/gp/product/1119293324/ref=as_li_tl?ie=UTF8&tag=wiley01-20"},"image":{"src":"https://www.dummies.com/wp-content/uploads/coding-for-dummies-cover-9781119293323-205x255.jpg","width":205,"height":255},"title":"Coding For Dummies","testBankPinActivationLink":"","bookOutOfPrint":true,"authorsInfo":"<p><p><b><b data-author-id=\"9097\">Nikhil Abraham</b></b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i></p>","authors":[{"authorId":9097,"name":"Nikhil Abraham","slug":"nikhil-abraham","description":" <p><b>Nikhil Abraham</b> is the CFO of Udacity, an education company that teaches technology skills that help launch or advance a career. Prior to joining Udacity, Nik worked at Codecademy where he taught beginning coders across a variety of professions. He is also author of <i>Coding For Dummies</i> and <i>Getting a Coding Job For Dummies.</i> ","hasArticle":false,"_links":{"self":"https://dummies-api.dummies.com/v2/authors/9097"}}],"_links":{"self":"https://dummies-api.dummies.com/v2/books/"}},"collections":[],"articleAds":{"footerAd":"<div class=\"du-ad-region row\" id=\"article_page_adhesion_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_adhesion_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119293323&quot;]}]\" id=\"du-slot-63221b168ec01\"></div></div>","rightAd":"<div class=\"du-ad-region row\" id=\"article_page_right_ad\"><div class=\"du-ad-unit col-md-12\" data-slot-id=\"article_page_right_ad\" data-refreshed=\"false\" \r\n data-target = \"[{&quot;key&quot;:&quot;cat&quot;,&quot;values&quot;:[&quot;technology&quot;,&quot;programming-web-design&quot;,&quot;coding&quot;]},{&quot;key&quot;:&quot;isbn&quot;,&quot;values&quot;:[&quot;9781119293323&quot;]}]\" id=\"du-slot-63221b168f521\"></div></div>"},"articleType":{"articleType":"Cheat Sheet","articleList":[{"articleId":145681,"title":"Coding Vocabulary","slug":"coding-vocabulary","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145681"}},{"articleId":145687,"title":"Coding References and Resources","slug":"coding-references-and-resources","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145687"}},{"articleId":145695,"title":"Common Coding Mistakes","slug":"common-coding-mistakes","categoryList":["technology","programming-web-design","coding"],"_links":{"self":"https://dummies-api.dummies.com/v2/articles/145695"}}],"content":[{"title":"Basic coding vocabulary","thumb":null,"image":null,"content":"<p>Coding has an extensive vocabulary that to laymen can seem like impenetrable techno-babble. Whether you&#8217;re reading coding-related article online or speaking to a developer at work, you may hear words that you have not heard before or that have a different meaning in a coding context. Here are some common vocabulary words to know:</p>\n<ul>\n<li><strong>General web development terms:</strong>\n<ul>\n<li><em>Server:</em> A computer that hosts website code, and that &#8220;serves&#8221; website code when requested by a &#8220;client&#8221; computer. Servers usually sit in large warehouses with thousands of other servers, and are similar in size and power to your home computer.</li>\n<li><em>Client:</em> A device used to access a website, including desktop or laptop computers, tablets, or mobile phones.</li>\n<li><em>Designer:</em> An artistic professional who decides how a website will look and feel, along with the ways users will interact with the website — such as, for example, clicking, swiping, scrolling, and so on.</li>\n<li><em>Wireframe:</em> An illustration created by designers that show in detail a website&#8217;s layouts, images, and color schemes.</li>\n<li><em>Developer:</em> An engineering professional who writes code to turn wireframes into useable websites. Based on the type of code written, developers are referred to as front-end, back-end, or full stack.</li>\n<li><em>Front-end:</em> Everything you can see and click in a browser. Front-end developers write code in front-end languages like HTML, CSS, and JavaScript to create the website appearance.</li>\n<li><em>Back-end:</em> Everything that happens behind-the-scenes to make the front-end perform as intended. Back-end developers write code in back-end languages like Ruby or Python to create functionality like logging in users, storing user preferences, and retrieving data like comments on a photo.</li>\n</ul>\n</li>\n<li><strong>Terms related to front-end languages:</strong>\n<ul>\n<li><em>HTML (Hypertext Markup Language): </em>A language used to place text, images, and other content on a webpage.</li>\n<li><em>HTML tag:</em> HTML instructions, usually appearing in pairs. Browsers apply special effects to text between an opening <code>&lt;element&amp;gt</code>; and closing <code>&lt;/element&amp;gt</code>; HTML tag. For instance, the <code>&lt;h1&amp;gt</code>; tag renders in a browser as a large bolded headline and can be used like this: <code>&lt;h1&gt;Dewey beats Truman&lt;/h1&gt;</code>.</li>\n<li><em>HTML attribute:</em> Attributes or parameters for HTML tags that modify the tag&#8217;s behavior. Attributes are always placed in the opening HTML tag. For example, <code>href</code> is the attribute in the following anchor tag (used to create hyperlinks):<br />\n<code>&lt;a href=\"http://www.google.com\"&gt;Search engine&lt;/a&gt;</code></li>\n<li><em>CSS (</em>Cascading Style Sheets): Code that modifies HTML on webpages and that controls the appearance of content by changing text size, image size, and other attributes.</li>\n<li><em>JavaScript:</em> Code that adds interactivity and animation to webpages. JavaScript also detects browser events such as mouse clicks, validates user input such as text entries, and retrieves data from external websites.</li>\n<li><em>Variable:</em> A storage location that&#8217;s given a name and that contains numerical data or text (referred to as <em>strings</em>) for later use.</li>\n<li><em>If statement (conditional):</em> A code instruction that tests a condition that usually includes variables, such as <code>x &lt; 18</code>, and executes code you write when the condition is true.</li>\n<li><em>Function:</em> A name given to a group of programming statements for easy reference and use.</li>\n</ul>\n</li>\n<li><strong>Terms related to back-end languages:</strong>\n<ul>\n<li><em>Ruby:</em> An open-source programming language best known for use in web programming.</li>\n<li><em>Rails:</em> A framework designed to make creating webpages with Ruby easy.</li>\n<li><em>Python:</em> An open-source programming language used on the web, in scientific applications, and for data analysis.</li>\n</ul>\n</li>\n</ul>\n"},{"title":"Coding references and resources","thumb":null,"image":null,"content":"<p>HTML, CSS, and JavaScript are the most common front-end coding languages. The following table lists some online resources, references, and tutorials to help you continue practicing all three languages.</p>\n<ul class=\"level-one\">\n<li>\n<p class=\"first-para\"><a href=\"http://www.w3schools.com\" target=\"_blank\" rel=\"noopener\">W3Schools</a>: Reference guides for HTML, CSS, and JavaScript</p>\n</li>\n<li>\n<p class=\"first-para\"><a href=\"https://overapi.com/html\" target=\"_blank\" rel=\"noopener\">HTML cheat sheet</a>: Most commonly used HTML commands</p>\n</li>\n<li>\n<p class=\"first-para\"><a href=\"https://overapi.com/css\" target=\"_blank\" rel=\"noopener\">CSS cheat sheet</a>: Most commonly used CSS commands</p>\n</li>\n<li>\n<p class=\"first-para\"><a href=\"http://www.html5rocks.com/en/tutorials/\" target=\"_blank\" rel=\"noopener\">HTML tutorials</a>: Tutorials and articles for the web maintained by Google</p>\n</li>\n<li>\n<p class=\"first-para\"><a href=\"http://css-tricks.com/\" target=\"_blank\" rel=\"noopener\">CSS tutorials</a>: Tutorials and articles for web programming, with a focus on CSS</p>\n</li>\n<li>\n<p class=\"first-para\"><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript\" target=\"_blank\" rel=\"noopener\">JavaScript tutorials</a>: Tutorials and reference guides for JavaScript</p>\n</li>\n</ul>\n"},{"title":"Common coding mistakes","thumb":null,"image":null,"content":"<p>Code not working? Here are some common mistakes that can trip up even the most experienced coder. If your code won’t run, try running down this checklist to see if you have any of these errors:</p>\n<ul class=\"level-one\">\n<li>\n<p class=\"first-para\">Not having a closing HTML tag <span class=\"code\">&lt;/element&gt;</span> after every opening HTML tag <span class=\"code\">&lt;element&gt;</span>.</p>\n</li>\n<li>\n<p class=\"first-para\">Missing brackets <span class=\"code\">&lt;</span> or <span class=\"code\">&gt;</span> in HTML.</p>\n</li>\n<li>\n<p class=\"first-para\">Missing curly braces, colons, or semicolons in CSS, as in the following:</p>\n<pre class=\"code\">h1 {\r\n color: blue;\r\n}</pre>\n</li>\n<li>\n<p class=\"first-para\">Missing curly braces in JavaScript, especially for <span class=\"code\">if</span> statements.</p>\n</li>\n<li>\n<p class=\"first-para\">Forgetting to have a pair of closing pair of quotes for every opening pair of quotes.</p>\n</li>\n<li>\n<p class=\"first-para\">Having more than one opening and closing <span class=\"code\">&lt;html&gt;</span> tag, <span class=\"code\">&lt;head&gt;</span> tag, or <span class=\"code\">&lt;body&gt;</span> tag.</p>\n</li>\n<li>\n<p class=\"first-para\">Putting HTML code in the CSS file or section, and putting CSS code in the HTML section. If the code deals with style and appearance, it’s likely CSS.</p>\n</li>\n<li>\n<p class=\"first-para\">Not linking to your CSS file using the <span class=\"code\">&lt;script&gt;</span> tag, and so your CSS effects don’t render in the browser.</p>\n</li>\n<li>\n<p class=\"first-para\">Misspelling a part of a command, as in <span class=\"code\">&lt;img scr=&#8221;logo.jpg&#8221;&gt;</span>, which is incorrect because the attribute is spelled <span class=\"code\">src</span> not <span class=\"code\">scr</span>.</p>\n</li>\n<li>\n<p class=\"first-para\">Including attributes outside the opening HTML tag. For example, <span class=\"code\">&lt;img&gt; src=&#8221;logo.jpg&#8221;</span> is incorrect because the attribute is outside the opening image tag.</p>\n</li>\n</ul>\n"}],"videoInfo":{"videoId":null,"name":null,"accountId":null,"playerId":null,"thumbnailUrl":null,"description":null,"uploadDate":null}},"sponsorship":{"sponsorshipPage":false,"backgroundImage":{"src":null,"width":0,"height":0},"brandingLine":"","brandingLink":"","brandingLogo":{"src":null,"width":0,"height":0},"sponsorAd":"","sponsorEbookTitle":"","sponsorEbookLink":"","sponsorEbookImage":{"src":null,"width":0,"height":0}},"primaryLearningPath":"Advance","lifeExpectancy":"Six months","lifeExpectancySetFrom":"2022-01-19T00:00:00+00:00","dummiesForKids":"no","sponsoredContent":"no","adInfo":"","adPairKey":[]},"status":"publish","visibility":"public","articleId":207582}],"_links":{"self":{"self":"https://dummies-api.dummies.com/v2/categories/33599/categoryArticles?sortField=time&sortOrder=1&size=10&offset=0"},"next":{"self":"https://dummies-api.dummies.com/v2/categories/33599/categoryArticles?sortField=time&sortOrder=1&size=10&offset=10"},"last":{"self":"https://dummies-api.dummies.com/v2/categories/33599/categoryArticles?sortField=time&sortOrder=1&size=10&offset=96"}}},"objectTitle":"","status":"success","pageType":"article-category","objectId":"33599","page":1,"sortField":"time","sortOrder":1,"categoriesIds":[],"articleTypes":[],"filterData":{"categoriesFilter":[{"itemId":0,"itemName":"All Categories","count":106}],"articleTypeFilter":[{"articleType":"All Types","count":106},{"articleType":"Articles","count":101},{"articleType":"Cheat Sheet","count":4},{"articleType":"Step by Step","count":1}]},"filterDataLoadedStatus":"success","pageSize":10},"adsState":{"pageScripts":{"headers":{"timestamp":"2025-04-17T15:50:01+00:00"},"adsId":0,"data":{"scripts":[{"pages":["all"],"location":"header","script":"<!--Optimizely Script-->\r\n<script src=\"https://cdn.optimizely.com/js/10563184655.js\"></script>","enabled":false},{"pages":["all"],"location":"header","script":"<!-- comScore Tag -->\r\n<script>var _comscore = _comscore || [];_comscore.push({ c1: \"2\", c2: \"15097263\" });(function() {var s = document.createElement(\"script\"), el = document.getElementsByTagName(\"script\")[0]; s.async = true;s.src = (document.location.protocol == \"https:\" ? \"https://sb\" : \"http://b\") + \".scorecardresearch.com/beacon.js\";el.parentNode.insertBefore(s, el);})();</script><noscript><img src=\"https://sb.scorecardresearch.com/p?c1=2&c2=15097263&cv=2.0&cj=1\" /></noscript>\r\n<!-- / comScore Tag -->","enabled":true},{"pages":["all"],"location":"footer","script":"<!--BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET-->\r\n<script type='text/javascript'>\r\n(function(){var g=function(e,h,f,g){\r\nthis.get=function(a){for(var a=a+\"=\",c=document.cookie.split(\";\"),b=0,e=c.length;b<e;b++){for(var d=c[b];\" \"==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null};\r\nthis.set=function(a,c){var b=\"\",b=new Date;b.setTime(b.getTime()+6048E5);b=\"; expires=\"+b.toGMTString();document.cookie=a+\"=\"+c+b+\"; path=/; \"};\r\nthis.check=function(){var a=this.get(f);if(a)a=a.split(\":\");else if(100!=e)\"v\"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(\":\"));else return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case \"v\":return!1;case \"r\":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(\":\")),!c}return!0};\r\nthis.go=function(){if(this.check()){var a=document.createElement(\"script\");a.type=\"text/javascript\";a.src=g;document.body&&document.body.appendChild(a)}};\r\nthis.start=function(){var t=this;\"complete\"!==document.readyState?window.addEventListener?window.addEventListener(\"load\",function(){t.go()},!1):window.attachEvent&&window.attachEvent(\"onload\",function(){t.go()}):t.go()};};\r\ntry{(new g(100,\"r\",\"QSI_S_ZN_5o5yqpvMVjgDOuN\",\"https://zn5o5yqpvmvjgdoun-wiley.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_5o5yqpvMVjgDOuN\")).start()}catch(i){}})();\r\n</script><div id='ZN_5o5yqpvMVjgDOuN'><!--DO NOT REMOVE-CONTENTS PLACED HERE--></div>\r\n<!--END WEBSITE FEEDBACK SNIPPET-->","enabled":false},{"pages":["all"],"location":"header","script":"<!-- Hotjar Tracking Code for http://www.dummies.com -->\r\n<script>\r\n (function(h,o,t,j,a,r){\r\n h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\r\n h._hjSettings={hjid:257151,hjsv:6};\r\n a=o.getElementsByTagName('head')[0];\r\n r=o.createElement('script');r.async=1;\r\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\r\n a.appendChild(r);\r\n })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');\r\n</script>","enabled":false},{"pages":["article"],"location":"header","script":"<!-- //Connect Container: dummies --> <script src=\"//get.s-onetag.com/bffe21a1-6bb8-4928-9449-7beadb468dae/tag.min.js\" async defer></script>","enabled":true},{"pages":["homepage"],"location":"header","script":"<meta name=\"facebook-domain-verification\" content=\"irk8y0irxf718trg3uwwuexg6xpva0\" />","enabled":true},{"pages":["homepage","article","category","search"],"location":"footer","script":"<!-- Facebook Pixel Code -->\r\n<noscript>\r\n<img height=\"1\" width=\"1\" src=\"https://www.facebook.com/tr?id=256338321977984&ev=PageView&noscript=1\"/>\r\n</noscript>\r\n<!-- End Facebook Pixel Code -->","enabled":true}]}},"pageScriptsLoadedStatus":"success"},"navigationState":{"navigationCollections":[{"collectionId":287568,"title":"BYOB (Be Your Own Boss)","hasSubCategories":false,"url":"/collection/for-the-entry-level-entrepreneur-287568"},{"collectionId":293237,"title":"Be a Rad Dad","hasSubCategories":false,"url":"/collection/be-the-best-dad-293237"},{"collectionId":295890,"title":"Career Shifting","hasSubCategories":false,"url":"/collection/career-shifting-295890"},{"collectionId":294090,"title":"Contemplating the Cosmos","hasSubCategories":false,"url":"/collection/theres-something-about-space-294090"},{"collectionId":287563,"title":"For Those Seeking Peace of Mind","hasSubCategories":false,"url":"/collection/for-those-seeking-peace-of-mind-287563"},{"collectionId":287570,"title":"For the Aspiring Aficionado","hasSubCategories":false,"url":"/collection/for-the-bougielicious-287570"},{"collectionId":291903,"title":"For the Budding Cannabis Enthusiast","hasSubCategories":false,"url":"/collection/for-the-budding-cannabis-enthusiast-291903"},{"collectionId":299891,"title":"For the College Bound","hasSubCategories":false,"url":"/collection/for-the-college-bound-299891"},{"collectionId":291934,"title":"For the Exam-Season Crammer","hasSubCategories":false,"url":"/collection/for-the-exam-season-crammer-291934"},{"collectionId":301547,"title":"For the Game Day Prepper","hasSubCategories":false,"url":"/collection/big-game-day-prep-made-easy-301547"}],"navigationCollectionsLoadedStatus":"success","navigationCategories":{"books":{"0":{"data":[{"categoryId":33512,"title":"Technology","hasSubCategories":true,"url":"/category/books/technology-33512"},{"categoryId":33662,"title":"Academics & The Arts","hasSubCategories":true,"url":"/category/books/academics-the-arts-33662"},{"categoryId":33809,"title":"Home, Auto, & Hobbies","hasSubCategories":true,"url":"/category/books/home-auto-hobbies-33809"},{"categoryId":34038,"title":"Body, Mind, & Spirit","hasSubCategories":true,"url":"/category/books/body-mind-spirit-34038"},{"categoryId":34224,"title":"Business, Careers, & Money","hasSubCategories":true,"url":"/category/books/business-careers-money-34224"}],"breadcrumbs":[],"categoryTitle":"Level 0 Category","mainCategoryUrl":"/category/books/level-0-category-0"}},"articles":{"0":{"data":[{"categoryId":33512,"title":"Technology","hasSubCategories":true,"url":"/category/articles/technology-33512"},{"categoryId":33662,"title":"Academics & The Arts","hasSubCategories":true,"url":"/category/articles/academics-the-arts-33662"},{"categoryId":33809,"title":"Home, Auto, & Hobbies","hasSubCategories":true,"url":"/category/articles/home-auto-hobbies-33809"},{"categoryId":34038,"title":"Body, Mind, & Spirit","hasSubCategories":true,"url":"/category/articles/body-mind-spirit-34038"},{"categoryId":34224,"title":"Business, Careers, & Money","hasSubCategories":true,"url":"/category/articles/business-careers-money-34224"}],"breadcrumbs":[],"categoryTitle":"Level 0 Category","mainCategoryUrl":"/category/articles/level-0-category-0"}}},"navigationCategoriesLoadedStatus":"success"},"searchState":{"searchList":[],"searchStatus":"initial","relatedArticlesList":[],"relatedArticlesStatus":"initial"},"routeState":{"name":"ArticleCategory","path":"/category/articles/coding-33599/","hash":"","query":{},"params":{"category":"coding-33599"},"fullPath":"/category/articles/coding-33599/","meta":{"routeType":"category","breadcrumbInfo":{"suffix":"Articles","baseRoute":"/category/articles"},"prerenderWithAsyncData":true},"from":{"name":null,"path":"/","hash":"","query":{},"params":{},"fullPath":"/","meta":{}}},"profileState":{"auth":{},"userOptions":{},"status":"success"}}
Logo
  • Articles Open Article Categories
  • Books Open Book Categories
  • Collections Open Collections list
  • Custom Solutions

Article Categories

Book Categories

Collections

Explore all collections
BYOB (Be Your Own Boss)
Be a Rad Dad
Career Shifting
Contemplating the Cosmos
For Those Seeking Peace of Mind
For the Aspiring Aficionado
For the Budding Cannabis Enthusiast
For the College Bound
For the Exam-Season Crammer
For the Game Day Prepper
Log In
  • Home
  • Technology Articles
  • Programming & Web Design Articles
  • Coding Articles

Coding Articles

Basic coding terminology, planning your coding career, programming for web, freelancing tips, example coding projects, and more.

Articles From Coding

page 1
page 2
page 3
page 4
page 5
page 6
page 7
page 8
page 9
page 10
page 11

Filter Results

106 results
106 results
Coding Tips for Debugging the Code in Your Mobile App

Article / Updated 10-28-2024

When coding your app, you will almost inevitably write code that does not behave as you intended. HTML and CSS are relatively forgiving, with the browser even going so far as to insert tags so the page renders properly. However, JavaScript isn’t so forgiving, and the smallest error, such as a missing quotation mark, can cause the page to not render properly. Errors in web applications can consist of syntax errors, logic errors, and display errors. Often, the most likely culprit causing errors in your code will be syntax related. Here are some common errors to check when debugging your code: Opening and closing tags: In HTML, every opening tag has a closing tag, and you always close the most recently opened tag first. Right and left angle brackets: In HTML, every left angle bracket < has a right angle bracket >. Right and left curly brackets: In CSS and JavaScript, every left curly bracket must have a right curly bracket. It can be easy to accidentally delete it or forget to include it. Indentation: Indent your code and use plenty of tabs and returns to make your code as readable as possible. Proper indentation will make it easier for you to identify missing tags, angle brackets, and curly brackets. Misspelled statements: Tags in any language can be misspelled, or spelled correctly but not part of the specification. For example, in HTML, <img scr="image.jpg"> is incorrect because scr should really be src for the image to render properly. Similarly, in CSS font-color looks like it is spelled correctly but no such property exists. The correct property to set font color is just color. Keep these errors in mind when debugging — they may not solve all your problems, but they should solve many of them. If you have tried the steps above and still cannot debug your code, tweet @nikhilgabraham and include the #codingFD hashtag and your codepen.io URL in your tweet.

View Article
Coding Coding For Kids For Dummies Cheat Sheet

Cheat Sheet / Updated 11-14-2022

Coding, or computer programming, is your way of communicating with technology. It’s the new literacy you need to master to be successful in the coming decades. Like any form of communication, coding takes place through language. Just as there are many human languages (English, French, Mandarin, Spanish, and so on), there are many coding languages! Two examples of coding languages are Scratch and JavaScript. Scratch is perfect as a coding language for kids because it’s easy and fun to use, Scratch coding for kids allows you to build programs by snapping together commands in the same way you assemble a puzzle. JavaScript is a step up in difficulty because it’s an authentic programming language, used by real coders. JavaScript powers many technologies, and you can use it to make both apps for your phone and control code for operating electronics gadgets. You can ease into JavaScript by using blocks to build programs (just like Scratch) and then switching to text-based coding when you’re ready. Here, discover tips for creating programs in Scratch, coding JavaScript apps in App Lab, and writing JavaScript code in MakeCode to operate the micro:bit electronics board.

View Cheat Sheet
Coding Tips for Naming Your HTML Elements to Style Specific Elements with CSS

Article / Updated 08-16-2022

One way of styling specific elements in CSS is to name your HTML elements. You name your code by using either the id or class attribute, and then style your code by referring to the id or class selector. Naming your code using the id attribute Use the id attribute to style one specific element on your web page. The id attribute can name any HTML element, and is always placed in the opening HTML tag. Additionally, each element can have only one id attribute value, and the attribute value must appear only once within the HTML file. After you define the attribute in the HTML file, you refer to the HTML element in your CSS by writing a hashtag (#) followed by the attribute value. Using the id attribute, the following code styles the Modern Seinfeld Twitter link the color red with a yellow background: HTML: <p><a href="http://twitter.com/SeinfeldToday" id="jerry">Modern Seinfeld</a></p> CSS: #jerry { color: red; background-color: yellow; } Naming your code using the class attribute Use the class attribute to style multiple elements on your web page. The class attribute can name any HTML element and is always placed in the opening HTML tag. The attribute value need not be unique within the HTML file. After you define the attribute in the HTML file, you refer to the HTML element by writing a period (.) followed by the attribute value. With the class attribute, the following code styles all the Parody Tech Twitter account links the color red with no underline: HTML: <ul> <li> <a href="<u>http://twitter.com/BoredElonMusk</u>" class="tech">Bored Elon Musk</a> </li> <li> <a href="<span style="text-decoration: underline;">http://twitter.com/VinodColeslaw</span>" class="tech">Vinod Coleslaw</a> </li> <li> <a href="<span style="text-decoration: underline;">http://twitter.com/Horse_ebooks</span>" class="tech">Horse ebooks</a> </li> </ul> CSS: .tech { color: red; text-decoration: none; } Proactively use a search engine, such as Google, to search for additional CSS effects. For example, if you want to increase the spacing between each list item, open your browser and search for list item line spacing css. Links appearing in the top ten results should include: W3Schools: A beginner tutorial site Stack Overflow: A discussion board for experienced developers Mozilla: A reference guide initially created by the foundation that maintains the Firefox browser and now maintained by a community of developers Each of these sites is a good place to start; be sure to look for answers that include example code.

View Article
Coding What Does Python Do?

Article / Updated 07-27-2022

Python is a general-purpose programming language typically used for web development. This may sound similar to Ruby, and really both languages are more similar than they are different. Python, like Ruby, allows for storing data after the user has navigated away from the page or closed the browser, unlike HTML, CSS, and JavaScript. Using Python commands you can create, update, store, and retrieve this data in a database. For example, imagine you wanted to create a local search and ratings site like Yelp.com. The reviews users write are stored in a central database. Any review author can exit the browser, turn off the computer, and come back to the website later to find their reviews. Additionally, when others search for venues, this same central database is queried, and the same review is displayed. Storing data in a database is a common task for Python developers, and existing Python libraries include pre-built code to easily create and query databases. SQLite is one free lightweight database commonly used by Python programmers to store data. Many highly trafficked websites, such as YouTube, are created using Python. Other websites currently using Python include: Quora for its community question and answer site. Spotify for internal data analysis. Dropbox for its desktop client software. Reddit for generating crowd-sourced news. Industrial Light & Magic and Disney Animation for creating film special effects. From websites to software to special effects, Python is an extremely versatile language, powerful enough to support a range of applications. In addition, to help spread Python code, Python programmers create libraries, which are stand-alone pre-written code that do certain tasks, and make them publicly available for others to use and improve. For example, a library called Scrapy performs web scaping, while another library called SciPy performs math functions used by scientists and mathematicians. The Python community maintains thousands of libraries like these, and most are free and open-source software. You can generally confirm the front-end programming language used by any major website with BuiltWith. After entering the website address in the search bar, look under the Frameworks section for Python. Note that websites may use Python for backend services not visible to BuiltWith.

View Article
Coding Dealing with Dates in Your Data

Article / Updated 07-27-2022

Dates can present problems in data. For one thing, dates are stored as numeric values. However, the precise value of the number depends on the representation for the particular platform and could even depend on the users’ preferences. For example, Excel users can choose to start dates in 1900 or 1904. The numeric encoding for each is different, so the same date can have two numeric values depending on the starting date. In addition to problems of representation, you also need to consider how to work with time values. Creating a time value format that represents a value the user can understand is hard. For example, you might need to use Greenwich Mean Time (GMT) in some situations but a local time zone in others. Transforming between various times is also problematic. Formatting date and time values Obtaining the correct date and time representation can make performing analysis a lot easier. For example, you often have to change the representation to obtain a correct sorting of values. Python provides two common methods of formatting date and time. The first technique is to call str(), which simply turns a datetime value into a string without any formatting. The strftime() function requires more work because you must define how you want the datetime value to appear after conversion. When using strftime(), you must provide a string containing special directives that define the formatting. Now that you have some idea of how time and date conversions work, it’s time to see an example. The following example creates a datetime object and then converts it into a string using two different approaches: import datetime as dt now = dt.datetime.now() print str(now) print now.strftime('%a, %d %B %Y') In this case, you can see that using str() is the easiest approach. However, as shown by the following output, it may not provide the output you need. Using strftime() is infinitely more flexible. 2017-01-16 17:26:45.986000 Mon, 16 January 2017 Using the right time transformation Time zones and differences in local time can cause all sorts of problems when performing analysis. For that matter, some types of calculations simply require a time shift in order to get the right results. No matter what the reason, you may need to transform one time into another time at some point. The following examples show some techniques you can employ to perform the task. import datetime as dt now = dt.datetime.now() timevalue = now + dt.timedelta(hours=2) print now.strftime('%H:%M:%S') print timevalue.strftime('%H:%M:%S') print timevalue - now The timedelta() function makes the time transformation straightforward. You can use any of these parameter names with timedelta() to change a time and date value: days seconds microseconds milliseconds minutes hours weeks You can also manipulate time by performing addition or subtraction on time values. You can even subtract two time values to determine the difference between them. Here’s the output from this example: 17:44:40 19:44:40 2:00:00 Notice that now is the local time, timevalue is two time zones different from this one, and there is a two-hour difference between the two times. You can perform all sorts of transformations using these techniques to ensure that your analysis always shows precisely the time-oriented values you need.

View Article
Coding Getting Ready to Code? Do These Things First

Article / Updated 07-27-2022

There are many tools available to help coders do their best work. Before you start coding, do a few housekeeping items. First, ensure that you are doing all of the following: Using the Chrome browser: Download and install the latest version of Chrome, as it offers the most support for the latest HTML standards. Working on a desktop or laptop computer: Although it is possible to code on a mobile device, it can be more difficult and all layouts may not appear properly. Remembering to indent your code to make it easier to read: One main source of mistakes is forgetting to close a tag or curly brace, and indenting your code will make spotting these errors easier. Remembering to enable location services on your browser and computer: To enable location services within Chrome, click on the settings icon (three horizontal lines on the top right of the browser), and click on Settings. Then click on the Settings tab, and at the bottom of the screen click on “Show Advanced settings … ” Under the Privacy menu heading, click on “Content settings … ” and scroll down to Location and make sure that “Ask when a site tries to track your physical location” is selected. To enable location services on a PC no additional setting is necessary, but on a Mac using OS X Mountain Lion or later, from the Apple menu choose System Preferences, then click on the Security & Privacy icon, and click the Privacy tab. Click the padlock icon on the lower left, and select Location Services, and check Enable Location Services. Finally, you need to set up your development environment. To emulate a development environment without instructional content use Codepen.io. Codepen.io offers a free stand-alone development environment, and makes it easy to share your code.

View Article
Coding Teaching Kids about Setting and Finding Position with Code

Article / Updated 07-14-2022

When coding, it’s important to teach kids the basics of setting and finding position. Setting the position of an object means assigning it coordinates to put it in a specific place onscreen. Finding the position of an object means identifying its coordinates to know where it’s located. Using pseudocode While each programming language uses its own structure for setting and finding coordinates, a typical pseudocode expression you may write to set the position of an object looks like this: setx <em>x-coordinate</em> sety <em>y-coordinate</em> Or setposition <em>(x-coordinate, y-coordinate)</em> To find the current position of an object, you can write pseudocode for each separate coordinate: x-position for the x-coordinate of the object, and y-position for the y-coordinate of the object. You can also write position to describe the object position as a coordinate pair. Using Scratch to set position To set the x-coordinate of an object in Scratch, use the set x to <em>number</em> command in the Motion category. The minimum value of the x-coordinate ranges is -240, and the maximum value is 240. To set the y-coordinate of an object in Scratch, use the set y to <em>number</em> command in the Motion category. The minimum value of the y-coordinate ranges is -180, and the maximum value is 180. To set both the x-coordinate and y-coordinate of an object in Scratch, use the go to x: <em>number</em> y: <em>number</em> command in the Motion category. The range of the x-coordinate value is -240 to 240, and the range of the y-coordinate value is -180 to 180. In Scratch, you can set the size of an object using the set size to number % command in the Looks category. This sets the size of the object as a percentage of its original size. Percentages smaller than 100 shrink the object. Percentages larger than 100 grow the object. Using Scratch to find position To find the x-coordinate of an object in Scratch, use the x position command in the Motion category. To find the y-coordinate of an object in Scratch, use the y position command in the Motion category. You and your coder can use these commands in your programs when you need to write commands that require information about an object's position. As you code, sometimes you want to position an object (sprite) onscreen and then get its coordinates. You can do this for any sprite using either of these methods: Select the checkbox next to the x position command and the y position command in the Motion category to show these values onscreen. On the thumbnail of the sprite, click the “i” icon to expand its information center and then view the x: and y: values displayed there. In both methods, the coordinates of Scratch Cat are (60, -18). Using JavaScript To set both the x-coordinate and y-coordinate of an object in JavaScript, identify the object you want to position, and then use the setPosition command. Here are the steps for how to position an image of a mouse onscreen in the Code.org App Lab, using JavaScript. In App Lab, click the Design button above the emulator of the mobile device. In the Workspace, select Image →   Choose. The Choose Assets dialog box opens. Click the Upload button. Select the file you want, and then click the Choose button. The uploaded file appears in the dialog box. The name of the uploaded image file shown here is mouse.png. In the App Lab program workspace, type these commands: >image("character", "mouse.png"); setPosition("character", 160, 225, 100, 100); Here is what these commands do: The first command creates an image reference identification, character, and links the file, mouse.png, to this identification. The second command displays the image in character according to four quantities: the x-coordinate of the object, the y-coordinate of the object, the width of the object in pixels, and the height of the object in pixels. In App Lab, the range of the x-coordinate value is 0 to 320, and the range of the y-coordinate value is 0 to 450. When using JavaScript to program images displayed on a webpage, these values have larger maximum values, representing the larger size of a computer screen. The image below shows the mouse positioned at the coordinates (160, 225), which is the exact center of the screen. You can see that the mouse is positioned by its upper-left corner where the tip of its tail is located. The mouse has a width of 100 pixels and a height of 100 pixels. To find the x-coordinate of an object in JavaScript, use the getXPosition("character"); command where character is the identification reference of the object. To find the y-coordinate of an object in JavaScript, use the getYPosition("character"); command where character is the identification reference of the object. You and your coder can write the following code to find and display onscreen the coordinates of an object named character. This assumes you have uploaded an image file and assigned it to the reference identification, character. Type this code in the App Lab program workspace. var x = getXPosition("character"); var y = getYPosition("character"); textLabel("xcor"); textLabel("ycor"); setText("xcor", "x-coordinate is " + x); setText("ycor", "y-coordinate is " + y); Here is how this code works: The var x variable gets the x position and the var y variable gets the y position of the object. The two textLabel commands create locations onscreen, called xcor and ycor, to display information. Each setText command displays a value in a text label. The value of x displays in the xcor label and the value of y displays in the ycor

View Article
Coding Coding All-in-One For Dummies Cheat Sheet

Cheat Sheet / Updated 06-30-2022

Coding is equal parts vocabulary, logic, and syntax. Coding may at first seem intimidating, but with practice, though, it's easy to get comfortable with its terminology, concepts, and structure. Understanding coding is not unlike learning a new language: Use it often enough and you'll find yourself able to speak, think, and write in code. Still, it's natural for beginners to have questions. There are many coding resources available to you, both on- and off-line. Ask around and you'll find you're not alone — many other people are learning. After all, coding is a never-ending education. Master one facet or another and a new one opens in front of you.

View Cheat Sheet
Coding Helping Kids with Coding For Dummies Cheat Sheet

Cheat Sheet / Updated 04-27-2022

Coding is fast becoming a skill that every child needs to be educated for in the 21st Century. But coding is taught at only a small fraction of schools, and often only at the high school level. Helping kids learn how to code also means you’re assisting them in developing a skill that is highly marketable and sets them apart from peers at school and later, in their careers. The topics in this cheat sheet can assist you on getting started when your kid expresses an interest in learning how to code.

View Cheat Sheet
Coding Coding For Dummies Cheat Sheet

Cheat Sheet / Updated 01-19-2022

Coding is equal parts vocabulary, logic, and syntax. Coding may at first seem intimidating, but with practice, though, it’s easy to get comfortable with its terminology, concepts, and structure. Understanding coding is not unlike learning a new language: Use it often enough and you’ll find yourself able to speak, think, and write in code. Still, it’s natural for beginners to have questions. There are many coding resources available to you, both on- and off-line. Ask around and you’ll find you’re not alone — many other people are learning. After all, coding is a never-ending education. Master one facet or another and a new one opens in front of you.

View Cheat Sheet
page 1
page 2
page 3
page 4
page 5
page 6
page 7
page 8
page 9
page 10
page 11

Quick Links

  • About For Dummies
  • Contact Us
  • Activate Online Content

Connect

About Dummies

Dummies has always stood for taking on complex concepts and making them easy to understand. Dummies helps everyone be more knowledgeable and confident in applying what they know. Whether it's to pass that big test, qualify for that big promotion or even master that cooking technique; people who rely on dummies, rely on it to learn the critical skills and relevant information necessary for success.

Copyright @ 2000-2024 by John Wiley & Sons, Inc., or related companies. All rights reserved, including rights for text and data mining and training of artificial technologies or similar technologies.

Terms of Use
Privacy Policy
Cookies Settings
Do Not Sell My Personal Info - CA Only