Javascript-Math, math everywhere!!! :)

From C++ to PHP, debugging to webhosting; help and discussion about writing your latest program to running your website. NOT for help when your PC won't work.

Announcements Posted on
Please change your TSR password 23-05-2013
Sign in to Reply
  1. VengefulMuffin's Avatar
    • Respected Member
    • Posts: 167
    Javascript-Math, math everywhere!!! :)
    Hey

    I've just started learning javascript sing Codeacademy.com, a lot of the exercises seem a little bit unrealistic/not useful when using the code to actually build things-should I just read it and skip the exercises or actually do them??

    Thanks
  2. tamimi's Avatar
    • Peer Of The TSR Realm
    • Posts: 1,568
    Re: Javascript-Math, math everywhere!!! :)
    I'd say do them. I learnt that the hard way when I started off. I skipped "Training" and dived straight into it, then thought to myself "I've no clue what's going on" and went back to training, and wasted quite some time in the process.

    It's always good to have a solid knowledge on the lingo before you dive into intricate builds.

    However, don't let it get tedious & boring. Don't spend the next week building HelloWorlds. Skip tasks that you feel are too patronising, given that you know that you can do them if you wanted to.

    Sin Cera
    Tim
  3. CJKay's Avatar
    • Overlord in Training
    • Location: England
    • Posts: 2,420
    Re: Javascript-Math, math everywhere!!! :)
    When you're learning a language, a lot of the learning process is repetitively doing unrealistic and not useful tasks to get to grips with the language itself rather than what you can make with it. That comes later when you can understand the syntax and program flow to a sufficient level that you think, "how would I do this with a computer?" rather than "how would I do this with Javascript?".

    The whole idea between Hello Worlds and calculators is to get to that, "oh, so if I make a function I can call it lots of times and write less, and I can turn this real life equation into something the computer will understand" point. Once you understand the language, the solutions to problems naturally become clearer.
    e.g. "I wonder if the window object has a scroll function (which it does - window.scrollBy(x, y))" instead of "I wonder if I can make Javascript scroll the page down".
  4. ttoby's Avatar
    • Vengeful, Imperial Overlord of The Student Room
    • Posts: 3,692
    Re: Javascript-Math, math everywhere!!! :)
    I've found the opposite approach works well. I tend to just dive in and if I get stuck with something, Google how to do it and move on.
  5. carolvision's Avatar
    • New Member
    • Posts: 13
    Re: Javascript-Math, math everywhere!!! :)
    It's a bit like learning French. In school, you do a lot of unrealistic stuff - real French people don't talk like that! But if you do the unrealistic stuff, you get good enough that you can talk to a real French person and learn the other stuff.
  6. Planto's Avatar
    • TSR Idol
    • Posts: 8,690
    Re: Javascript-Math, math everywhere!!! :)
    (Original post by ttoby)
    I've found the opposite approach works well. I tend to just dive in and if I get stuck with something, Google how to do it and move on.
    I am a big advocate of diving in head first and filling in the gaps later, but for beginning programmers there is far too much critical stuff to miss out on. Start with the basics, take it a step at a time and make sure you understand how every single line of code you write produces the result it does.

    Later on, when you have a deeper appreciation of how everything works, you can get away with introducing "black boxes" and being happy knowing how to map inputs to outputs without necessarily having a clear picture of what's in the middle (such as, for example, using high-level frameworks).
  7. Westie.'s Avatar
    • Respected Member
    • Posts: 243
    Re: Javascript-Math, math everywhere!!! :)
    How I learned JavaScript was by setting myself a goal of making something, then making it. JavaScript isn't that complicated, it's more what one needs to do to get things working. Personally I just cheat and use jQuery.

    Oh, and you'll probably find JSFiddle helpful.
  8. hxecute's Avatar
    • Adored and Respected Member
    • Location: London
    • Posts: 531
    Re: Javascript-Math, math everywhere!!! :)
    I recommend making a website through Javascript and actually go all the way with hosting, databasing, etc.

    A learnt a lot by making a dashboard with graphs and trends for a search engine.
Sign in to Reply
Share this discussion:  
Useful resources
Article updates
Moderators

We have a brilliant team of more than 60 volunteers looking after discussions on The Student Room, helping to make it a fun, safe and useful place to hang out.

Reputation gems:
The Reputation gems seen here indicate how well reputed the user is, red gem indicate negative reputation and green indicates a good rep.
Post rating score:
These scores show if a post has been positively or negatively rated by our members.