HNHacker News
TopNewBestAskShowJobs

ehynds

56 karma · joined January 31, 2011

submissionscomments
ehynds··on Is your electric bill going up? AI is partly to blame
Here in the northeast, electricity is expensive because we rely heavily on natural gas for power but lack sufficient pipeline capacity to bring in cheaper supply, all while nuclear plants are being retired, politicians have blocked new pipelines from Canada, and the Jones act makes it costly to transport fuel by sea.

I'm sure AI isn't helping but we have plenty of problems already

ehynds··on Ask HN: What are your passive income sources?
About $300/mo on an app that provides real-time train tracking for Boston's commuter rail. Thankfully for me the MBTA is a mess, so each system meltdown (which happens about once a week) causes a spike in downloads.
ehynds··on Debugging Node.js in Production
OP is saying that `let func = () => {};` creates a named function where func.name equals "func" and "func" appears as part of the stack trace.

Your example is still an anonymous function just bound to a different context.

ehynds··on Debugging Node.js in Production
Still though, in situations where I care about the stack trace, I don't see myself writing:

  let doStuffCallback = () => {};
  doStuff(doStuffCallback);
over:

  doStuff(function doStuffCallback() {
  });
ehynds··on Debugging Node.js in Production
That seems to do it.

  let func = () => {};
  console.log(func.name); // func
and in stack traces:

  let func = () => foo();
  func()
results in:

  Uncaught ReferenceError: foo is not defined
  func @ test.js:1
ehynds··on Uncss – Find unused CSS
I thought there should be a Broccoli plugin, and then I found this: https://github.com/sindresorhus/broccoli-uncss
ehynds··on Show HN: Crowdsourced salary prediction
I would also like to know that this isn't going to share the results to my profile.
ehynds··on Motherfucking Website
and by disabling pinch zoom on mobile.
ehynds··on Plugins you should put in your vimrc
Are they already open / matched by wildignore?
ehynds··on The New Digg Arrives Ahead Of Schedule
Digging through the source reveals a konami easter egg. Unfortunately all it really does is break the page though.
ehynds··on Stop Paying Your jQuery Tax
Where are you getting these numbers from?
ehynds··on Stop Paying Your jQuery Tax
You pointed out a few best-practices, but it's a shame that this article is written in the context of jQuery, rather than recognizing that these "taxes" are true with every script tag you place on your website.
ehynds··on Stop Paying Your jQuery Tax
The same is true whether or not you use a document.ready statement; you're thinking of window.onready, which fires once all images have been downloaded.
ehynds··on Stop Paying Your jQuery Tax
If all your scripts are before the closing </body>, the DOM will be ready by the time they execute, and you can safely ditch your legacy ready wrappers.
ehynds··on JQ.Mobi Is A Mobile-Optimized HTML5 Rewrite Of the JQuery Framework
"fully ready to use in production", with absolutely no unit tests, and when the question comes up it's immediately dismissed: https://github.com/appMobi/jQ.Mobi/issues/2

Skip.

ehynds··on Vim: revisited
And then your arrow keys are free to bind to something else useful, like moving between split windows, buffers, etc.
ehynds··on Poll: Do you get spammed by tech recruiters?
Nothing pisses me off more than when a recruiter calls my work line to pitch their openings, which they seem to be doing more and more lately. For that reason I vote #3.
ehynds··on Eclipse launches new language to cut down Java boilerplate - Extend
No one else is upset about the HTML 2.0 doctype on the examples page? WHERE IS THE OUTRAGE? http://www.eclipse.org/Xtext/xtend/#templateexpression
ehynds··on Walking man animation using only CSS3
Everyone forgets about -o-animate :(
ehynds··on Animate.css - a bunch of plug-and-play CSS animations
http://playground.benbarnett.net/jquery-animate-enhanced/
ehynds··on Google Launches The Ultimate Jobs Killer
A lot of Stop & Shops here in the Boston area have that too. Someone will randomly audit your shopping cart once every 10 trips so or to prevent theft, which is a hugh time-consuming PITA. Personally, the novelty wore off after the first use.
ehynds··on 12 Companies Hiring Developers in Boston
Brightcove is also hiring a RoR dev, a front-end architect, and many other software engineering positions: http://www.brightcove.com/en/company/careers. hollar at me.
ehynds··on [dead]
That's why you cache methods to reduce lookups.

http://jsperf.com/global-namespace-chain-vs-string-based-loc...

In your tests the method "add" is pretty far away from it's original variable, and MUCH further away than any jQuery method is, so you're also testing the time it takes to lookup that method. In jQuery, methods are either attached to "jQuery" directly or on the prototype.

ehynds··on Using Deferreds in jQuery 1.5
Not if things are in the cache, especially in IE. In this case the xhr will complete almost immediately.