A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 29 of 29

Thread: Friends of ED book on math

  1. #21
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    More complex? As if. I saved the usage of another variable, and its a simple line. How about we have a vote?

  2. #22
    Senior Member
    Join Date
    Jan 2002
    Posts
    368
    i didn't say "more complex"
    i stand by my last post.

  3. #23
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    Ok, "less understandable" hehe

    I just don't see how it is less understandable? This way, you don't have to remember what 3 different variables are for.

  4. #24
    Senior Member
    Join Date
    Jan 2002
    Posts
    368
    additional variables, if well named, make code more understandable, not less. vy++ just says you are incrementing a variable vy. velocityY+=gravity says it all. short, compact code isn't necessarily better. it can sometimes be more efficient, but hell to maintain. i'm being a bit of a hypocrite here, since my personal source code is often pretty messy and breaks all kinds of rules for "proper programming style". but when i'm doing a tutorial or book, or code that someone else will need to use, i try to be a little more PC (programatically correct)

  5. #25
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    But they clutter everything up whilst in the debug process and make life harder sometimes.

  6. #26
    Procrastinator
    Join Date
    Oct 2000
    Location
    Osaka
    Posts
    138
    It seems to me that keeping a gravity variable can only make the code more flexible: While authoring it enables one to change the gravitational force for many parts of a system quickly and easily. Isn't this the point of not hard coding everything?
    You may want to include a slider to control gravity at run time.
    Overall I think it's simpler and more flexible.

  7. #27
    Senior Member
    Join Date
    Jan 2002
    Posts
    368
    damn variables! should just get rid of 'em once and for all!

  8. #28
    Junior Member
    Join Date
    Dec 2001
    Posts
    15

    Back to info about the book, please

    Would the book be interesting for someone with a great knowledge of math as well? Or is it merely as an inspiration and "help" for those who have forgotten a lot of math since school?


  9. #29
    Gross Pecululatarian Ed Mack's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    2,954
    I suppose a proper math book would be more for sombody in that position, ie. one that's going over more advanced topics, but not flash.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center