General Discussion

Topics that talk about general programming principles

Finding a Loan Balance in PHP

"Yes sir, I will take that 10,000 dollar loan. If I pay 100 dollars a month that will be $1200 dollars right there after my first year." Not so fast the bank teller tells you. You still owe us $9383 and some change, not $8800. You have to remember interest and at your monthly compoundings, it adds up! Damn that interest really hits home. Here I thought I had 1200 ...

DLL Importing and Use in C#

Windows has always had a ton of Dynamic Link Libraries (DLL) files that it uses as a collection of related functions bound up into a single file. DLLs are accessed for finding open windows, accessing files, changing graphical elements of a system like the desktop or controlling where windows appear on screen. Many applications make use of these files as well and just at the beginning of the decade we ...

Avoid Tying Classes to Your Forms

So you have a great class written and you want to integrate it into your project. Whether it be C#, Java, VB even C++ you may have asked yourself "How do I go about getting my class to update my form controls?" or "How do I get the class to change something on my interface or another class?" It is a common question asked on the board and the answer ...

Search a Text File in Java

File handling can be a bit daunting to the beginner. We all know what a file is, but how to access and use even the simplest text files through a program can make our brains go to mush. That is because programs see files as streams of data. It opens access to a file and pulls in that data as a stream in either chunks or in a serial (single ...

Dialogs and Copying Files in VB.NET

Commercial: Are those old Dialogs and Files in your cupboard collecting dust? Are you tired of having to take them out, trying to use them, only to spill code all over your beautiful new sweater? Are your kids crying and telling you that you need to move those files to another part of the house so that they can play with their toys in a safe and healthy environment? Well ...

Programming Tip: Control Your Whitespace

I am writing this blog entry to talk to all the programmers out there, who post regularly post on the board, who are in the industry, who are new or who are experienced... code organization is key to a great looking program and to help reduce your debugging troubles. Often times I sit on the Dream.In.Code web board helping out when I am suddenly hit with a post that is ...