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

this makes it even more likely that it's the real code. Let's face it, no one is expecting a shining example of software design and architectural brilliance here

comment 12y ago · link · parent

Sadly the compile step is unavoidable if you want the contractual guarantees, but it's possible to use Contractual JS directly, without compiling it, so you could potentially avoid compilation during actual development.

comment 12y ago · link · parent

author here, this was my easter hack. You might find the online demo a bit more accessible: http://codemix.github.io/contractual/try.html

1144.

Show HN: Syntactic sugar for Design by contract in JavaScript.(codemix.github.io ↗)

1 points · by phpnode · 12y ago · discuss

comment 12y ago · link · parent

Turns out there's a sort of reasonable way to implement them in JavaScript, it's definitely hacky though - http://codemix.github.io/contractual/try.html

comment 12y ago · link · parent

Eiffel's contracts are really compelling, I wish there was a reasonable, non-hacky way to implement them in more mainstream languages.

comment 12y ago · link · parent

Because to be usable it needs to be fast (and portable), and for a long time those constraints basically meant C - possibly not any more.

But let's not kid ourselves, reimplementing a library the size of OpenSSL in a new language, or even the same one, is not a trivial matter. We're talking about a $10m+ investment, who's going to pay?

comment 12y ago · link · parent

Seems like you might be living in a bubble. Guess what - you don't have to have won the startup lottery to have personal autonomy, be financially independent or build a strong reputation.

Your reasoning is this:

I am extremely clever and I have a certificate to prove it!

I have chosen an extremely lucrative career.

Why don't people see how important I am? Where is my respect?

And then you say things like "I take pride in resenting those with undeserved success", "They're a cancer. I'm the chemo." and "most of [my failures were] not my fault".

Do you think statements like this foster respect for you?

Would you respect you?

comment 12y ago · link · parent

that's good but it's missing something - what is the transport format?. I think this powerful new technology called XML would be ideal for data interchange, we could just append 'and XML' to the name?

comment 12y ago · link · parent

this one is motorized too

comment 12y ago · link · parent

I'd imagine that these desks cost roughly the same amount to produce and the only reason they're ~£400 is because it's a relatively niche product and is sold through a reseller, not direct.

comment 12y ago · link · parent

Looks nice but not really revolutionary, I've had one of these for a year http://www.heightadjustabledesking.co.uk/index.php?_a=viewPr... which looks basically identical and is quite comparably priced.

comment 12y ago · link · parent

yes, because theirs was a cheap marketing stunt, rather than a principled stand.

comment 12y ago · link · parent

> he doesn't believe homosexuals should be allowed to marry.

No, we cannot even infer this much, all we know is that he donated to a political cause. We know nothing else, can we stop the bullying now please?

comment 12y ago · link · parent

Regardless of the merits of taking a public stand against this kind of thing, you, and the other people speaking out against Eich are making a Fundamental Attribution Error [0].

The fact that Eich donated in support of prop 8 does not necessarily make him a homophobe. The only thing we see is the donation and none of the context around what made him decide to do it. He has denied being a homophobe and there have been no reports of any homophobic behaviour. The only thing we actually know is that he made a donation to a political cause that the majority of the voting public also agreed with. Is it fair to say that every single one of the 52%[1] of voters in support of prop 8 are homophobes? Plainly the answer is no.

[0]: http://en.wikipedia.org/wiki/Fundamental_attribution_error [1]: http://en.wikipedia.org/wiki/California_Proposition_8_(2008)...

comment 12y ago · link · parent

I notice that your site uses JavaScript. Did you know that Brendan Eich invented JavaScript? For consistency, you should not only remove JS from your site but also boycott every other site that uses it, including this one.

comment 12y ago · link · parent

Does making a one time donation to a political organisation really constitute "anti gay activism"?

comment 12y ago · link · parent

What about all the distributions that don't include GNU, or those that only include a tiny proportion of GNU code, is there a chart that includes those?

comment 12y ago · link · parent

FAO amurmann - you made a slight faux pas in HN etiquette[0] and were sentenced to over 1000 days of purgatory without your knowledge. Almost no one can see your posts and no one at all can reply to them. For literally years. Sorry about that!

[0] https://news.ycombinator.com/item?id=2385595

comment 12y ago · link · parent

At $0.5/month it's pretty cheap in fact. But while the price per picobyte might be higher than AWS, I feel a lot more comfortable using something that has been purpose built for the task by a legitimate genius. The whole point of backup is to be able to sleep at night, I don't want to cut costs here.

comment 12y ago · link · parent

I also spent around 50 cents / month on tarsnap, at this rate my account credit will last another 7.5 years! Colin your service is great, I would pay orders of magnitude more for it, please increase your price so that I don't have to worry about it going away!

comment 12y ago · link · parent

Republic of the Philippines

comment 12y ago · link · parent

I'm working on a product in a similar space to prismic, and as a developer myself, this would also be a concern for me. The way we plan to approach it is offering a self hosted version of the product, and committing to an open source warranty so that if something went wrong with the company the product could live on. Would these kind of measures make you feel more confident?

comment 12y ago · link · parent

wow, does anyone apart from facebook and the government actually want facebook to do this? it's pretty terrifying

comment 12y ago · link · parent

I think it's a combination of having a broad range of skills, experience and not being at all afraid to call bullshit bullshit. He's polite but focusses on getting stuff done and not the minutiae. If you have the opportunity to work with him, take it!

comment 12y ago · link · parent

if you've ever met Jacques you'll know that he's one of those people who can jump into just about anything and be productive straight away

comment 12y ago · link · parent

because the grass is greener on the other side?

comment 12y ago · link · parent

no need to wait! http://regex.info/blog/2006-09-15/247

comment 12y ago · link · parent

Ling is a marketing genius - that site is incredibly successful
1
383940
53