View Single Post
  #2  
Old 05-18-2012, 09:12 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
Quote:
Originally Posted by Tigairius View Post
PHP Code:
function onRotateImage() {
  
temp.direction this.counter 4;
  
findImg(3).rotation temp.direction ? (findImg(3).rotation 0.05) : (findImg(3).rotation 0.05);
  
this.counter ++;
  
scheduleEvent(0.3"RotateImage");

I think you can agree that it's much nicer and easier to read than having 8 different functions to complete the single task.
I'm only posting on this thread because I find it useful, but I'd like to point out, you should not assume someone thinks it is easier to read something as confusing as that.

I get up to the question mark which then confuses me...
I don't know how much he knows about programming or math,
but some things that may be common sense to some programmers
may not be as such to those just getting into the scene.

That and we all have certain skills inside the language we are good at
and others we've never bothered to touch.

I think you mean to say easier to read all at once,
rather than easier to comprehend? :x

It takes the system more time to read 20 lines when it can read 4...
Anyway, positive reputing your post explaining sign to him, I believe
most people would not take the time to do something like that.
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz




Last edited by Devil_Lord2; 05-18-2012 at 09:12 PM.. Reason: When I can give it.
Reply With Quote