Posts Tagged "Programming Theory"

Introduction to a SkipList Data Structure in Java

Hello everyone! The other day I was approached by macosxnerd101, a newly minted moderator at Dream.In.Code, and asked to contribute to a new thread coming up on Java data structures. Now most of the new programmers here know of the basic data structures like binary trees, arrays, heaps or stacks. Many of these topics I knew would be covered by other contributors to the thread. So I decided to introduce ...

Interfaces and Drawing in Java, Hurray!

So I am cruising around the Dream.In.Code boards when I stumble across an interesting post about creating a shapes tool for a graphics Java program. If you are unfamiliar with the shapes tool, the idea is that you click a button, select a shape and then draw the shape onto some window of the program. Select a square, an ellipse or some fancy star and KAPOWY! you have a masterpiece ...

Inheriting From A Control in Java

I am sure we all love Java Swing. It is not quite as thrilling as the swings we use to play on at the park, but it sure makes our Java applications come alive with a nice rich GUI. We are familiar with the JButton to make buttons, JTextFields to make textboxes and perhaps you have even ventured into using JTables. But maybe some of these controls have not gone ...

Variance and Standard Deviation of An Array in C#

Statistics... the bane of some coders existence. Why would it be any fun unless the stats say you are a superstar sports athlete (which coders are not), are going to win a huge prize like the lottery (which coders realize is futile with something like 1 in 13 million PER SELECTION) or that the probability for love is high... you mean with an actual girl? Hogwash! Never the less, statistics ...

Ordering Sets in C++

Now some of you may be thinking "a set" like some kind of gang terminology. While I do belong to a gang of some hard core programmers here at DIC, I can assure you that we are only talk programming terms here. So I don't want you to drive by my house or anyone to ask me to score some weed. However, if you want to know how to order ...

Down the Rabbit Hole with C# Serialization

"Whooooo areeeee youuuuu?" No really, who are you and what are you doing on my blog? Oh you are here to read my blog entry on C# serialization to file writing? Fabulous! There may be times where you want to store an object's data from C# to a file for reading later. You can essentially "freeze" the object in time and leave it in a file which later your program ...