Why do most programming tutorials demonstrate increasing a price by 10% as "price + (price * 0.1)" instead of just "price * 1.10"?
@monfresh It’s easier and allows to focus on programming instead of programming + math…?
-
-
@mwichary Is it wrong of me to assume that people who want to learn to code or learn a new prog language are proficient in basic math? -
@monfresh I think it might be! :) I agree the concise version should be there, but: divide and conquer? Also, sometimes concise code is bad!
End of conversation
New conversation -
-
-
@mwichary It's fine to start with the longer solution, but the short one deserves to be highlighted as well to show code efficiency and DRY.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.