HNHacker News
TopNewBestAskShowJobs

IsaacSchlueter

3,218 karma · joined May 22, 2008

I'm isaacs from Node and npm and JavaScript and stuff.

I don't look at this site much.

http://blog.izs.me/

https://bsky.app/profile/isaacs.bsky.social

https://www.reddit.com/user/isaacs_/

submissionscomments
IsaacSchlueter··on It's official: developers get better with age. And scarcer.
> Since I don't see this specifically addressed in the text: I suspect this is a classic case of survivorship bias.

The text didn't seem to do much besides present the stats. But he say this:

    I knew that with age coders tend to switch careers, but I
    was surprised to see the size of the drop. After the peak
    age of 27, number of developers halves every 6 to 7 years.
I figured that "survivorship bias" was sort of the exact point he was trying to make. Beyond that, there's really no discussion of causation (getting older makes one more "mature" or whatever), so I think it's implied that weeding out less committed devs is exactly what's going on.
IsaacSchlueter··on Node.js is Backwards
> Like what? I hear this argument all the time, but it's always unsubstantiated.

Have you ever done it? It's very comfortable. It reduces one element of friction in the daily thought-work of the programmer.

By the same token, a comfortable chair or nice text editor won't turn an amateur into an all-star programmer in the absence the other important stuff (smarts, work, etc.) It can be a huge waste of time to fret over your editor or your chair adjustments. But that's not going to make me less likely to sit in a nice ergonomic chair and use vim rather than notepad.

Comfort isn't everything, but it's certainly not nothing.

IsaacSchlueter··on Node.js is Backwards
Since the early days of node?

Node's first commit:

    commit 9d7895c567e8f38abfff35da1b6d6d6a0a06f9aa
    Author: Ryan <ry@tinyclouds.org>
    Date:   Mon Feb 16 01:02:00 2009 +0100
    
        add dependencies
How old is Erlang? 25 years or so?

> What happened to this?

There's been some preliminary stuff on giving spawned node processes a more slick API, with the intent of then being able to optimize them in some way.

Whether or not it'll end up at the WebWorker API is yet to be seen, but that'd certainly fit with node's "don't reinvent BOM conventions where they fit" pattern.

IsaacSchlueter··on Npm 1.0 is out
There was such a warning originally, but it didn't wait to ask you if you wanted to continue. Now it does.

The problem with just automatically re-installing those is that npm 0.x only had a global install space, and that was typically used for modules that were loaded via require().

In npm 1.0, you put require()-able modules in the ./node_modules in your project (local install), and you usually want to install CLI apps globally, so that their bins end up in /usr/local/bin. The 'npm link' command puts packages in the global space, and then symlinks them locally.

See `npm help folders` for more info on the differences.

There's no way for the install script to know what you were doing with each of those. Just cat'ing the list to `xargs npm install` isn't very helpful, because that's going to just install them in ./node_modules.

What you really want to do is use your human brain to split that list into two lists, and decide where each item should go.

IsaacSchlueter··on [dead]
We're not using the Zed word.
IsaacSchlueter··on Your IP. In JSON
Parsing text is too hard. It'd be easier if it was in JSON.
IsaacSchlueter··on The Node Ahead: JavaScript leaps from browser into future

    npm install fibers
Also, node's cb-passing stuff is pretty close to the very canonical examples of CPS in Scheme, so I'm not sure what you mean by it not having continuations.
IsaacSchlueter··on How Deaf People Think
I'm a native english speaker, and I don't dream in english, or any specific language for that matter. When I reconstruct the dream later, I put the characters' thoughts into words, but at the time, it's just telepathy.

Maybe I'm just weird.

IsaacSchlueter··on How Deaf People Think
Good article. One correction, however:

One of the big differences between ASL and many other sign languages is that ASL primarily uses only hand gestures, whereas most types of sign languages, such as BSL, rely heavily on facial expressions and other physical expressions outside of hand and finger gestures.

ASL places a lot of importance on facial expressions and body position to express tense and grammatical concepts. Many signs are a combination of a mouth morpheme and a hand gesture.

If you just do the hand-shapes, fluent signers will probably be able to understand you, but it would be the equivalent of mispronouncing words in a spoken language, or constructing sentences awkwardly.

IsaacSchlueter··on Are Semicolons Necessary in JavaScript?
Unless you can name a minifier that actually breaks in this case, I'm gonna have to call BS on this.
IsaacSchlueter··on Jspp: A JavaScript Pre-Processor

    <html>
      <body>
        <div class="test1">
          <pre>
          <?jspp
          dicks = require("dicks").dicksSync(10)
          $(this).html( dicks.join("\n") )
          end()
          ?>
          </pre>
        </div>
        </body>
    </html>
IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
How so? I missed the part where I wrote about swiss water.

Mr. Chess, I both admire and fear the potency of your absurdism. I would compliment you further, but I am too afraid.

IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
It's also completely valid JavaScript that does something very different than what it appears to.

    function getCount () {
      return undefined
      { // open code block
        'count': /*labelled line*/  1  //numeric expression
      } // close code block
    } // close function
LINE BREAKS CONSIDERED HARMFUL.
IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
Read it again.

I spent significant chunk of the post explaining that a) I don't care how you code, and b) there are some good reasons to choose a different style than mine.

I'm asking JS thought leaders to stop encouraging falsehood. That's all. "Don't code like Isaac because it's ugly." Fine. I can dig that. Maybe you won't date me because you think my face is ugly. You wouldn't be the first one, and thankfully for my social life, it's not a universally held opinion.

