When I have an idea in my head, I first open a notepad and write the idea out. I then think of everything that will need to be done for it. For example, I'm starting a new hack now. Recently viewed threads. (NO ETA YET ;)) And in my notepad I have things like this...
Quote:
if (the user is already in the database)
then don't do anything
otherwise
add user (userid) into the database with the thread id and the TIMENOW
|
I just type it out so I have an idea and I can start to see if any problems would happen or if I'll need to add more conditions/queries....
Also, taking a break helps me alot. I'll code for 8-10 hours stright. Get mad cause something isn't working right. Then I'll take a little break, smoke a ciggerate, go to the store, lay in bed. While I'm taking the break I'm consintly thinking about the solution; most of the time it just pops up and I'm like... "damm, that wasn't hard" :p.
Tutorials, and seeking others code helps alot also. Don't forget Trial and Error :p