News for hackers. Stuff that matters.

ehynds

Re:Is your electric bill going up? AI is partly to blame on Wednesday November 12, 2025 @03:49PM (#45906444)
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

Re:Ask HN: What are your passive income sources? on Wednesday October 26, 2016 @06:10PM (#12801137)
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.
Re:Debugging Node.js in Production on Friday December 04, 2015 @01:03PM (#10677900)
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.

Re:Debugging Node.js in Production on Friday December 04, 2015 @12:30PM (#10677650)
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() {
  });
Re:Debugging Node.js in Production on Friday December 04, 2015 @11:40AM (#10677311)
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
Re:Uncss – Find unused CSS on Tuesday May 20, 2014 @03:52PM (#7774789)
I thought there should be a Broccoli plugin, and then I found this: https://github.com/sindresorhus/broccoli-uncss
Re:Show HN: Crowdsourced salary prediction on Saturday March 22, 2014 @12:23PM (#7449654)
I would also like to know that this isn't going to share the results to my profile.
Re:Motherfucking Website on Sunday November 24, 2013 @05:08PM (#6791369)
and by disabling pinch zoom on mobile.
Re:Plugins you should put in your vimrc on Monday September 03, 2012 @11:03AM (#4470589)
Are they already open / matched by wildignore?
Re:The New Digg Arrives Ahead Of Schedule on Tuesday July 31, 2012 @08:21PM (#4320443)
Digging through the source reveals a konami easter egg. Unfortunately all it really does is break the page though.
Re:Stop Paying Your jQuery Tax on Friday February 17, 2012 @08:56AM (#3603261)
Where are you getting these numbers from?
Re:Stop Paying Your jQuery Tax on Friday February 17, 2012 @08:43AM (#3603215)
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.
Re:Stop Paying Your jQuery Tax on Friday February 17, 2012 @08:21AM (#3603158)
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.
Re:Stop Paying Your jQuery Tax on Friday February 17, 2012 @08:11AM (#3603138)
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.
"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.

Re:Vim: revisited on Monday December 12, 2011 @09:21AM (#3343577)
And then your arrow keys are free to bind to something else useful, like moving between split windows, buffers, etc.
Re:Poll: Do you get spammed by tech recruiters? on Thursday December 01, 2011 @05:57PM (#3301812)
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.
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
Re:Walking man animation using only CSS3 on Friday October 21, 2011 @08:37AM (#3139436)
Everyone forgets about -o-animate :(
Re:Google Launches The Ultimate Jobs Killer on Monday September 26, 2011 @09:10AM (#3038687)
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.
Re:12 Companies Hiring Developers in Boston on Thursday July 21, 2011 @03:30PM (#2790915)
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.
Re:How to write up to 98% faster JavaScript code. on Friday April 15, 2011 @04:09PM (#2452010)
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.

Re:Using Deferreds in jQuery 1.5 on Tuesday February 01, 2011 @11:42AM (#2166119)
Not if things are in the cache, especially in IE. In this case the xhr will complete almost immediately.