Autoloading in PHP 5

Autoloading is a relatively easy concept to understand in PHP 5, but little is talked about it for the newbie programmer or those who are coming up out of PHP 4. It is part of that large group of functions known as "magic functions" and is responsible for getting around that large block of include/require statements you may see at the top of many big PHP scripts. In this entry ...

Basic opening and reading files in VB.NET

File opening and reading into a form seems to be a bit of a tricky feat for the beginner VB.NET programmer. Along with all this is the open file dialog which could use some basic understanding as well. How does a beginner create it, configure it and show it to the user ? In this entry we will attempt to put a basic file opening and reading mechanism in place ...

Amortization Definitive (C++, C#, Java, etc)

Amortization... it is the process of accounting for, and usually decreasing, an amount of money over a period of time. You can amortize a mortgage or various types of loans, and you can amortize assets based on their value and what their value will be in so many periods of time. Many newbies on our boards have asked about this very project as part of the computer science courses and ...

Parts 1-3 of Product / Inventory Project

One of the many questions we are asked on a regular basis is help with the Product, DVD, Inventory inheritance style of problem. Where the student is asked to create a Product class as part 1, then create an Inventory class in part2 to manage the products, and lastly asked to inherit from the Product class to make a specialized subclass in part 3. While this blog entry goes into ...

Kicking the BucketSort in C#

Ever hear the term "Kicking the bucket"? If not, it is usually used here in North America to mean someone died. Well rest assured I am not going to be whipping out expressions like "I see dead programmerssss" or anything in this post. Ok, maybe I just did, but the idea behind BucketSort (aka Bin sort) is just that, creating buckets of numbers which we attack with our choice of ...

A Slice of PI Using the Monte Carlo method In Java

Everyone loves PI don't they? Cherry, Apple, Blackberry and even Pumpkin is which is one of my all time favorites! Ok, I am not talking about that kind of pie or that geeky guy who called himself PI on Beauty and the Geek (love that show... why? Because I am a geek and wishing I could hook up with hot super model chicks who depend on my intelligence and willing ...