Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 29th, 2005, 12:58 PM   #1
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,888
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Ah, so is this what being a programmer is about?

I just had to spend maybe 3 hours trying to get it so when my character approaches the edge of the screen, the map stops moving from behind the stationary character (in the opposite direction of course), and instead the character starts moving. That way you don't see a black endless edge on the side if you keep moving. The tricky part is it all had to work off one variable so I could keep testing for collisisions that are found in the same place, and event locations that should occur on the same co-ordinates.

I'm tired.
Sane is offline   Reply With Quote
Old Jun 29th, 2005, 2:59 PM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Yes, I would think a majority of programming is debugging The planning, would be a close second.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Jun 29th, 2005, 8:00 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The majority of the money spent on your program, if it's a successful commercial effort, will be spent AFTER it's released and you've gone on to other things. Clarity of purpose and expression is therefore essential to the health of the bottom line.

Consider also the liability issues. A failure in your software may cause damage, even kill someone. Disclaimers and end-user agreements are not always a successful defense. If you're not in the habit of checking the returns (or other available error indicators) of the functions you use, perhaps you should consider investing more "wasted" effort. The writers of the functions you use do not normally promise to deliver the goods -- they promise to deliver OR INFORM YOU THAT THEY DID NOT. As a side benefit, the information contained in these checks are great debugging aids, as are the moment-to-moment contents of your data entities.

If you're planning a career in any professional sense, there is much to consider beyond correct syntax and "mostly functional" operation.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:58 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC