[{"data":1,"prerenderedAt":184},["ShallowReactive",2],{"project-2341997":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":34,"aspects":35,"strip":38,"post_text":39,"what":40,"said":69,"maker_in_thread":109,"shape":118,"grid":122,"attempts":147,"same_week":148,"maker_shows":138,"maker_hidden":176,"reader_version":177,"card":178},"2341997","namespace.js","a 250 byte open source project.","title","Show HN: namespace.js - a 250 byte open source project.","https:\u002F\u002Fgithub.com\u002Fmckoss\u002Fnamespace","github.com","mckoss",1300482854,2011,9,10,851,1097,78,"shown","languages","javascript libraries","library",[24,25,26,27],"javascript","global namespace","modules","public domain","mixed",0.273,{"positive":31,"neutral":32,"mixed":32,"critical":33},4,0,1,5,{"idea":36,"design":37},{"positive":33,"critical":33},{"positive":33,"critical":32},[32,34,33,32,34,32,34,32,34,32],null,{"problem":41,"audience":48,"pricing":39,"motivation":57,"time_to_build":39,"stack":61,"openness":66,"stage":67,"team_size":68},{"value":42,"source":43,"evidence":44},"Inconsistent ways JavaScript libraries manage the global namespace","maker",[45],{"id":46,"by":11,"text":47},"2342017","I wish there was more uniformity with the way JavaScript libraries manage the global namespace. So, I stripped down the library I use to the bare essentials, and made it a…",{"value":49,"source":50,"evidence":51},"JavaScript library authors and developers","inferred",[52,53],{"id":46,"by":11,"text":47},{"id":54,"by":55,"text":56},"2342708","calebmpeterson","I like it for how single-minded it is. Do one thing and do it well. Here's my one question (and it's not specific to namespace.js) How to do imports so I can avoid var obj = new…",{"value":58,"source":43,"evidence":59},"Wants others to adopt a uniform namespace mechanism",[60],{"id":46,"by":11,"text":47},[62],{"value":63,"source":43,"evidence":64},"JavaScript",[65],{"id":46,"by":11,"text":47},"open_source","launched","unknown",{"praise":70,"objections":83,"requests":91,"questions":96,"alternatives":101},[71,76],{"value":72,"source":73,"evidence":74},"Single-minded, does one thing well","commenter",[75],{"id":54,"by":55,"text":56},{"value":77,"source":73,"evidence":78},"Tiny size is fine if it does the job",[79],{"id":80,"by":81,"text":82},"2342169","jrockway","Is it crazy to have such a tiny open source project? Not particularly. Who cares how much or how little code there is, if it does the job?",[84],{"value":85,"source":73,"evidence":86},"Overkill for something this small; a gist would suffice",[87],{"id":88,"by":89,"text":90},"2342206","reinhardt","Not crazy but probably an overkill. I'd just post it as a gist.",[92],{"value":93,"source":73,"evidence":94},"Clarify how to import nested namespaces without long dotted names",[95],{"id":54,"by":55,"text":56},[97],{"value":98,"source":43,"evidence":99},"Is it crazy to have such a tiny open source project?",[100],{"id":46,"by":11,"text":47},[102],{"value":103,"source":73,"evidence":104},"Upcoming JavaScript modules proposal (Harmony)",[105],{"id":106,"by":107,"text":108},"2342696","pcwalton","Note that my colleague Dave Herman (on the TC39 committee; i.e. the JavaScript standards committee) is working on an official modules proposal for the next version of JavaScript,…",{"comments":31,"answered":32,"key":110},[111,112,115],{"id":46,"text":47},{"id":113,"text":114},"2342540","Since I want this evangelize this to others, making a full repo lets me put in a nice read me, make it clear the license is in the public domain, and also provide unit tests.",{"id":116,"text":117},"2342758","I will generally have an \"imports\" type line at the top of my module, and then use the abbreviated name in the code. This is similar to Python's \"from module import name\"…",{"commenters":119,"max_depth":120,"maker_replies":31,"first_comment_mins":34,"lifespan_hours":121},6,3,8,[123,125,127,129,131,135,137,140,142,145],[46,32,32,124,11,33],"project\u002Fneutral\u002Fidea",[80,32,34,126,81,32],"project\u002Fpositive\u002Fidea",[88,32,33,128,89,32],"project\u002Fcritical\u002Fidea",[113,32,32,130,11,33],"maker\u002Fneutral\u002Fidea",[132,32,34,133,134,32],"2342485","project\u002Fpositive\u002Fnone","Semiapies",[106,33,32,136,107,32],"other\u002Fneutral\u002Fidea",[54,138,34,139,55,32],2,"project\u002Fpositive\u002Fdesign",[116,138,32,141,11,33],"project\u002Fneutral\u002Fdocs",[143,138,34,144,55,32],"2343036","maker\u002Fpositive\u002Fnone",[146,120,32,141,11,33],"2342751",[],[149,154,159,164,168,172],{"id":150,"name":151,"points":152,"category":153},"2345366","FaceCash",75,"web_saas",{"id":155,"name":156,"points":157,"category":158},"2354276","science",70,"learning_science",{"id":160,"name":161,"points":162,"category":163},"2344501","Frozenhot",67,"consumer_social",{"id":165,"name":166,"points":167,"category":20},"2359656","MicroEvent.js",60,{"id":169,"name":170,"points":171,"category":158},"2356402","Education News",53,{"id":173,"name":174,"points":175,"category":163},"2341034","PodCastle",40,false,"v2",{"id":179,"name":5,"line":6,"ai":176,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":180,"top":18,"kw":181,"maker":11,"domain":10,"tier":19,"attempts":32,"strip":182,"url":9,"mix":183,"praise":72,"objection":85,"sub":21},2341997,0.27,[24,25,26,27],"0510505050",[31,32,32,33],1793990871500]