Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dkersten
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
68 ms
·
841.
▲
by
dkersten
5y ago
I've always felt the best approach for (automated) testing is: Unit test style tests should test the specification. That is, you test that good input creates the results that the specification states it should and you test that the kno
842.
▲
by
dkersten
5y ago
Isn't that to be expected for a "live" map?
843.
▲
by
dkersten
5y ago
Too late to edit: yes, I know this doesn't work for everything and won't work for everyone, but its worked great for me, so my point is simply that your assertion that everyone has difficulties dealing with dependencies is false.
844.
▲
by
dkersten
5y ago
I did use Bullet physics not too long ago, which most definitely isn't header-only, but the exact same approach worked there too. Git submodule, set include path. The only difference is that I also told my build tool to build its sourc
845.
▲
by
dkersten
5y ago
Doesn't seem to be a major problem in europe, where many countries have a legal drinking age of 18 or even 16 for beer. Besides, the law doesn't stop teens who want to drink from drinking, only from going to bars and makes them ju
846.
▲
by
dkersten
5y ago
> you are definitely working against the language How so? > Also this works nicely for self contained dependencies, and much less nicely for not self contained dependencies. Doesn't matter. You said: "You can speak for ever
847.
▲
by
dkersten
5y ago
> You can speak for everyone. Not really. I only use header-only libraries and dependency management is a breeze for me. I check each library out as a git submodule into a third-party subdirectory in my project directory, point the inclu
848.
▲
by
dkersten
5y ago
Yes, Postgres' jsonb and array support lets you not only query into these fields, but also, like you say, index into them too. Its really the best of both worlds: you get a great solid relational database, but if you need document data
849.
▲
by
dkersten
5y ago
So... We should be using spreadsheets for machine learning and 3D graphics?
850.
▲
by
dkersten
5y ago
I absolutely love Postgres' JSON and array support. Its saved me from needing a document database in a few cases, which drastically simplified the overall deployment (one DB instead of two, or trying to represent relational stuff in a
851.
▲
by
dkersten
5y ago
> Where have you used the fact that the observation of one marble affects the observation of the other? Here: "they will both be the same colour every time" > Your above experiment could be done with just a simple bag and tw
852.
▲
by
dkersten
5y ago
Would this be correct: You take a marble out of the bag without looking and give the bag to your friend. Your friend also take a marble out of the bag without looking. Both you and your friend now look at your marbles and they will both be
853.
▲
by
dkersten
5y ago
Amazon claims its more than just a name change, that they learned from Lumberyard, but very little of Lumberyards code is in O3DE.
854.
▲
by
dkersten
5y ago
> Does pair programming result in junk code? No, but not because there's a second person writing code, rather because there's a second person to think about it and think through how it works and interacts with the rest of the
855.
▲
by
dkersten
5y ago
Its not even clear to me that writing faster and more code is necessarily a good thing, or, at least, that beneficial. I've said it in a previous Copilot discussion and I'll say it again, but actually writing code is a small part
856.
▲
by
dkersten
5y ago
IMHO its worse because on StackOverflow, people can comment, upvote/downvote, add their own answers etc if the random code has issues or shortcomings or is a bad idea for whatever reason. With copilot, you have to trust it or trust tha
857.
▲
by
dkersten
5y ago
> I highly recommend staying away from Arch and NixOS if you're not ready to commit upwards of 30% of your work and free time fixing and tweaking your box. I started using Arch back in 2011 and Manjaro (Arch-based) in 2018. Besides
858.
▲
by
dkersten
5y ago
They might be useful if they were exponential moving averages or something that adjusted more quikcly, so that you can see the trend shift. But in this case, you can clearly see the trend shift from the actual data anyway, so even that woul
859.
▲
by
dkersten
5y ago
Even then, its usually overpriced. I remember some years ago there was a cannabis bust where I am and they announced that they seized X amount and it had a street value of Y and I was just thinking those guys are getting seriously ripped of
860.
▲
by
dkersten
5y ago
If you can demonstrate that you were trying to get it into production, then there's nothing wrong with a lawsuit. I mean, maybe there are better solutions (making them more and more expensive to hold the older they get was mentioned by
861.
▲
by
dkersten
5y ago
If whoever is holding the patent is not using it for anything other than sue people, then I really don't care that Apple infringed it without licensing.
862.
▲
by
dkersten
5y ago
I had an idea long ago that you basically write unit tests (nowadays I would add property-based tests to the mix too) and a genetic algorithm (best I could come up with at the time, nowadays we obviously have much fancier techniques, as evi
863.
▲
by
dkersten
5y ago
Now that is a damn good idea!
864.
▲
by
dkersten
5y ago
> You deserve protection for coming up with the technology, not for using it. Why? Ideas are cheap, execution is everything and all that. You don't have to literally be the person executing on it, but whoever you transfer or sell th
865.
▲
by
dkersten
5y ago
From the article: "Oh, and they're both wrong." "Both look plausibly correct at a glance" You would end up with tests that look plausibly correct, but test the wrong results.
866.
▲
by
dkersten
5y ago
Oh. I didn't even see that. That does indeed make the text legible, thank you. Sadly it makes the entire page too bright, but at least its readable!
867.
▲
by
dkersten
5y ago
A metacomment about the page (rather than the content): the text in the white boxes is almost unreadable for me, the contrast is crazy low.
868.
▲
by
dkersten
5y ago
> "I can't tell you to vape but I can tell you to keep doing what you're doing". > Should non-smokers pick up vaping? Probably not Yeah, I imagine that its a lot better than smoking cigarettes, but still worse than
869.
▲
by
dkersten
5y ago
Having done some Visual Basic with that a long time ago, the problem with it is that its not fine grained and there's no easy way to know if something failed. For example, you have a large procedure with a division by zero somewhere in
870.
▲
by
dkersten
5y ago
Copilot Honeypot, create a ton of repositories with large amounts of auto-generated bad code.
More ›