Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gregmac
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
601.
▲
by
gregmac
6y ago
There are about 100 ways to do any given thing when building web apps, and it's a constantly shifting landscape where "the way" you do a bunch of things is different every time you start a new app (at least it feels that way
602.
▲
by
gregmac
6y ago
> Missing Easy Search Option for Finding Issues in the Project Really? I think search is one of the most compelling features. I find most of the time when I can't find something, it's because of different terms used, such as se
603.
▲
by
gregmac
6y ago
> Protobuf-java is a little heavy [...] Just depending on the library adds 1.6MB and nearly 700 classes before you even generate your own message classes. By comparison, protobuf-net [1] is about 260KB and 68 classes. Python's [2] i
604.
▲
by
gregmac
6y ago
> There's some truth here, but it's important not to use anecdotes too much to guide intuition because the sample size is often too small and too biased. In a community like HN there's also kind of a "meta-anecdote&qu
605.
▲
by
gregmac
6y ago
That's the second part of my work day. The first part is between breakfast and lunch. During lockdown (like we're about to go into again) my afternoon becomes my other, new, exhausting job of being a crappy early grade teacher whi
606.
▲
by
gregmac
6y ago
Ok that sounds promising. I haven't really used dedicated instances so I'll have a closer look at this. Thanks!
607.
▲
by
gregmac
6y ago
> a website can silently drop the part after the plus sign and use your real email address instead. I wonder if there are any documented cases of this? I suspect it would be hard to detect, other than in combination with a catch-all doma
608.
▲
by
gregmac
6y ago
It's also per-instance, so if you use one to run a build or automated test suite and tear it down afterwards, it costs you 24 hours each time. Some simple napkin math: if you average running two builds/test runs per day, not inclu
609.
▲
by
gregmac
6y ago
On the topic: I've had an ecobee 3 for the past few years, and I'm pretty happy with it - if you're in the market I'd highly recommend one. Killer features are mostly from the room sensors: * Keep upstairs comfortable at
610.
▲
by
gregmac
6y ago
One application I don't see discussed much is how this is useful for personal learning. Knowing the effect exists is useful when learning about a totally new topic: you know you need to hit that first peak, so to speak, to figure out (
611.
▲
by
gregmac
6y ago
Some of the highest value-to-effort feedback I've both given and received in a PR is about naming. Whenever I see something where my first impulse is to react with "WTF?!?" I now try to ask myself "does something here ju
612.
▲
by
gregmac
6y ago
> someone inevitably shouts "use the simplest tool for the job!" I think one problem is that configuration needs start out simple and evolve to complex - as opposed to being obvious from the start you'll need dozens of dis
613.
▲
by
gregmac
6y ago
You have a good point. I think the danger comes from the potential for abuse. Once you ship software that has failing tests, you've established a precident and are likely to face pressure to do so again even when the tests are more cri
614.
▲
by
gregmac
6y ago
I've read too many of the first that lately it has killed most of my motivation to read any non-fiction books (the last couple I started, I just never finished because essentially I got bored). I enjoy reading (and still read fiction),
615.
▲
by
gregmac
6y ago
In what way? My personal expectation of CI is predictable, repeatable builds, that give me some assurance the software is working as designed. I also like that it forces everything to be scripted: no "only Bob knows how to build the re
616.
▲
by
gregmac
6y ago
Using a seed with the "random" is exactly how you get to pseudo-random , which gives the same sequence everytime, and is absolutely fine for tests. If you want to have the build (test) result feedback to save the input, that'
617.
▲
by
gregmac
6y ago
Well you do save a byte in the actual key. I guess if you really want to keep it to 11 bytes, it would be better to generate 9 bytes of random data, base64 it (which uses the full 12 characters, with no padding), and truncate to 11. You
618.
▲
by
gregmac
6y ago
> My controversial opinion is that most software tests should be integration tests that use randomized inputs. I doubt I'll get very many upvotes for that idea. Probably not, but largely because you used the word "randomized&qu
619.
▲
by
gregmac
6y ago
I do the same with REST APIs and CLIs, and for the latter often build --help as pretty much the first thing (whether for real or just as a text document). I recently was adding a couple features to an existing utility, where I made some new
620.
▲
by
gregmac
6y ago
I see there's several "captcha solving services" (Google the term, I don't want to link any) that charge in the $1's per 1000 solves. This makes me wonder how effective captchas really are. Do they just raise the
621.
▲
by
gregmac
6y ago
Many APIs don't have that - for example with most IO operations you get a return value when complete or an exception on failure, and that's it. Getting something like a callback for progress would require modifications all the way
622.
▲
by
gregmac
6y ago
Do you have any examples of this? I've been interested in building this Pi camera using a lens with a shallow depth of field, but it's very hard to figure out a lens to get that will work with the Pi, look right if mounted from ar
623.
▲
by
gregmac
6y ago
I kind of hope they don't, or there is more to it than just that -- for example, a user coming back and clicking on something else counts as a downvote for the first item. Any system that ranks things purely based on votes or view coun
624.
▲
by
gregmac
6y ago
> I say this all the time to frontend people and they brush it off as the rantings of a backend CLI user who should never design UIs. The UX concepts of "Discoverability" and "Learnability" [1] pretty much directly co
625.
▲
by
gregmac
6y ago
The case you cite was from July 2020 and has been fixed [1]: > It does appear to the case, however, that a motorcyclist who was killed in a traffic accident also tested positive for COVID-19, and was initially listed among Florida’s COVI
626.
▲
by
gregmac
6y ago
> In fact, most of us have caustic responses to per unit pricing, often to the point of irrationality (e.g. $40 for 35 loads of laundry detergent v. $1.00 per load). Amazon Prime is based on the need to get shipping fees out of the way o
627.
▲
by
gregmac
6y ago
ILSpy + LINQpad is my go-to as well, and I actually still use ILSpy more often than source.dot.net. It's nice to be able to send a link to someone else though, and the site is well done, fast, and has a great domain. :)
628.
▲
by
gregmac
6y ago
Microsoft has put lots of effort into their docs in the past couple years, and it's pretty great. Under the "Version" dropdown you can flip to see the same docs in a specific version or platform (Framework vs Core), and this
629.
▲
by
gregmac
6y ago
There is definitely lots of DRM-type stuff happening in laser printers, mostly on the higher end. It goes beyond just 3rd party, too. The best example I've heard from this was from {large-copier-manufacturer}. Someone (not an official
630.
▲
by
gregmac
6y ago
While I think you're arguing in bad faith, at least there's some interesting discussion in the replies. I think it's an interesting thought experiment to figure out how to do mass voter fraud though: > How are we even dete
More ›