Web Reflection

webreflection.blogspot.com · Personal blog · on HN since 2007

Andrea Giamarchi writes about JavaScript, covering DOM performance, language quirks, abstractions and critiques of tools such as Google Closure.

What HN saysHN commenters dispute some of its claims, such as sorting performance, and cite it in debates about Google's code and the `with` statement.
42HN people shared it
5linked it in comments
46stories submitted
261story points
10 years agolast shared
2007people per year2026

Most-shared posts

  1. 1
    The DOM Is Not Slow, Your Abstraction Is
    3 people · 13 points · first shared 2015 · discussion on HN
  2. 2
    What Is Wrong About 17259 Lines Of Code?
    2 people · 90 points · first shared 2011 · 20 comments on HN
  3. 3
    JavaScript Overload Patterns
    2 people · 3 points · first shared 2010 · discussion on HN
  4. 4
    Closure Fail
    2 people · 2 points · first shared 2009 · discussion on HN
  5. 5
    Javascript Hypertext Preprocessor
    2 people · 2 points · first shared 2011 · discussion on HN
  6. 6
    With: The World's Most Misunderstood Statement
    2 people · 1 points · first shared 2009 · discussion on HN
  7. 7
    Web Reflection: A Safer JS Environment
    1 people · 33 points · first shared 2012 · 4 comments on HN
  8. 8
    Implicit require in node.js
    1 people · 28 points · first shared 2011 · 2 comments on HN
  9. 9
    A Safer JS Environment
    1 people · 17 points · first shared 2012 · 3 comments on HN
  10. 10
    JPU - JavaScript CPU Monitor
    1 people · 7 points · first shared 2007 · discussion on HN
  11. 11
    JavaScript Override Patterns
    1 people · 5 points · first shared 2010 · discussion on HN
  12. 12
    Y U NO use libraries and add stuff
    1 people · 4 points · first shared 2012 · discussion on HN
  13. 13
    JavaScript Made Everyone Crazy
    1 people · 4 points · first shared 2012 · discussion on HN
  14. 14
    Web Viewport Size
    1 people · 4 points · first shared 2012 · discussion on HN
  15. 15
    Why JSON Won ... And Is Good As It Is
    1 people · 4 points · first shared 2012 · discussion on HN

What HN people wrote when they linked it

dalke · 2014-04-10
The author appears to be completely wrong. While the spec doesn't say anything about the expected performance, there's no way a real Javascript implementation uses an O(n * n) algorithm. Indeed, http://blog.rodneyrehm.de/archives/14-Sorting-Were-Doing-It-Wrong.html a couple of years ago wrote "While InsertionSort and MergeSort (Apple and Mozilla) are stable, QuickSort (Google Chrome) is not (Issue 90). Chrome will sort arrays using InsertionSort if the array has 10 or less elements" and http://stackoverflow.com/questions/234683/javascript-array-sort-implem… agrees. http://webreflection.blogspot.se/2009/04/internet-explorer-and-its-ine… extends the comparison to IE and Opera, showing that they are also n * log n implementations.
insin · 2012-02-14
Sure there are - why are so many Crockford pronouncements taken as a signal to stop thinking? Notice that his "with is bad" examples (which are usually bad examples and bad usages [1]) always involve contrived examples of potentially ambiguous assignment - one of the more useful ways to use `with` is with objects whose properties are DSL-like functions, named in such a way that there's no mistaking their origin and with no ambiguous assignment involved. Simple example with includes: https://github.com/insin/DOMBuilder/blob/master/examples/reddit_posts.… More extensive example of inheritable templates for a CRUD admin app: https://github.com/insin/sacrum/blob/master/lib/sacrum/admin.js#L277-4… [1] http://webreflection.blogspot.com/2009/12/with-worlds-most-misundersto…
ssttoo · 2011-11-30
Greetings, author of the post here :) This post was, of course, just a thought exercise. But if it sounds intriguing, please check Andrea Giamarchi's much more advanced "JavaScript Hypertext Preprocessor": http://webreflection.blogspot.com/2011/06/javascript-hypertext-preproc… He has stuff like: $Object->prototype->toString->call($o); // [object Object]
maximusprime · 2011-10-12
> You're implying that Wave engineers don't know how to use Java. But Wave engineers are Google engineers. Google engineers are hired somewhere in a high 90th percentile of programming ability and experience. I'll just leave this here (Dart - the new language from Google). http://webreflection.blogspot.com/2011/10/what-is-wrong-about-17259-li… I think you're a little too trusting that every single Google programmer knows what they're doing.
lhorie · 2009-11-12
Is it just me, or is it becoming fashionable to criticize google's code? This one is a few days old: http://webreflection.blogspot.com/2009/11/google-closure-im-not-impres…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close