Better HN
topnewbestaskshowjobs
Log inSign up

phpnode

7,416 karma · joined Oct 23, 2009 (17y ago) · 1,582 submissions

Founder of https://codemix.com/ - authoritative product context which makes sure coding agents build the right thing and humans stay in control.

Email: charles@codemix.com

Submissions

comment 9y ago · link · parent

Take something like Google Search, a service that is ad-supported but is free to use and produces an enormous amount of value for virtually everyone on the internet. What is their business model in a post-adwords world, where they've been forced to adapt? Presumably they'd have to charge for it, which means that the poorest people on the internet would not have access to this amazing tool that we take utterly for granted now. No one likes (poorly targeted, invasive) ads, but is that world preferable?

comment 9y ago · link · parent

Isn't android effectively that?

comment 9y ago · link · parent

The insistence that Linux be called GNU/Linux when even Linus calls it Linux is exactly the kind of behaviour that alienates people who would otherwise align with them.

There is also no requirement that a Linux distribution includes any GNU software at all, should we refer to them as e.g Busybox/Linux?

comment 9y ago · link · parent

Traceur has been around for years, much longer than Babel, it's a Google project but afaik it's mostly the work of one person

comment 9y ago · link · parent

In the mean time, Talk Talk advise their customers that there is "no need" to change their passwords: http://www.bbc.co.uk/news/technology-38223805

comment 9y ago · link · parent

It's common to sanitize a commit history before making code public. Old commits can contain potentially sensitive information, like certs committed by mistake and later removed, db dumps used for testing that contain unsanitized data, commit messages could be some value of unprofessional that you don't want to share with the world, that kind of thing.

comment 9y ago · link · parent

This looks like a nice idea but it's a bit unfortunate about the name clash with https://github.com/rpominov/static-land

Edit: Dear downvoters, normally it'd be unlikely for the name clash to matter, but because these are both JS libraries, both available on npm, it's the difference between `npm install static-land` and `npm install staticland` which would be an easy mistake for anyone to make.

comment 9y ago · link · parent

It's an out and out money laundering service. It exists for no other reason, there are no legitimate circumstances where someone would want or need to sell amazon gift cards at less than their face value. It is straight up money laundering and it's frankly incredible that it's lasted as long as it has.

comment 9y ago · link · parent

when

comment 10y ago · link · parent

How would that work?

comment 10y ago · link · parent

Is that processor more or less powerful than the processor in this laptop?

comment 10y ago · link · parent

even if you live in a terminal all day 1280 x 720 is just too small to be practical.

edit - I too once basked in the warm rays of a 320x200 CRT, it's OK at the time if that's all you've ever experienced, but it's hard to go back to that from 4k.

comment 10y ago · link · parent

Yes, I noted that in the PR. It's easy to fix it, why don't you try?

comment 10y ago · link · parent

Here's a PR that fixes this issue - https://github.com/threepointone/markdown-in-js/pull/2

comment 10y ago · link · parent

Presumably they've thought this through before announcing it.

comment 10y ago · link · parent

These are closure type annotations - https://github.com/google/closure-compiler/wiki/Annotating-J...

comment 10y ago · link · parent

Unfortunately your example won't work. You can't use a primitive value as a key in a weak map, which negates many of their possible use cases.

comment 10y ago · link · parent

That's a grossly unfair mischaracterisation of the piece, did you actually read it?

comment 10y ago · link · parent

This project is something that people spent a long time creating, they put in a lot of hard work and they offered it to you for free. They obviously do care a lot about accessiblity, it's evident from their website. If you found a problem with a particular screen reader, did you open a github issue? What was the name of the software? Did you follow all of the accessibility guidelines? Did you engage with the authors and ask them for help? Or did you simply register a new HN account with which to insult and diminish the hard work that these people gave to you in good faith and for free?

comment 10y ago · link · parent

This isn't a very helpful comment, what do you mean?

comment 10y ago · link · parent

The milkman is still a thing in the UK at least, but certainly dwindling.

comment 10y ago · link · parent

GP is making the point that not all CPUs have a cache.

comment 10y ago · link · parent

I like that the punishment for Man who stole coffee and spanners from Poundland was that he had to stay in court until 5pm that day. Truly that is justice.

comment 10y ago · link · parent

> I find it very interesting that commenters from countries where cycling is decidedly unsafe are going to lecture those from countries where the predominant mode of transportation is the bicycle on safe cycling practices

This is exactly the point though. The guidelines that apply in the Netherlands are different to the guidelines in, say, the UK, precisely because the two countries have very different attitudes towards cycling. In the Netherlands you have an environment where cycling is extremely common, motorists are very used to sharing the roads and in fact most motorists are also cyclists themselves. This dramatically reduces the sort of us vs them conflicts between cyclists and motorists that seem so common in other countries. Different types of road user are seen more or less equally and show each other a level of respect that is just about unheard of elsewhere. In such an environment, hogging the lane seems unnecessarily aggressive because you simply don't need to do it.

In the UK, USA and just about everywhere else motorists are simply not used to driving close to cyclists. They don't know how much space to leave, they don't know how to pass them safely, it's actually socially acceptable to be aggressive towards cyclists but most of all, motorists are not on the lookout for cyclists, they are not expecting them. In this kind of environment the cyclist's number one priority is to make themselves seen and that's why being assertive is so important.

If you're in the middle of the lane by default the car behind you might be annoyed but at least they are likely to see you, and when you've been seen you can then move closer to the kerb to allow them to pass you safely. This puts the cyclist in control in a situation where they'd normally be at the mercy of motorists.

comment 10y ago · link · parent

Computerised spreadsheets were inevitable, we've been using spreadsheets in some form for thousands of years. Visicalc is recognised as being the first, but Excel has been the dominant product for decades now, for all its warts it has had a massive impact on humanity.

comment 10y ago · link · parent

Cool article. I'm the author of https://github.com/codemix/babel-plugin-typecheck mentioned and the next version of the plugin (WIP) takes this kind of approach, so that you can reference a type at runtime:

    type User = {name: string, isAdmin: boolean};

    // compiles to
    const User = t.object(
      t.property('name', t.string()),
      t.property('isAdmin', t.boolean())
    );

    // which you can then use with
    User.check({name: 'Alice'}); // boolean
    User.assert({nom: false}); // throws

Ultimately it should be possible to use this to implement pattern matching in JS based on flow types, for example:

    type User = {
      name: string;
      roles: Role[];
    };

    type Role = {
      id: number;
      name: string;
      users: User[]
    };

    const url = match(someInput, 
      (user: User) => `/users/${user.name}`,
      (role: Role) => `/roles/${role.id}`,
      (_) => `/` // default URL
    );
The really hard thing is to do this whilst maintaining perfect compatibility with flow.

comment 10y ago · link · parent

It's a full dress rehearsal, the only difference between static fire and a real launch is that they do not release the hold-down clamps and shut down the engines instead. The cameras would have been rolling.

comment 10y ago · link · parent

> Aren't the Babel people trying to define a common standard format for the AST so different parsers and code generators can better work together?

Actually kind of the opposite - babel used to use the common ESTree AST format, but they've moved away to something similar but incompatible.

comment 10y ago · link · parent

It's not a random sequence of characters, there are only 12 words in there. The cracker is trying words, not just random bytes and so the search space is much smaller

comment 10y ago · link · parent

Rainbow tables aren't really a thing any more, you can calculate a hash much faster than you can download one
1
232425
53