Posts Tagged "Basics"

Rolling Dice in Java, C# and PHP

Some of the very first programs we are introduced to in programming is the idea of random numbers. This is often introduced using the idea of the die or dice. We have all seen them and have probably even thrown a set of dice at some point in our life. A die is pretty much a representation of a random number generator with a fixed range of values. The traditional ...

Create an Email Activation and Unsubscribe Script in PHP

If you weren't lucky enough to get a job with Google or Facebook, or even if you did, one of the first tasks you might be asked to do in your new career as a web developer is to create a subscription form. As part of creating this form will want to collect user information up front and then sending the user an email to have them activate their account. ...

6 Helpful Tips on How to Learn Programming

Undoubtedly if you are new to the computer programming scene you have been overwhelmed by the number of other people telling you how to go about learning a new language. These people might be saying things like "Go to Codecademy.com" or "Check out this online tutorial". But what many of these programmers really miss is that people should use multiple resources in tandem when it comes to learning. In this ...

Best Way to Improve Your Code… A Vacation

The idea of taking a sizable break is bantered around from time to time as coding lore, but does it really work? In my opinion it sure does! Newbies and experts alike underestimate the mind when it comes to problem solving and always wonder what is the fountain of youth when it comes to thinking with code clarity. Those of us who go to work to write code for others ...

Making a Simple Test Harness

Again and again we get people on the Dream.In.Code board saying something along the lines of "I have this problem with my project, I think it is this function giving me the trouble, but can someone help me figure out what is going on?" What is the first thing the pros do in such a situation? They create what is known as a test harness (aka driver program) to test ...

Leave My Property VB.NET

A shiny silver gun is drawn and stuck in the back of the perpetrator. "I thought I told you to leave my property. What are you still doing here?" A brief pause and the criminal responds "Leave? I thought you meant implement some properties, so I implemented three of them... a name, an age, and a phone number where you can reach me." Martyr2 becomes puzzled. To get a better ...