![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Programming Guru
![]() |
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. ![]() |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#3 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|