Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    W

    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.

    Visit blogHN submissions
    Web DevelopmentLanguages & CompilersProgramming
    What HN says

    HN commenters dispute some of its claims, such as sorting performance, and cite it in debates about Google's code and the `with` statement.

    Stats for nerds
    42HN people shared it
    46linked in comments
    261story points
    Apr 2014last shared
    2009people per year2014

    Top posts on HN

    1. 1
      What Is Wrong About 17259 Lines Of Code?
      2 people · 90 points · first shared 2011 · 20 comments on HN
    2. 2
      Web Reflection: A Safer JS Environment
      1 person · 33 points · first shared 2012 · 4 comments on HN
    3. 3
      Implicit require in node.js
      1 person · 28 points · first shared 2011 · 2 comments on HN
    4. 4
      A Safer JS Environment
      1 person · 17 points · first shared 2012 · 3 comments on HN
    5. 5
      The DOM Is Not Slow, Your Abstraction Is
      3 people · 13 points · first shared 2015 · Discussion on HN
    6. 6
      JPU - JavaScript CPU Monitor
      1 person · 7 points · first shared 2007 · Discussion on HN
    7. 7
      JavaScript Override Patterns
      1 person · 5 points · first shared 2010 · Discussion on HN
    8. 8
      Y U NO use libraries and add stuff
      1 person · 4 points · first shared 2012 · Discussion on HN
    9. 9
      Reasons To Avoid Closure Compiler In Advanced Mode
      1 person · 4 points · first shared 2013 · Discussion on HN
    10. 10
      Why JSON Won ... And Is Good As It Is
      1 person · 4 points · first shared 2012 · Discussion on HN

    What HN people wrote when they linked it

    • insinFeb 2012

      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.html#L18-47

      More extensive example of inheritable templates for a CRUD admin app: https://github.com/insin/sacrum/blob/master/lib/sacrum/admin.js#L277-439

      [1] http://webreflection.blogspot.com/2009/12/with-worlds-most-misunderstood.html

    • dalkeApr 2014

      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-implementation agrees. http://webreflection.blogspot.se/2009/04/internet-explorer-and-its-inefficient.html extends the comparison to IE and Opera, showing that they are also n * log n implementations.

    • maximusprimeOct 2011

      > 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-lines-of-code.html

      I think you're a little too trusting that every single Google programmer knows what they're doing.

    • ssttooNov 2011

      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-preprocessor.html

      He has stuff like:
      $Object->prototype->toString->call($o); // [object Object]

    • lhorieNov 2009

      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-impressed.html

    Related

    Let's Code JavaScriptletscodejavascript.com23 people

    Let’s Code: Test-Driven JavaScript

    Let's Code JavaScript
    Personal · last shared 2022
    SurviveJSsurvivejs.com35 people

    Interview with the author of React-like Inferno about JavaScript optimisations

    SurviveJS
    Personal · last shared 2023
    FP Complete Blogfpcomplete.com201 people

    Monads and GATs in Nightly Rust

    FP Complete Blog
    Company · last shared 2025
    Prismatic Blogblog.getprismatic.com40 people

    Om Sweet Om: functional front-end engineering with ClojureScript and React

    Prismatic Blog
    Company · last shared 2015
    Pony Fooponyfoo.com54 people

    The Controversial State of JavaScript Tooling

    Pony Foo
    Personal · last shared 2022
    V8 Blogv8.dev272 people

    The cost of parsing JSON

    V8 Blog
    Company · last shared 2026
    codeburst.iocodeburst.io174 people

    Google’s Flutter = React and Java Swing

    codeburst.io
    Publication · last shared 2023
    Jake Archibaldjakearchibald.com191 people

    I discovered a browser bug

    Jake Archibald
    Personal · last shared 2026