background preloader

Learn How to Code Part I: Variables and Basic Data Types

Learn How to Code Part I: Variables and Basic Data Types

50 Places You Can Learn to Code (for Free) Online If you’re curious about learning a programming language then you’re in luck: there’s no shortage of resources for learning how to code online. University-level courses, tutorials, cheat sheets, and coding communities all offer excellent ways to pick up a new language, and maybe even a new job, too. Read on, and you’ll discover 50 great places to learn how to code, for free, online. University Many big names in education including MIT and Stanford offer programming courses, absolutely free. General If you’re just dipping your toes into programming, or you want to find a variety of resources, these sites offer several different ways to learn how to code. Community Learn how to code on these sites with a heavy community influence ready to offer help to newbs. Language Specific Drill down to the language you really want on these sites, offering expansive learning in one or two specific languages.

Learn to Code Part II: Working With Variables @pllee123: Much as I agree with the college classes are a good way to go. I've been a developer for over five years now and I've never been to a class in my life. It was just curiosity that caught me. @pllee123: I'm hoping that this will give me a (re-)start in a language again. @pllee123: It doesnt take classes. Back in 1998 we used to joke; what did the high skewl drop out say to the CS major? And now... there are tons of free resources to learn pretty much anything, and forums and chat channels to exploit. I wrote my first program when I was 12, wrote my first ML program when I was 13. The nest way to learn is to not be afraid of what you don't know and have a real problem to solve.

A Frugal Fact: The 6 Most Valuable Grocery Store Products Known to Man When it comes to utility, not all products are created equal. In fact, some products have so many uses beyond their advertised purpose it is truly amazing. So if value can be defined by versatility then, clearly, not all products provide you with the same bang for your buck. Sure, everybody knows about the incredible versatility of duct tape; it is absolutely legendary in terms of the number of ways it can be used. Heck, I even wrote a popular article a while back that showed how duct tape can fix your personal finances. Did you know there are other versatile items out there besides duct tape, many of which can be found in your local grocery store? In fact, savvy grocery shoppers often take advantage of these highly versatile products to save money by using them for alternative applications. After some exhaustive research, here is my official list of the six most valuable grocery store products – along with a partial list of their many uses. 1. 1. 2. 1. 1. 4. 1. 5. 1. 6. 1.

Learn Dance Party Grades 2+ | Blocks Minecraft Hour of Code A Minecraft Tale of Two Villages Grades 2+ | Blocks, Python Make a Flappy game Play, Design & Code Retro Arcade Games codeSpark Academy with The Foos: Create Games Pre-reader - Grade 5 | Blocks Star Wars: Building a Galaxy with Code Grades 2+ | Blocks, JavaScript Coding Town Grades 2-5 | JavaScript AI for Oceans Grades 3+ | AI and Machine Learning Ozaria: Your Journey Begins Grades 6+ | JavaScript, Python Code your own racing game! Grades 6+ | JavaScript Beach Cleanup with Kodable Pre-reader - Grade 5 | Language independent (can be taught in multiple languages) Write your first computer program The Grinch: Saving Christmas with Code Grades 2-8 | Blocks Code with Anna and Elsa Minecraft Hour of Code: AI for Good Make Your Own Kodable Mazes Pre-reader - Grade 5 | JavaScript, Language independent (can be taught in multiple languages) Learn to Code with Crossy Road Grades 9+ | Blocks Beaver Achiever Tractor Traversal Box Island All ages | Blocks Bake a Cake With HTML!

Learn to Code Part III: Arrays and Logic Statements A few tips: (1) You can easily create an array simply by using the literal notation, e.g.: var myArray = ["foo", "bar"]; (2) This might seem like splitting hairs, but unless you're doing some kind of array mutation where this would be sensitive, it is more performant to store the length of the array in another variable before iterating, rather than checking it every time through the loop. for (var i = 0, len = myArray.length; i < len; i++) { ... } (3) Either your examples are assuming var i was already declared, or you're leaking globals again. (4) Perhaps this is a little advanced to bring up, but I'll mention it nonetheless because it's VERY important. For those interested, I've seen Eloquent JavaScript recommended time and again as a great introduction to JavaScript as well as programming. Also if you eventually become serious about understanding crucial concepts of the language, be sure to pick up JavaScript: The Good Parts by Douglas Crockford.

The Best Chrome Apps You're (Probably) Not Using Getting Started - Educational Materials This section: Next Section(s): Learn by Example One of the best ways to learn how to program in a new language is by looking at lots and lots of example programs. Example 1: Get your compiler working! If you have not already done so, copy and paste the following classic program into a text file and compile it. It's likely that you worked through the details of this program in the tutorial, so we will not provide a line-by-line description here. Every program we write begins with a header comment, providing the name of the author, their contact information, a short description, and usage (if relevant). // hello.cpp: Maggie Johnson // Description: a program that prints the immortal saying "hello world" #include <iostream> using namespace std; int main() { cout << "Hello World!" Some experiments to try: The most important thing is to make sure you can compile and run this program. Example 2: Get some input It's easy to get input from the keyboard in C++ using cin. An experiment:

5 Great Resources To Learn How To Code However, more often than not, there seems to be a problem of actually finding good content online that can teach you to code. Experimenting with a language can only get you so far. To master it, you need to have proper guidance from people who actually know what they are talking about. So where can you find expert guidance without shelling out a fortune for it? You could start with checking out the websites below: Dream In Code Just taking a look at their logo ought to tell you that the community at Dream In Code isn’t something to mess around with. They have everything. They also have a video channel and links to developers’ blogs if you want to look deeper. W3Schools If what you want to master is a Web technology, you’ve got to give W3Schools a look. You can get tutorials ranging from plain-Jane HTML, right up to AJAX and the likes. Eloquent JavaScript If you’ve ever had to use a Greasemonkey Script or a Bookmarklet, you have a clue about the kind of power that JavaScript possesses.

How to Start Learning Computer Programming: 7 Steps Steps Part 1 Choosing a Language <img alt="Image titled Start Learning Computer Programming Step 1" src=" width="728" height="546" class="whcdn" onload="WH.performance.clearMarks('image1_rendered'); WH.performance.mark('image1_rendered');">1Choose a programming language. <img alt="Image titled Start Learning Computer Programming Step 6" src=" width="728" height="546" class="whcdn">6Don't limit yourself to these languages! Part 2 Learning the Language Part 3 Teaching Yourself Community Q&A Add New Question Where can I find free coding practice problems? Ask a Question Tips Article Info

Codea Learn to Code Epilogue: Best Practices and Additional Resources Great post. The bit about comments being even for yourself 6 months from now is so true it's not even funny. Just to clarify (and further stress) why eval in JavaScript is evil: It's not that it just treats a string as a variable per se; it attempts to *execute* any string as JavaScript code. This means that you could put anything that would run in JavaScript into a string, throw it into that function, and it'd run. Why is this evil? For both security and performance reasons. Security, because if you somehow manage to throw some unsanitized user input straight into an eval call, you're basically opening yourself up to a potential world of hurt. Performance, because in order to execute the string passed to eval as code, an additional instance of the JavaScript runtime is fired up to execute it. Also keep in mind, calling setTimeout with a string parameter is equivalent to calling eval; you should pass setTimeout a function instead whenever possible. function doStuff() { return { foo: 'bar'

Related: