|
Work -
ASP.NET
|
|
Written by mbrock
|
|
Sunday, 08 June 2008 21:41 |
|
If you have been programming for any length of time, you know how important commenting your code is. You comment your code so that you will know how it works if someone, including yourself, has to go back and look at it again later.
One of my pet peeves as a professional developer is that every so often you run across code written by someone else that has not been commented - or is commented very poorly. Non-commented or poorly commented code can be a big hassle for a developer. Suppose you need to fix a bug in someone else's code and this person no longer works with you or your company. If the code is not properly commented then you could spend a lot of time - and time is money - trying to figure out what the code does. Unless you are trying to obfuscate code to make it more difficult for someone to understand, there is really no excuse to not properly comment it. It only takes a few seconds to write a some words about what your code does. |
|
Read more...
|
|
|
Work -
ASP.NET
|
|
Written by mbrock
|
|
Thursday, 05 June 2008 22:46 |
|
I recently had an issue with Visual Studio and a pound sign, '#', character in a folder name. It turns out that you need to be careful when you name the folders that you put projects in.
|
|
Read more...
|
|
Work -
ASP.NET
|
|
Written by mbrock
|
|
Thursday, 05 June 2008 22:08 |
|
Every once in a while you may find yourself needing to write a file to the web server. For instance, I recently had to write an ASP.NET page that would save certain data from an input XML file as a text file on the web server. Thanks to the nifty abilities of C#, saving the new file was a snap. Read on for more...
|
|
Read more...
|
|
Work -
PHP
|
|
Written by mbrock
|
|
Monday, 02 June 2008 20:57 |
|
Here is a simple function that opens a file, reads it in a line at a time, and prints the output to the screen. The nl2br statement in the function will convert the newline characters ("\n" or "\r\n" depending on your OS) to HTML breaks, "<br>".
|
|
Read more...
|
|
Play -
Wii
|
|
Written by mbrock
|
|
Thursday, 29 May 2008 21:25 |
|
After months of searching for a Nintendo Wii, I finally found one at Wal*Mart. So I bought it - along with some extra controllers and a memory card. I got it home and unpacked it. Everything that I needed to get started was included in the box - although I would have preferred to have component video cables instead of a composite one. The hookup was simple enough. I plugged in the power cable, the composite A/V cable, and the sensor bar cable. I put the batteries in the wireless remote, turned the Wii on, and it powered right up. Everything was going great until it was time to get the Wii online.
|
|
Read more...
|
|
|
|
|
<< Start < Prev 1 2 3 4 Next > End >>
|
|
Page 2 of 4 |