But "don't code like Isaac because ASI is unreliable and no one understands it"? Patently false, and OMG PEOPLE ARE WRONG ON THE INTERNET.

This is so far beyond goofy. Don't we have jobs or something? Who posted this? Jeez. Get that guy something better to do.

IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
npm is a hobby project designed to bring me joy. As a side-effect, a lot of node users find it helpful. That's great, and I'm proud, but honestly, if everyone stopped using it, I'd keep hacking on it.

A little boy may grow up to be the doctor who cures cancer. But that's not why you have children.

IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
I completely agree. I really don't care how anyone writes their code. I care about self-described experts giving false information about the language to newcomers.

If there is pedantry, it is about the importance of either telling the truth or shutting up.

IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
Thanks :)
IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
My recommendation to use minimal semicolons is a very weak suggestion. I took great care to make that clear, and to point out a few cases where it makes perfect sense to use more semicolons than strictly necessary.

My recommendation against lying is much more forceful.

IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
I do this as well.

For a while, I tried to stick to the rule that "return\n" was not allowed. When I meant to return undefined, I'd write "return undefined".

In the end, I abandoned that rule, because too many of my functions return undefined. But it's kind of a nice thing. When I do get around to building that linter, I might make `return\s*\n` verboten.

IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
I have a friend who is dysgraphic. His writing is basically 100% phonetic. To read it, I find it easiest to read it out loud, and listen to myself talk. This reminds me of that.
IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
I would be ok with leaving the semicolons off, if you didn't have to do ridiculous things like prepend some lines with semicolons instead. It's easier for everyone just to put the damn semicolons in.

It'd be nice if I had a linter to catch things like this. But really, it's not so hard to spot. I was bitten by missing semis often enough to start prepending [ and ( already, before I started just leaving them out entirely.

No one's going to cry if you don't contribute to npm. When I contribute to your project, I'll follow whatever style you like, and if I find it to onerous, I'll move on. Life is tradeoffs.

IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
I don't mind you telling people to end lines with semicolons.

I'd mind it if you told people that omitting semicolons causes cancer. (Or bugs.)

-- EDIT:

I just looked up your book to the point where you make this recommendation. You don't threaten any catastrophes, which is good. I disagree with the "complex and weird" conclusion, but it's certainly a valid decision to leave them out of the book if you'd rather not go into it.

My opinion of you: Not Evil. <3

IsaacSchlueter··on An Open Letter to JavaScript Leaders Regarding Semicolons
If you are a Maverick, then that's fine. Write code however you like. Seriously, I care less than anyone.

Just stop talking trash about how I do things. If the story is more interesting than the grammar, then shut up about grammar and go back to writing stories.

My problem is with telling people that there is a problem when there is no problem, and at the same time calling yourself a scholar.

IsaacSchlueter··on Phrases that announce ‘I’m lying‘
The first thing that happens when you start being honest is that you realize what a dick you really are. Once you see that, you get to change it, instead of hiding it like all the sleepwalkers.
IsaacSchlueter··on Phrases that announce ‘I’m lying‘
Fun 1-month social experiment

Carry around a notepad.

Week 1: Every time you say "but", make a mark. Don't try to change anything, just keep track.

Week 2: try to not say "but", ever.

For weeks 3 and 4, do the same thing, but with commas.

Periods are more powerful than commas.

Weak: "Look, to be honest, I don't know why the server crashed, but I'm doing what I can to find out."

Strong: "I don't know why the server crashed. I'm working on finding out."

Weak: "I'm not saying the deal's off, but unless we can sort out clauses 3 and 4, I don't see how we can move forward."

Strong: "Clauses 3 and 4 are blockers. I would like to figure them out so we can move forward."

Weak: "I'm not saying your brother is fat or lazy, just that he could do with some more exercise and maybe get a job."

Strong: "Your brother is fat and lazy. He should get a job and lose weight."

Weak: "I know it's none of my business, but she could do a lot better."

Strong: "I don't like her boyfriend. Luckily we're grownups and don't have to agree on everything."

For every person who is shocked and offended by this approach, two people will respect and trust you for it. It's a net win.

IsaacSchlueter··on When we got to the scanner, I opted out. Then they opted out.
And if it does, it's your responsibility.

Your desk lamp doesn't emit X-Rays, you don't force droves of people to stand underneath it, and no oncologists ever told me to be wary of your desk lamp until it has received further study.

So, yeah. Not the same thing. Not even remotely. In fact, your analogy is a bit silly.

IsaacSchlueter··on Show HN: Review my project: MarkUp, a tool to draw on any webpage.
http://dev.markup.io/v/fz1jwz3xv8nz
IsaacSchlueter··on Node.js memory benchmark confirms V8's GC may not be ready for the server
Maybe you could change it to "Not as optimized as Rhino to parse JSON under heavy load."
IsaacSchlueter··on Node.js memory benchmark confirms V8's GC may not be ready for the server
I'm not yet convinced this is due to GC. Sent a pull request[1] to Hannes to use the faster Buffer technique, to at least rule out the interference of v8's crazy slow string juggling under load.

1: http://github.com/hns/ringo-node-benchmark/pull/1

IsaacSchlueter··on Why is a bag of weed always $10 (man)?
Did any of you actually read the text? The Economist's answer is hilarious.
← PreviousPage 7 of 22Next →