News for hackers. Stuff that matters.

ljharb

Re:Pipe Operator (|>) For JavaScript on Monday January 30, 2023 @12:47AM (#34576223)
it, _, result, and $ are all valid identifiers already; the only choices would have to be syntax errors currently.
Re: on Tuesday December 06, 2022 @10:37PM (#33890377)
npm doesn’t offer these things, so it’s not a useful comparison.
substack isn't a startup, it's a human being. Regardless of something being pg's "take", that doesn't make what you've done here ethical, or good for the ecosystem, or good for your company. (Separately, if you don't have the .com OR the twitter handle, change your name)

Change your name, how about?

Re:Why we have banned default exports in JavaScript on Thursday November 23, 2017 @12:00PM (#15766315)
default exports are precisely as tree-shakeable/dead-code-eliminate-able as named exports; this topic just isn't remotely relevant to the discussion.
Re:Why we have banned default exports in JavaScript on Thursday November 23, 2017 @11:45AM (#15766184)
A default export is what a module is; a named export is what a module has.

Both tools are useful; both are necessary; most modules should have a single default export.

Re:Why we have banned default exports in JavaScript on Thursday November 23, 2017 @11:43AM (#15766168)
1) you should be consistent, it's not your place to force users of your code what to name things 2) `import { foo as myBetterName } from 'path'`; your argument (about consistent names) is invalid :-p
Re:Node v4.0.0 on Wednesday September 09, 2015 @09:13AM (#10191185)
nvm maintainer here: this is true - but please use `node`, since the concept of "stable" and "unstable" has died with the advent of node v4.0 using semver.

All node versions are now stable, and version numbers now communicate breakage, not stability. As it should be.

Re:Node v4.0.0 on Wednesday September 09, 2015 @01:29AM (#10189868)
nvm maintainer here: you do not need the `v`, it will always be automatically added if you've provided a version number that doesn't already match to an existing alias.
Re:Node v4.0.0 on Wednesday September 09, 2015 @01:29AM (#10189861)
nvm maintainer here: the only thing that's done over HTTP is the initial redirect on http://nvm.sh, which will soon be HTTPS. This URL is only used if you type it in (because it's easy to remember).

Everything else is done over Github's super-secure HTTPS - so there's really nothing to be paranoid about.

Re:Should I Pick jQuery? on Friday January 31, 2014 @12:57PM (#7157979)
Re:Ask HN: Recommend an IDE for noobs/novices? on Friday October 01, 2010 @04:34PM (#1748584)
I use Panic's Coda for PHP, CSS, JS, and very lightly for Ruby on Rails. It needs code folding and git integration, but otherwise is quite pleasant to use and doesn't take up very many system resources.
Re:Ask HN: Subscription Payment Gateway? on Thursday January 14, 2010 @03:40PM (#1053542)
Recurly.com
Re:Still can't decide on a Payment System. Please HELP on Thursday January 07, 2010 @04:11AM (#1036763)
I'm about to implement Recurly http://www.recurly.com/ on my own site, on top of PayPal Website Payments Pro.

Recurly abstracts my gateway's API stuff and stores payment details so I'm not tied to my gateway - much like I wouldn't use a Comcast email address to have the freedom to change TV providers.

Worth a try. Note: I'm a potential customer of theirs and have no other affiliation.

I like it - but ABSOLUTELY turn off autoplay. Autoplay is the devil.

Don't force choices on users by playing audio for them - and if someone doesn't know how to push "play" then they don't deserve to hear music.

You should make an Amazon EC2 image and offer an already set-up service (with maintennance and whatnot) for 110% the cost of EC2. That gives me a low barrier to trying it out (it should cost me like 20 bucks for a low usage trial or less) before making the time commitment to install it.