Better HN
topnewbestaskshowjobs
Log inSign up

ehynds

56 karma · joined Jan 31, 2011 (15y ago) · 28 submissions

Submissions

comment 1y ago · link · parent

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

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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() {
  });

comment 10y ago · link · parent

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

comment 12y ago · link · parent

I thought there should be a Broccoli plugin, and then I found this: https://github.com/sindresorhus/broccoli-uncss

comment 12y ago · link · parent

I would also like to know that this isn't going to share the results to my profile.

comment 13y ago · link · parent

and by disabling pinch zoom on mobile.

comment 14y ago · link · parent

Are they already open / matched by wildignore?

comment 14y ago · link · parent

Digging through the source reveals a konami easter egg. Unfortunately all it really does is break the page though.

comment 14y ago · link · parent

Where are you getting these numbers from?

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

"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.

comment 14y ago · link · parent

And then your arrow keys are free to bind to something else useful, like moving between split windows, buffers, etc.

comment 14y ago · link · parent

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.

comment 15y ago · link · parent

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

comment 15y ago · link · parent

Everyone forgets about -o-animate :(

comment 15y ago · link · parent

http://playground.benbarnett.net/jquery-animate-enhanced/

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

Not if things are in the cache, especially in IE. In this case the xhr will complete almost immediately.