Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwaway858
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
throwaway858
5y ago
There are several good reasons to keep your test code in a completely separate directory (or "project") 1. Sometimes you want to do some experimental refactor in your application. This might break a lot of tests (cause them to not
32.
▲
by
throwaway858
5y ago
The problem is that you are trying to understand them from an explanation, when the correct method is to code with them and feel them and get used to them. The programming world is filled with concepts that beginners find extremely difficul
33.
▲
by
throwaway858
5y ago
This comment should be downvoted because it is spreading misinformation without providing any valuable opinion. It is a fact that the the original vaccine effectiveness trials were compared to a placebo group and the vaccine showed effectiv
34.
▲
by
throwaway858
5y ago
Another postgresql performance gotcha: Find all the coupons that are expired (90 day expiration): SELECT * FROM coupon WHERE created_at + INTERVAL '90 DAY' < now() This will not use the index on the "created_a
35.
▲
by
throwaway858
5y ago
It doesn't feel like there was enough criticism against GitHub for their decision to ban the developer of faker/colors. This was his own corner of the internet for him to publish his own personal projects. I understand the decisio
36.
▲
by
throwaway858
5y ago
Agreed. If you have a function that executes an SQL query then your unit test(s) of this function should also execute the query. Otherwise, what exactly are you testing? Just because the database runs as a separate process does not mean tha
37.
▲
by
throwaway858
5y ago
Would this be legal? Obviously bitcoin has no "terms of use" that Nvidia (or anyone) is bound to, but the US has very broad "hacking" laws like CFAA. I imagine that if Nvidia were to openly "steal" someone'
38.
▲
by
throwaway858
5y ago
> What incentive is there to make any kind of one-shot fix? The team at Pfizer is made of dozens (or hundreds) of respectable scientists and lab workers. If Pfizer had a "one-shot" cure and was sitting on it for reasons of gree
39.
▲
by
throwaway858
5y ago
Copyright laws vary wildly across countries and jurisdictions
40.
▲
by
throwaway858
5y ago
> I assume that my CPU works This is not a blind assumption that you make, but one based on lots of evidence (for example you are aware of the testing procedures and QA processes of the CPU manufacture, and you are aware that millions of
41.
▲
by
throwaway858
5y ago
The speaker in that video wrote a book("You have the right to remain innocent") where he argues that the "right to remain silent" (5th amendment) has been eroded in the USA and gives examples of court cases where the fac
42.
▲
by
throwaway858
5y ago
How come the js-joda library is never mentioned in discussions about javascript date/time libraries? its API is perfect and it has been around forever. but instead the community seems to keep inventing more and more new datetime librar
43.
▲
by
throwaway858
5y ago
The GHC manual has this to say about the `-B` flag: > -B > > Sound the bell at the start of each (major) garbage collection. > > Oddly enough, people really do use this option! Our pal in Durham (England), Paul Callaghan, w
44.
▲
by
throwaway858
5y ago
> But the results may change depending on: > - programming language As I mentioned in my comment, this is part of the myth. most programming languages have the exact same semantics regarding floating point and if you port an algorithm
45.
▲
by
throwaway858
5y ago
There is a persistent myth that floating point is non-deterministic and therefore cannot be used for "lockstep" multiplayer games. This may have been true in the 90s because of buggy C compilers, but has long not been the case. yo
46.
▲
by
throwaway858
5y ago
> In an ideal world (one I think we are getting very close to) I think we will end up having SQL queries validated in our code against the actual DB structure the same way we have any other compilation error. This library for TypeScript
47.
▲
by
throwaway858
5y ago
As mentioned in the sibling comment, this has been fixed by AWS a few months ago and now all S3 operations are always strongly consistent (not eventually consistent)
48.
▲
by
throwaway858
5y ago
This library does exactly what you want: https://github.com/MedFlyt/mfsqlchecker and it also validates the types of the parameters that go into the query