Better HN
topnewbestaskshowjobs
Log inSign up

quickthrower2

24,182 karma · joined Jul 22, 2017 (9y ago) · 14,302 submissions

Contact me at altsearch@altmails.com, which gets forwarded to my normal email.

https://hnbadges.netlify.app/?user=quickthrower2

Submissions

comment 3y ago · link · parent

Like an interpreted language I suppose

comment 3y ago · link · parent

Yes… and that makes it more impressive than just running this one game. It opens up type driven development to anyone who can do typescript.

comment 3y ago · link · parent

Opportunity to convert office space to living space?

Nimby-proof housing increase?

comment 3y ago · link · parent

Welcome to AI bias and AI safety issues. Expect more of this. The scary thing is where it is not so blatant. For example you get denied a visa or work application, because the AI has scored you low.

comment 3y ago · link · parent

Good!

comment 3y ago · link · parent

Exactly. If not, any variable is just binary data, and has no basis for interpretability. Any program with a single branch instruction at the assembly level, has implicit types!

comment 3y ago · link · parent

Yes, depending on what you mean by integration test.

It is nuanced subject.

But say you have class A,B,C,D with mocked dependencies E,F,G,H.

There could be bugs in how A interacts with E and F that are hidden even though you have tests for A,B,C,D integrated and even unit tests on E too.

In addition, if someone comes along and refactors A,B,C,D into A',B',C',D' that have different dependencies ("Hey we are moving to microservices!") then the new integration test is different. You change test and code at the same time.

This is a problem because confidence comes from having a stable test, then changing the code and getting the green circles.

The solution (I think) is to make sure you are mocking at the level of well established boundaries. For example mock PostgreSQL. Or mock your ORM if there is a decent mock, with an in-memory version.

Then you can test end-to-end scenarios. Add a TODO, add another TODO, assert that getTodos() returns 2 results, and so on.

Instead of assert getTodos() returns 2 results when the ITodoService.getTodos() returns 2 results, and the outer getTodos just defers to it.

comment 3y ago · link · parent

Can someone explain the n^2 + 2 triangles paper?

comment 3y ago · link · parent

The real problem is you are testing the class behaves like the class, but not the business-driven requirements. Therefore refactoring becomes fearful since detecting bugs is no longer the job of tests.

comment 3y ago · link · parent

Or a day doing devops stuff at work

comment 3y ago · link · parent

Thanks Nico. I'll give this a try!

comment 3y ago · link · parent

So placebo effects accuracy of self reporting? Making perhaps less or perhaps more accurate than without?

I get this. Especially rating emotions 1 to 10 etc.

comment 3y ago · link · parent

I don’t think those sorts of problems cause depression necessarily.

comment 3y ago · link · parent

Relevant comic: https://xkcd.com/1526/

comment 3y ago · link · parent

I love murphy’s law arbitrage

comment 3y ago · link · parent

A 1Tb usb on a bird could give decent bandwidth!

comment 3y ago · link · parent

Or move towards no grid? Solar, batteries, local power storage facilities (like pumps) and backup generators perhaps using natural gas.

comment 3y ago · link · parent

Depends: food can dupe people into working extra hours for free. They think they are having a lunch break as they talk shop while chewing on their ciabatta.

comment 3y ago · link · parent

IPFS? Torrents? Maybe an IPFS bridge could be a FTW

comment 3y ago · link · parent

Or 10x that if you get to choose another country :-)

comment 3y ago · link · parent

Being HN someone needed to make that comment. All tech companies can be reduced to “serving some bits and bytes”

comment 3y ago · link · parent

OCR?

comment 3y ago · link · parent

In the limit this means go insolvent/bankrupt and not pay out to creditors such as lease, caterers, cloud services. Finish with unpaid taxes and wages.

comment 3y ago · link · parent

Ethereum network doesn’t serve on 80 or 443

comment 3y ago · link · parent

Reminds me of 20th century web! Nice. Not working on iOS :-(

comment 3y ago · link · parent

Do what Chrome has done and continually improve plugin security. Plugins should ask for permissions. Would require an overhaul of WP though.

comment 3y ago · link · parent

Webassembly will get us there

comment 3y ago · link · parent

Lol you don’t need blockchain, you need a host that doesn’t take down malware payloads. A floppy disk is sufficient technology if cached behind a CDN

comment 3y ago · link · parent

No absolute guarantee of forever.

comment 3y ago · link · parent

Corollary: levels.fyi style dev salaries in the US make no sense
1
495051
477