Hacker News new | comments | show | ask | jobs | submit login

Some interesting history of source maps: They actually are older than the article suggests, having been original developed and used internally at Google starting in early 2009. At the time, Google had some of the largest applications written in JavaScript running inside of the browser, optimized and minified using Closure Compiler [1]. One focus of Closure Compiler was/is minimizing bytes sent over wire, which resulted in trying to debug issues that occurred on Line 1, Character XXXXX of the minified file. As an engineer working 20% on a Gmail feature, I grew incredibly frustrated with having to add `console.log` or `alert` calls everywhere, and so threw together extensions to both Closure Compiler and Firebug to produce the very first iteration of source maps. While only used by a few members of the Gmail and apps teams at first, the source maps and “LavaBug” (our extension to Firebug to consume source maps) spread internally, so much so that we decided to release them as part of Closure Compiler’s first release (“LavaBug” being released as “Closure Inspector”) [2].

The reason the spec lives in a Google Doc is that it is not a standard; it is a specification that we wrote at Google and saw teams both internally and externally pick up as it gained steam, eventually being supported in all major browsers and most compile-to-JavaScript tools; shows how having a solution to a problem can cause it to grow into a “standard”.

Source: I invented Source Maps

[1] https://github.com/google/closure-compiler [2] https://googlecode.blogspot.com/2009/11/introducing-closure-...




Thanks for the info and thanks for source maps! I wrote the article. I'm updating to clarify that I meant that "version 3 was released in 2011" instead of reading as though the original version of source maps came out in 2011. Also I'm linking back to your comment for an explanation on the whole "google docs" backstory, which is pretty fascinating. Thanks again!


I choose to believe the article writer.


If you click the fist link in the article, going to the google doc, you'll find this:

The original source map format (v1) was created by Joseph Schorr for use by Closure Inspector

Username checks out. Snark or not, please avoid posting this type of comment here.


[flagged]


Would you mind commenting according to the guidelines, please?

https://news.ycombinator.com/newsguidelines.html


Article writer here. I meant that "version 3" of source maps were introduced in 2011, which is the date on the google doc. I'm updating the article.


Yeah, I figured as much. Just thought it would be fun to add a bit more history, in case some found it interesting. Did not mean to imply that your article was incorrect :)


Because being the author of an article or a blog post automatically gives you credibility?




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: