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 13y ago · link · parent

Just curious, do you really make more money as a photographer than as a developer? Or is one firmly work and the other firmly hobby?

comment 13y ago · link · parent

1. speed is relative. it's possible for fast things to go faster. JavaScript as it stands is fast enough for a lot of tasks, ASM.js makes it faster in certain places. This can only be a good thing.

2. The market isn't saying JavaScript needs to go, JavaScript skills are high in demand, more so than ever.

3. This is the crux of your misunderstanding. I agree it would be nice if browsers supported e.g. LLVM out of the box. But they don't. And for political reasons they won't. If a company as large and powerful as Google cannot push NaCl adoption at all in other browsers (and NaCl was announced in 2008, so we're already half way to 10 years), how will you get them to adopt $YourVMofChoice? This is where ASM.js really wins - it is a subset of JavaScript, so it already works in other browsers, albeit without the performance boost and it is much easier for browser vendors to implement support for ASM.js than it is a whole new VM. Being backwards compatible means more web developers are likely to use it which will put pressure on other browser vendors to implement it. No one is arguing that ASM.js is a better technical solution to the problem, but it is a much better practical solution to the problem.

4. So this is another thing. Most of the people who are against ASM.js seem to dislike JavaScript the language. But ASM.js would free you from JavaScript almost entirely. The only time you'd see it is when you're debugging the "bytecode", and surely human readable bytecode is nicer than whatever something like LLVM spits out? Anyway, it seems like slightly curious reasoning.

comment 13y ago · link · parent

ugh. I am so sick of this "build a proper VM" wailing. It is such a naive and ignorant position. It completely ignores the reality of the market. JavaScript is dominant, it is fast, it runs on basically every device, browser vendors are deeply invested in it and you want to throw all that away and start afresh? ASM.js is a realistic way to get better performance today, not in the 10 years or so it would take for a new platform to reach acceptable adoption rates. And who's to say that some new "proper" VM wouldn't end up with warts like JS has anyway?

comment 13y ago · link · parent

math0ne: your account has been dead for very nearly 5 years, this must be some kind of record.

comment 13y ago · link · parent

crashed my entire PC on chrome, mint-linux 64bit

edit - likely a webgl problem that I've brought upon myself by disabling the gpu-blacklist

comment 13y ago · link · parent

maybe they've closed these holes, but click fraud has been an issue every since the earliest days of banner ads, so I'd be really surprised if it has been eliminated completely.

comment 13y ago · link · parent

> If he was a full-time employee in the US, a contract wouldn't be necessary for this to be an issue.

Right, but you can still address this when you're negotiating the terms of your employment.

> Certainly most companies will not grant you a blanket right to open source all of your work for them

agreed, but many companies will be ok with open sourcing individual components, especially if it's done so under their name.

My point is this is another tool for you to use at negotiation time when they've reached a limit on price / other benefits.

comment 13y ago · link · parent

That's a shame. This serves as a reminder to us all to be very careful when signing employment contracts. We're fortunate enough to be in an industry with huge demand for talent at the moment, so in addition to salary / benefits, things like having the right to open source your work should be included in your negotiations. In my experience, most good companies are OK with it.

comment 13y ago · link · parent

thanks, that was interesting and it's obvious how it can be useful. but for some reason it still feels dirty.

comment 13y ago · link · parent

looks nice, but one thing I really don't get is how

    <a ng-click="modal.saved=true;dismiss()">...</a>
is any different to

    <a onClick="thisIsAnAntiPattern()">...</a>

I'm all for declarative code but isn't stuffing javascript in html attributes something we learnt not to do about 10 years ago? Why the resurgence?

comment 13y ago · link · parent

schraeds your account has been dead for 11 months :(

comment 13y ago · link · parent

hfs - your account has been dead for > 200 days

comment 13y ago · link · parent

thanks for the suggestion, but using their online calculator it looks like they'd charge me £300+ / month for something I currently get for £~20

comment 13y ago · link · parent

i'm working on a project that does this with doc comments. Basically you add a doc block like this:

    ###
    @it should return true
      expect(foo()).to.be.true
    ###
    foo = -> true
and the preprocessor extracts the test from the comment and associates it with the foo declaration.

comment 13y ago · link · parent

don't you find it a little painful to write code like that? When literate mode was first announced I had a go re-writing some small scripts in that style and for some reason I found it a bit of a chore, especially when commenting on just one or two lines. I've been using

    ###
    comment blocks
    ###
instead and I find that more readable, especially when dealing with indented code, e.g. a class body.

Edit - here's an example of some coffeescript written in this "illiterate" way, i'm using it with a (work in progress) preprocessor that spits out tests, html, markdown etc - https://gist.github.com/phpnode/2bf86b9633032a51d036

comment 13y ago · link · parent

marketing.

comment 13y ago · link · parent

looks nice, but why doesn't it just extend the core array type? (I mean with a "class", not by adding things to Array.prototype). That way things like Array.isArray() still work. Am I missing something?

comment 13y ago · link · parent

I think it depends how many sites you own, if you only own one then you'll probably be prepared to part with a lot more than someone who manages a load of different sites. Anyone tackling this market should probably set up 2 sites offering the same service branded and priced accordingly.

comment 13y ago · link · parent

interesting, but would you walk away if it was $20? or $50? What is the commercial value of a nice favicon?

comment 13y ago · link · parent

you're right in that I should have checked first, and really if you think about it it's no surprise that YouTube, Yahoo, Google etc are using their own tools. That does not detract from the point that jQuery has massive, ridiculous mind share and completely dominates the web though. Your point about it being impossible to build a gmail style app in jQuery is extremely dubious. There are an awful lot of complicated JS apps built on jQuery.

comment 13y ago · link · parent

but still the majority of them do, by a wide margin. I don't even know why you're debating this, it's completely obvious that jQuery has by far the largest mindshare.

edit: ok now I get it, I had a look at your website. You like Closure so jQuery must suck, right? Also I would be in the hospital after 5 shots....

comment 13y ago · link · parent

Clearly you have some kind of issue with jQuery but just because you don't like it doesn't make it any less popular, useful or prevalent. Here's a fun drinking game - open up the top 1000 websites and do a shot for each one that uses jQuery. You will be in hospital by about #20 I think.

comment 13y ago · link · parent

Backbone, Angular, Meteor etc etc ALL use jQuery!

comment 13y ago · link · parent

I don't think he's living on his own planet, he's actually right - jQuery runs the client side web. Not for everyone but easily 90% of sites (that actually have javascript functionality at all) will use jQuery

comment 13y ago · link · parent

did coax ethernet ever work reliably? I remember spending entire days fiddling with cables and terminators trying to get multiplayer quake to work over a network, we almost always had to resort to (very slow) serial ports instead.

comment 13y ago · link · parent

very nice, are you going to offer colos from there? that is about 6 minutes up the road from me!

comment 13y ago · link · parent

Yeah there's not much of a startup community down here in York, it is much nicer than Newcastle but also more expensive on average. We really need a HN meetup in the north(ish) east.

comment 13y ago · link · parent

(replying to myself because I can't reply to stch directly):

What does that mean/how does it affect me?

It means that only people who have specifically turned "showdead" on can see your posts. No one can reply to you posts directly. Your upvotes do nothing and don't count. But crucially, to you, everything seems completely normal.

And howd that happen?

An administrator decided that your first ever comment didn't fit the tone of this site (which it didn't, but well, you were new), so they decided to instantly and silently ban your account forever. So you have been commenting, for a year, and basically no one has seen your posts. I feel really bad about that and I hate this objectionable practise.

comment 13y ago · link · parent

stch - your account has been hell banned, for nearly a whole year.
1
424344
53