Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gmac
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
661.
▲
by
gmac
7y ago
Me too — it's one of the few remaining things I still badly missed from the time I spent writing CoffeeScript.
662.
▲
by
gmac
7y ago
I did some archaeology as an undergrad, and found it full of amusing/annoying conventions in this regard. “Ritual significance” was a (heavily used) euphemism for “no clue what this was for”. And who could forget the Law of Stratigraph
663.
▲
by
gmac
7y ago
Safari is now buggy and once every day or so I have to kill & reload it to get a page to display Yes, me too — hope they fix that soon. I admit to holding iOS to a much higher standard than I do Android, but I can't help that.
664.
▲
by
gmac
7y ago
I often see both sides of a debate complaining about the bias of the BBC. So long as that is the case then we can reasonably assume they are doing a fair job of walking the fine line between both sides This is absolutely not true, because
665.
▲
by
gmac
7y ago
Well, OK, it’s reasonable place to start, but I think most of the HN crowd will have experienced the frustration of being unable to break out of that model. Obligatory XKCD: https://www.xkcd.com/806/
666.
▲
by
gmac
7y ago
Apple 2019: if your problem is not google-trivial, there's nothing you can do. Calling Apple's tech support line does not help, because they will just type your problem description into Google and read the first hit. Really? My
667.
▲
by
gmac
7y ago
Direct injection petrol engines are now fitted with particulate filters in Europe.
668.
▲
by
gmac
7y ago
If my bank calls me then I call them back on a number that's on their web site. I'm always amazed at how stupid the security situation is in these cases. Banks, telecoms services, etc. do actually call up and try to 'take m
669.
▲
by
gmac
7y ago
I submitted this once before[1], but had stupidly forgotten that the repo was set to private! It got some interest in a comment thread about ORMs[2], so I thought it perhaps deserved another chance. 1. https://news.ycombinator.co
670.
▲
Show HN: Mostly ORMless – Ergonomic Postgres from TypeScript
(github.com)
14 points
by
gmac
7y ago
|
1 comments
671.
▲
by
gmac
7y ago
OK, I gave the one-to-many queries a bit more thought, and the converse join query (getting each author with all their books, rather than all books each with their author) works nicely with a GROUP BY: type authorBookSQL = s.authors.S
672.
▲
by
gmac
7y ago
I've never been a fan of codegen, but I think I could get past it for this library - it looks great! Good news. :) Maybe we can agree that typegen smells less than codegen? Reminds me a bit of the SQL type provider for F# (which I w
673.
▲
by
gmac
7y ago
I'm also awed by this! :) 1. Whether `Selectable[]` can be used to query for a subset of fields and how. Right — this is not (currently) supported. I guess if you had wide tables of large values, this could be an important optimisa
674.
▲
by
gmac
7y ago
Agreed. Helpers (and indeed types) can make working with SQL an actual pleasure. You do need to learn the SQL, though. (My TypeScript/Postgres solution, in this vein: https://github.com/jawj/mostly-ormless/blo
675.
▲
by
gmac
7y ago
I've been working on a simple ORM alternative for TypeScript + Postgres which addresses the first two complaints (takes SQL as source of truth, and doesn't take over migration or connection management), and am really happy with it
676.
▲
by
gmac
7y ago
I’ve found myself really wanting this, but for the impossible-to-gather complement of the data — how are people doing when they aren’t consuming social media and news media? My study Mappiness gets closer to that. See, for example, https
677.
▲
by
gmac
7y ago
Share away!
678.
▲
by
gmac
7y ago
Agreed. I teach a session on it every year to Economics PhDs and faculty — if I can only get them to come. It's something they just don't know they don't know. http://mackerron.com/text/text-slides.pdf#pa
679.
▲
by
gmac
7y ago
D'oh! Fixed. Thanks. (I had forgotten the repo was set to private).
680.
▲
Show HN: Mostly ORMless – Ergonomic Postgres from TypeScript
(github.com)
2 points
by
gmac
7y ago
|
2 comments
681.
▲
by
gmac
7y ago
Which?
682.
▲
by
gmac
7y ago
I'm sure the distribution would change, but not sure it would be closer to uniform. It's now a completely different problem: choose a number most resistant to guessing. For example, if the participant hypothesises that your guess
683.
▲
by
gmac
7y ago
In rural south west England, on holiday last year, the well-stocked local farm shop operated not only an honesty box, but an honesty credit card machine, with detailed instructions how to put a transaction through. The merchant receipt went
684.
▲
by
gmac
7y ago
But if the government picked a tax rate, they'd likely do it with a forecast in mind of what externality would remain, so it only makes a difference in as far as there's uncertainty, and then only until the next round of permit qu
685.
▲
by
gmac
7y ago
Absolutely this. The time I find comments really valuable is when they remind me (or someone else) 18 months down the line that the other, obvious way to do this thing is subtly wrong, or when they justify using this particular value (perha
686.
▲
by
gmac
7y ago
I think the citext extension[1] already made much of this straightforward? What I'm most excited about is the fact that WITH clauses will no longer necessarily be optimization fences — I have some big queries that are really only manag
687.
▲
by
gmac
7y ago
I loved TypeORM initially, but came to the conclusion that it was written by people who really got TypeScript, but didn't really get SQL. For example, we were converting from Sequelize, where we were catching unique constraint violatio
688.
▲
by
gmac
8y ago
YES. I would never go back. Types, combined with a great IDE in VS Code, make for a so much less frustrating experience.
689.
▲
Double-sided conference name badges: a How to
(github.com)
1 points
by
gmac
8y ago
|
0 comments
690.
▲
by
gmac
8y ago
I find it very hard to credit that the AirPods, which transmit a few metres powered by a really tiny battery, would put out so much more power than a phone, which may transmit hundreds of metres powered by a very much bigger battery. That s
More ›