Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gmac
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
601.
▲
by
gmac
6y ago
The fact that we know we can rank French nuclear plants by their transparency level is already seriously screwed up.
602.
▲
Nixie Tube
(en.wikipedia.org)
1 points
by
gmac
6y ago
|
0 comments
603.
▲
by
gmac
6y ago
Perfect. Just started using IceSL ( https://icesl.loria.fr/ ) as an alternative to OpenSCAD for designing things to 3D print, and its scripting is all Lua-based.
604.
▲
Boeing 737 Max Jet Ends First FAA Test Flight for Comeback Bid
(bloomberg.com)
2 points
by
gmac
6y ago
|
0 comments
605.
▲
by
gmac
6y ago
> Keeping with what's new in society is important insofar as having an informed population is vital for the correct functioning of a democracy. I would say this -- the correct functioning of democracy -- is among the most important
606.
▲
by
gmac
6y ago
I'd challenge that assumption. The BBC has arguably become much more of a state broadcaster than a public interest broadcaster in recent decades. https://www.lrb.co.uk/the-paper/v40/n24/owen-bennett-jones
607.
▲
How to Move Off Query Builders and ORMs in JavaScript/TypeScript
(medium.com)
2 points
by
gmac
6y ago
|
0 comments
608.
▲
by
gmac
6y ago
There’s also no valid reason for the non-use of brackets, is there? They’re just different. It didn’t take long for them to feel natural to me when I started coding in ObjC, and the named method parameters that go with them make ObjC code (
609.
▲
by
gmac
6y ago
https://typeorm.io https://jawj.github.io/zapatos/
610.
▲
by
gmac
6y ago
Definitely agree — I suspect the (highly suspect) CBA that was used to justify HS2 would come out a lot less positive with the amount of extra home-working we can expect post-COVID-19.
611.
▲
by
gmac
6y ago
My instructor (in the UK) gave me the same instruction. To be fair, it's pretty intuitive. It's also remarkable how few people follow it (e.g. they don't slow down sufficiently around blind bends, or when there are pedestrian
612.
▲
by
gmac
6y ago
https://en.wikipedia.org/wiki/Airbus_A350_XWB ?
613.
▲
by
gmac
6y ago
Well, maybe, though an external DVD drive probably costs no more than three or four movies, and then you can make yourself non-DRM digital copies too. (As long as you don't need BluRay and HD).
614.
▲
by
gmac
6y ago
The problem is that there's no obvious, simple way to bring the results of this query, structured and typed appropriately (with posts nested inside users), into our running code. So we have to choose what we think is the least-worst co
615.
▲
by
gmac
6y ago
Absolutely, and also for 'buying' movies on Amazon, Apple, Google and (especially) smaller services. The product you're buying is really: rental of unknown duration. And unless that's really substantially cheaper than
616.
▲
Low cost, high risk: accidental nutmeg intoxication [pdf]
(ncbi.nlm.nih.gov)
1 points
by
gmac
6y ago
|
0 comments
617.
▲
by
gmac
6y ago
Yes. My brief experience with TypeORM made me feel like it was written by people who really understand TypeScript, but maybe don’t understand SQL so well. It was a brief experience because I quickly lost trust in it.
618.
▲
by
gmac
6y ago
I’m not exactly sure what you’re getting at here. The whole point of this library is that one call = one predictable query, and the SQL it generates is certainly no more convoluted than required to produce the desired result.
619.
▲
by
gmac
6y ago
Yes, that would be very welcome. I suggest you keep me in the loop from the start to make sure we end up with something we’re both happy with.
620.
▲
by
gmac
6y ago
Zapatos can generate the hairy JSON stuff for you, including lateral joins that are equivalent to your example query, which would be: const result = await db.select(‘user’, db.all, { lateral: { posts: db.select(‘post’, { userId: db.pa
621.
▲
by
gmac
6y ago
Zapatos author here. Yes, it does. But for most of what you’d use an ORM for, you probably won’t need custom queries.
622.
▲
by
gmac
6y ago
:) Happy that you noticed the thought that went into presenting the examples. I hadn't come across those other libraries. On Prisma, I think I agree with your assessment. A key thing that this and Prisma have in common is interrogating
623.
▲
by
gmac
6y ago
TypeORM is very much a traditional ORM. You define your model classes, and the relationships between them, in code, and TypeORM takes charge of creating and modifying your tables. Then you use the model classes to query the database, withou
624.
▲
by
gmac
6y ago
Fair point!
625.
▲
Show HN: Zapatos, a Postgres Library for TypeScript
(jawj.github.io)
28 points
by
gmac
6y ago
|
7 comments
626.
▲
by
gmac
6y ago
Same in the UK, and similarly they often cease at 11:59PM, which has always struck me as pretty unsatisfactory. What if a plane crashes on my house, between policies, during those two uninsured minutes? Sure, it's unlikely, but so are
627.
▲
by
gmac
6y ago
It just feels like what is the closest such city name is pretty obviously an insufficient test. To approximate what a human would do, one would presumably want to start by ranking places on a range of dimensions: * nearest * biggest (or m
628.
▲
by
gmac
6y ago
It's usually held to be Latin: ante and post meridiem[1]. But surely the whole point is that midday itself is neither before nor after midday, while midnight is precisely equally both before and after? [1] https://en.wikiped
629.
▲
by
gmac
6y ago
12 AM and 12 PM are only meaningful by some arbitrary convention, and I'm not sure if that's even very consistent. I try always to use 12 noon and 12 midnight instead.
630.
▲
by
gmac
6y ago
Utility Monsters prove that utilitarianism is a bad model for reality. I think it's a pretty big stretch to say that something that doesn't exist proves anything at all. I've always felt utility monsters were just bad phi
More ›