English subtitles

← 07-16 Evolution Of Javascript

Get Embed Code
3 Languages

Showing Revision 1 created 06/29/2012 by Amara Bot.

  1. I'm here at Mozilla with Dave Herman a researcher at Mozilla Research
  2. who also sits on the standards committee for the governing body for JavaScript.
  3. I was wondering if you might tell us a bit about changes to the language over time
  4. or what's coming down the pike. >>Sure.
  5. JavaScript was initially invented by Brendan Eich in a great rush.
  6. He famously invented the first version of JavaScript in 10 days.
  7. The original goal of JavaScript was to create a little scripting language
  8. where people could to little things with webpages,
  9. and I think there were people even back then who had some visions of where it could go,
  10. but it really did start from pretty humble beginnings.
  11. At this point, JavaScript really is the language of the web,
  12. and the web has become note just a place for documents but a place for serious programs,
  13. for serious applications.
  14. As a result, the platform grows, the language grows, and the needs of the programmer grow with it.
  15. While JavaScript started out as a simple language,
  16. the needs of programmers aren't as simple as they used to be.
  17. That means that there's a lot of features that other programming languages have
  18. and JavaScript does not have that we've had to consider standardizing on.
  19. A big one is that as your programs start to get bigger, you have needs around organization
  20. of your programs that don't actually arise when your programs are smaller.
  21. You may have seen as you're working with Python that Python has a module system.
  22. It has the ability to define separate pieces of code that you put into modules,
  23. and then you can mix and match those modules and put together larger programs
  24. from smaller components.
  25. JavaScript doesn't have a module system at all.
  26. It's actually not that easy to create a library, create a piece of reusable code
  27. that you can share with other people.
  28. There are various idioms that people use within the language
  29. to sort of simulate a module system, but they don't get any support from the language directly.
  30. One of the biggest features that we've been working on for the next version of JavaScript
  31. is a module system in some ways similar to Python's module system,
  32. although JavaScript has some particular needs of its own.
  33. The web has some particular needs of its own.
  34. But it'll make it much easier for people to create reusable individual chunks of code
  35. that they can share with each other.