News for hackers. Stuff that matters.
Re:A Gentle Introduction To Learning Calculus by kalid on Friday May 02, 2008 @06:11PM (#179972)
That's exactly it. We show math as this complete and perfect system, whereas it was discovered, often times, through trial-and-error. Retracing the steps can help show why certain decisions were made.

For example, why does C have a separate short and long data types, but javascript just has "var"? Because when C was made, memory was at a premium. When javascript was invented, everything could be a 4-byte value.

Re:A Gentle Introduction To Learning Calculus by a-priori on Friday May 02, 2008 @07:17PM (#180011)
Actually, the reason was more that C was designed for systems programming, and that sort of code often has to interface with hardware devices through memory-mapped registers. To do this, you need to be able to write code that uses variables of the correct width. This is why C has all the various sized variables in signed and unsigned variants.
Re:A Gentle Introduction To Learning Calculus by kalid on Friday May 02, 2008 @09:31PM (#180048)
Good point -- C was designed to interface with hardware ("high level assembly") whereas javascript was designed to interface with web pages & browsers. Either way, the history helps understand the design decisions.