Saturday, November 5, 2011

Read it like a book

If I group logic together, it helps me read the code instated of thinking about what the code does.

ungrouped:

grouped:

When I find myself stopping and thinking twice about a bit of code, I see if I can fix that. If I have to think twice now, I'll have to think twice later..

There's bound to be some ugly

I stopped and looked at the screen. What I saw was beautifully ugly. Chaotic? Yes, but there's bound to be some of that... it comes with the territory of encrypting and decoding. I'll file it away neatly it in a part of the API that it belongs... and I don't see it unless I need to. 


Friday, November 4, 2011

Write a good API... File it away and forget about it

I don't like seeing code that I don't need to see. I noticed that coding *is* making an API... my own API. I see code that I don't need or want to see...




so I file it away in another section of my API and forget about it (until I need it again that is!)


ahhhh... that's better :0) Yes, it takes a little time to create a new api "hook", but in the end it's worth it to me.


My brain gets distracted and frustrated easily. Keep coding cool baby..

Thursday, November 3, 2011

"Selected" vs "Preview"

Selected... final, done, ready.  "Are you sure this is what you want?"



vs

Preview... ahhhh, so you're giving me a preview then? Thanks :) Oh and it's what I've selected? cool.