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

> that's never going to happen anymore

Give it 15 years...

comment 7y ago · link · parent

> the only person I know personally who retired so early is wildly successful. Far more than he was at work.

If he's wildly successful, did he really retire?

comment 7y ago · link · parent

it's simple enough that it has probably been rediscovered independently many times throughout history.

comment 7y ago · link · parent

In my FB interview I was told I wasn't allowed to run the code, which seemed completely ridiculous to me. It was even more frustrating when my interviewer told me I'd missed an edge case when I was certain I'd covered it - I'm still not sure who was right.

comment 7y ago · link · parent

Yes indeed, much easier. The problem is that the places where you need desalination tend to be the places without much rain.

comment 7y ago · link · parent

Pattern matching is a really important feature but I strongly dislike that proposal because it feels like it introduces a bunch of single purpose syntax that's going to restrict the ability to evolve the language in future. It feels like it's an addon, not a holistic solution.

I would much, much rather that type annotation syntax gets standardised first, because it is comparatively easy to build pattern matching when that's in place but going the opposite direction is difficult. What is a type if not a pattern?

comment 7y ago · link · parent

In practice this would be

    <twitter-tweet id="424242424242"></twitter-tweet>

What you're saying is true only for the simplest of components.

comment 7y ago · link · parent

They totally changed the API once already, renaming their initial implementation "v0".

comment 7y ago · link · parent

> Who is promising that?

This was very much the narrative back when WCs were first announced / released. If that's no longer a focus then what is their selling point now?

comment 7y ago · link · parent

Because there's essentially nothing to leverage. The one thing that they promise (interoperability between frameworks) is both not true in my experience and not compelling enough to warrant the massive amount of complexity required to work around their shortcomings. If you want nightmares go read Polymer or Oracle JET's source code, both are WC based frameworks, both had to go to extreme lengths to offer a semi-reasonable end user API.

They solve the wrong problem the wrong way. The creator of Ember recently tweeted about this: https://twitter.com/tomdale/status/1153309794226147330

comment 7y ago · link · parent

This article is about the UK where the NHS has been chronically underfunded for the last decade.

comment 7y ago · link · parent

Yes, yes it is.

comment 7y ago · link · parent

Looks a lot like css in JS to me, have you considered simply using the platform instead?

comment 7y ago · link · parent

On this planet it is possible to do runtime type validation with typescript. It's not an out of the box feature but a number of libraries allow it, e.g. https://github.com/gcanti/io-ts

comment 7y ago · link · parent

This is amazingly common unfortunately

comment 7y ago · link · parent

From experience, so many things that graph dbs are not worth the effort in something like 99% of cases. Stick with postgres or similar if you can!

comment 7y ago · link · parent

I've seen a number of comments like this over the last few days and I don't really get it, gamers use the internet right? Vast overwhelming majority of them are going to be running javascript programs hundreds of times per day

comment 7y ago · link · parent

only? 11°C is huge!

comment 7y ago · link · parent

It's to keep the drone as far away from landing hazards as possible - you don't want someone accidentally losing a finger to a rotor or the drone crashing through someone's window or landing in a location it's likely to get stuck.

comment 7y ago · link · parent

Pretty low.

comment 7y ago · link · parent

Webpack is virtually indispensable, it has a poor reputation because the docs weren't great in v1.x and because it takes some effort to understand and configure correctly. When it's configured it's rock solid and it rarely needs touching again.

I have this theory that people dislike it because that complexity comes front loaded - the most fun part of any new project development is right at the start and if you're spending time setting up webpack then the developer perceives that as frustrating time wasted rather than an investment in the project that pays off long term. A big part of create-react-app's success is because it means the developer can get started right away and not have to worry about that.

comment 7y ago · link · parent

Companies are made of people and people inevitably screw up. Cloudbleed made Cloudflare more trustworthy in my eyes simply because of how they handled their (very large, very unfortunate) mistake.

comment 7y ago · link · parent

You just have to reach out to people, you can't expect to sustainably rely on referrals for growth. Remember that your existing clients have no incentive at all to refer you to other people and in most cases are disincentivised from doing so. Instead use your success with your existing clients as social proof when approaching other companies in their niche: "we just delivered X, Y and Z to CompanyYouveHeardOf, let's talk" is a great way to open a conversation with those other companies.

comment 7y ago · link · parent

Using sass-vars-loader for this which is a webpack plugin: https://github.com/epegzz/sass-vars-loader

comment 7y ago · link · parent

for your specific example - you can declare SCSS variables in a JSON file, that makes the definitions accessible to both JS and SCSS.

comment 7y ago · link · parent

bought it earlier, read it pretty quickly. It's good, there is some gold in there and a lot of practical advice. It does feel a little bit expensive though, some sections are a little thin and this is made worse by the use of multiple blank pages between sections which makes it feel like the authors have padded it out.

On the other hand I'm likely to refer back to this book a lot over the next few years, so in that light $80 doesn't feel that bad.

I think I'd have preferred a living resource / subscription model rather than a one off book though.

comment 7y ago · link · parent

I mean, you can drive a Bugatti Chiron 500km for the same amount of energy as a single bitcoin transaction. The cost of a single transaction using e.g. visa is utterly negligible in comparison.

Edit: Some truly depressing figures here [1] including this

> Number of U.S. households powered for 1 day by the electricity consumed for a single transaction: 16.54

[1] https://digiconomist.net/bitcoin-energy-consumption

comment 7y ago · link · parent

The energy use / ecological impact of crypto makes it nothing short of unethical.
1
181920
53