Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
svieira
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
421.
▲
by
svieira
2y ago
And this hot take happens to be completely correct (and is why many people didn't use it, in spite of others yelling that they were needlessly re-inventing the wheel).
422.
▲
by
svieira
2y ago
Wouldn't work in this case because the whole selling point of polyfill.io was that as new features came out and as the browser grew support for new features the polyfill that was loaded would dynamically grow or shrink. Something like
423.
▲
by
svieira
2y ago
The thing that really brought it home to me was the talk "Uniting Church and State: FP and OO Together" by Noel Welsh: https://www.youtube.com/watch?v=IO5MD62dQbI
424.
▲
by
svieira
2y ago
:raises-hand: Yes, I have bent the charging portion of my USB-C on a Mac before but have had zero trouble with the MagSafe versions
425.
▲
by
svieira
2y ago
The fact that the second entry on that list was "Baptist Hospital" makes me slightly suspicious of the validity of the data.
426.
▲
by
svieira
2y ago
Correct - but if you're normally interacting with Linux boxes on the command line you're probably not going to be too far from home since the _programs_ behave mostly-the-same.
427.
▲
by
svieira
2y ago
And even more obscure languages like Forth and Octave. The only thing to watch out for is that they run FreeBSD (instead of a more "normal" distribution) so if you're used to Linux-as-seen-on-Debian-or-Ubuntu there are a few
428.
▲
by
svieira
2y ago
It's either/both - the "simple" method is to manually host. The more complex methods use runtime or compile-time reflection on the code to determine what gets loaded when (a la https://engineering.fb.com/
429.
▲
by
svieira
2y ago
I haven't heard anyone anywhere say that "typed exceptions are an antipattern" just "typed exceptions _as implemented by Java_ are an antipattern". The general problem is well set forth by Anders Hejlsberg, Bill Ve
430.
▲
by
svieira
2y ago
Ah, that makes a lot of sense, thank you!
431.
▲
by
svieira
2y ago
When one of the first examples is: > GPT-4 feature: ends of phrases related to price increases and the 2/5s of the responses don't have any relation to increase at all: > Brent crude, fell 38 cents to $118.29 a barrel on t
432.
▲
by
svieira
2y ago
1. Shrines, not cathedrals. 2. https://en.wikipedia.org/wiki/St_Michael%27s_Mount#Folklore - "There are popular claims of a tradition that the Archangel Michael appeared before local fishermen on the mount in the
433.
▲
by
svieira
2y ago
The extra interesting wrinkle here is that each of the Burger Kings in the straight line are associated with an appearance of the Burger King himself explicitly asking for a shrine in the location, while the others are mostly random franchi
434.
▲
by
svieira
2y ago
The Chinese state is a fact-checking organization, with all the foibles and follies that are associated with letting people (e. g. free-willed beings) fact-check other people. Fortunately, reality allows for multiple inheritance, the Chin
435.
▲
by
svieira
2y ago
This is the right answer. The author calls it out subtly too: > the gap between the lower gentry and upper yeomanry isn’t very large, and most families are able to support themselves with only minimal assistance. For those who want to f
436.
▲
by
svieira
2y ago
I suspect that people don't think about it too hard and presume that they should have only one model - that is that their REST model should map directly to their DB model which should map directly to their internal domain model (the
437.
▲
by
svieira
2y ago
> I seem to recall Meta/Facebook engineers on HN having said they have a tool that allows engineers to author SQL or ORM-like queries on the frontend and close to where the data is used, but a compiler or post-processor turns that i
438.
▲
by
svieira
2y ago
Preventing users from submitting things that look like error messages sounds like a good idea until you stop a user from using your contact form to submit an error message that they just actually encountered on your website (because your WA
439.
▲
by
svieira
2y ago
Either an infinite for/while and if or unbounded recursion are necessary but you don't need both for Turing completeness. [1]: https://en.wikipedia.org/wiki/Turing_completeness#Examples
440.
▲
by
svieira
2y ago
Norway's 2 character country code abbreviation is "NO". Which is one of the many ways to spell the boolean `false` in YAML 1.0. Which is yet-another-way-to-shoot-yourself-in-the-foot with DSLs written in YAML.
441.
▲
by
svieira
2y ago
It depends - that may be the takeaway that's meant to be taken away, but it's almost always "look how much we're loved" from my frame of reference.
442.
▲
by
svieira
2y ago
Ruby did it first, but it goes farther back at least to Smalltalk if not further.
443.
▲
by
svieira
2y ago
There is an underlying context here - hooks are "effects" from OCaml 5+ / Koka / recent Haskell / etc. Sebastian actually was asking in the ECMAScript mailing list several years ago about adding effects to JS. The
444.
▲
by
svieira
2y ago
Which of course, isn't true. The Red Guard was a police force in a very real sense as was the NKVD.
445.
▲
by
svieira
2y ago
Congratulations, the small-time local farmer with 10 acres, two quality high tunnels, a mid-sized tractor, and a couple of trucks and trailers is now wealthy. Assets are not necessarily liquid.
446.
▲
by
svieira
2y ago
And I am a huge opponent of it because anything that can be used to track criminals can be used to track everyone. And if everyone is a criminal (imagine the-other-guy getting control of the system) then you are not actually deterring anyo
447.
▲
by
svieira
2y ago
And if you're from a little-further-south it is (naturally) Washington DC's version of the same thing (Maryland, Virginia, West Virginia)
448.
▲
by
svieira
2y ago
Yet I'm sure many of those non-devs have used Excel / LibreOffice / Lotus 1-2-3 to build something that is more-than-a-list-or-grid (anytime you put `=` into a cell, you are programming).
449.
▲
by
svieira
3y ago
Given a Branded / Nominal interface, they look about the same usage wise but the branded type disappears at runtime (whether that is a benefit or a detriment depends on your use case): type Email = Branded<string, 'email&
450.
▲
by
svieira
3y ago
Yes, but then there would be runtime overhead for the wrapper (presuming a class or object is returned) or the type of accountId would be the underlying type (if AccountId isn't returning a branded type).
More ›