Learning Python by Implementing Programming Templates

In this article I’m going to introduce a series of articles that will present a different way to teach beginning Python programming. My approach is to teach the language as a means of implementing a set of programming templates that describe specific functions that a program can perform rather than the syntax of a particular construct. Learning Python by Implementing Programming Templates

Learning JavaScript: Introduction to Classes

In this article I’m going to continue the discussion by looking at some advanced concepts — classes as first-class objects, computed member names, and static member variables.

Learning C++: Overloading the Input and Output Operators

In this article I’m going to show you how to overload the input operator (>>) and the output operator (<<) so that you can use them with your class objects.

Learning JavaScript: Computing with Object Methods

JavaScript has a set of built-in methods you can use with your user-defined objects. In this article I’m going to discuss several of these methods and how you can use them in your JavaScript programs.

Learning JavaScript: Working with Objects — this, getters, and setters

JavaScript objects provide the reader with some special features that make object-based programmer more effective and more efficient. In this article I’m going to describe three of these features — the this keyword, getters, and setters. The this Keyword If there was ever a more confusing keyword in computer programming than thethiskeyword, I don’t know what it is.

Learning C++: Class Constructors

A class constructor is a function that places data into a class object and performs any other set up for a class object that needs to be performed when a class object is first instantiated. In this article, I’ll demonstrate how to create and use several different types of class constructors. I’m going to demonstrate how to create and use constructors using a class definition I developed in my previous article, which was an introduction to C++ classes.

Why You Should Learn Programming

Reasons to learn programming. 1-Occupational fields are evolving In the information age, programming became a necessity as occupational fields are changing rapidly. While traditional jobs like retail are becoming extinct; demands towards programmers are ever-growing.

Learning JavaScript: Computing with Objects

Objects are an important part of JavaScript as just about everything you do in the language involves some type of object. In this article I’m going to discuss why object-based computing is important and how to compute with objects in JavaScript.

Learning C++: Value and Reference Parameters

One of the most difficult concepts for beginning C++ programmers to understand is the difference between passing function parameters by value and passing function parameters by reference.

Learning C++: Variable Scope

Variable scope refers to the ability of a variable to be “seen” in a program. A variable is seen if, in a specific place in a program, the programmer has access to that variable’s value.

Learning JavaScript: for Loops

In this article I’m going to cover the different forms of the for loop that are available in JavaScript. There is the general for loop, the for..in loop, and the for..of loop. I will describe how each loop works and when is the right time to use each loop type. I am leaving out the Array.forEach loop as it is specialized for arrays and requires some knowledge of functions I haven’t covered yet.

Learning C++: Table-Driven Selection

The typical way to perform selection (or branching) in C++ is with the if statement. In this article I’m going to demonstrate several ways to replace complex if statements with tables.

Learning JavaScript: Working with Strings

Strings are the second most common data type used in JavaScript, and in many cases, since JavaScript is so widely used for web applications, it is the prominent data type.

Learning JavaScript: Statements, Arithmetic, and Math

In this article I will discuss how to perform arithmetic and more advanced mathematical operations in JavaScript. First, though, I need to discuss how statements are formed and used in JavaScript.

Learning C++: Boolean Operators

Boolean operators are used to combine relational expressions to perform more complex logic in your C++ programs. In this article I’ll explain how to use the Boolean operators in C++.

Learning JavaScript: Data Types and Variables

To paraphrase the title of an old computer science textbook, “Algorithms + Data = Programs.” The first step in learning a programming language such as JavaScript is to learn what types of data the language can work with. The second step is to learn how to store that data in variables. In this article I’ll discuss the different types of data you can work with in a JavaScript program and how to create and use variables to store and manipulate that data.

Learn to Program Better with The Weekly Spot Drill

Most of us have fallen into this trap. We’re so focused on learning a topic or honing a skill that we don’t touch previously learned information for weeks or months.

Learning C++: for Loops

There are two loop constructs in C++. One of them is the while loop and I’ll cover it in a separate article. The other loop construct, and the one I want to discuss in this article, is the for loop. The for loop is used when you want to iterate, or loop over, a set of statements, a specific number of times. If you are processing the elements of a container, such as an array or a vector, you will want to use a for loop. If you are processing 10 pieces of data received from the program user, you will want to use a for loop.