Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
moring
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
511.
▲
by
moring
7y ago
Adding two characters isn't strictly needed for that -- you're relying on the assumption that (c - 'a') is of type character, but it's actually the offset between two characters. The rules for those two types woul
512.
▲
by
moring
7y ago
Two counter-points: (1) While treating a single SQL table as a distinct entity is a sin by your argument, I would argue that treating a set of tables as a distinct entity is not. I'm referring to what DDD calls an aggregate, e.g. a cus
513.
▲
by
moring
7y ago
QueryDSL ( http://www.querydsl.com/ ) does something like this for Java. It can generate classes from tables, but even with those, all queries / statements that hit the database are manually built using a query builder t
514.
▲
by
moring
7y ago
This is different, though. Freezing their bank accounts makes it impossible to pay and thus gives the victim a plausible excuse not to pay.
515.
▲
by
moring
7y ago
Somewhat offtopic, but is there a reason some many explanations of this issue lump together the fundamental principle of how numbers are represented (integers vs. fractions vs. exact reals (technically impossible) vs. IEEE 754) and the base
516.
▲
by
moring
7y ago
Are there even good examples of "intended to work within their own ecosystem only"? I'm constantly surprised to the extent Apple embraces openness and interoperability (compared to my personal expectation of what they would d
517.
▲
by
moring
7y ago
Java has a very similar solution to the problem using OSGi. It uses class loaders to encapsulate sets of classes to isolate them and also uses the class loader for disambiguation. Compare the solutions: "It seems there's four basi
518.
▲
by
moring
7y ago
The point is this: "Assume that a coin is fair" ... "the coin gotta be loaded" In the example, Fat Tony is wrong because he contradicts the initial assumption. However, the example is unrealistic because, initially, you
519.
▲
by
moring
7y ago
> Many internal data structures and internal functions, not exported anywhere and not part of the public symbols I remember reading that even inside Microsoft, internal structures had to remain backwards-compatible because external, &quo
520.
▲
by
moring
7y ago
My take on why this isn't a nightmare: He got great support from everybody involved. No extra pressure, no artificial deadlines, no unpaid work expected from him and there was even little denying the problem (except that his statements
521.
▲
by
moring
7y ago
Thinking about it, they need to remove eight bolts per section, then the section itself, then eight bolts for the next section, and so on. I could have expected them to save time by removing the bolts of the second top section in parallel t
522.
▲
by
moring
7y ago
You would need an infinite amount of hardware, though, as the O() notations only apply for n towards infinity.
523.
▲
by
moring
7y ago
I sometimes use a limit (constraint or varchar(n)) to enforce an upper bound when the domain doesn't really demand one, but you'd rather get an error that a longer string in your database. Say, 100 characters for a login name or 1
524.
▲
by
moring
7y ago
I actually disagree with "Don't use timestamp (without time zone)". The Java class library (and before it, Joda time) distinguishes "instants" and "locals" which is pretty much the same as PostgreSQL'
525.
▲
by
moring
7y ago
Using the same editor is not implied though. Only a common format for "rich" comments that is supported by a sufficiently large subset of editors. This could be as simple as using the same markdown/HTML/whatever comments
526.
▲
by
moring
8y ago
On the other hand, you can only argue about the estimate if there is even a channel to argue about it. I have seen several cases of (1) people being told about a deadline through various proxies, so there was no point in time where they cou
527.
▲
by
moring
8y ago
Ironically, the exact same site greets users with a cookie warning, training them towards the behavior they were surprised about.
528.
▲
by
moring
8y ago
Doesn't strict serializability solve only part of the problem? If X finishes before Y starts, then X must come before Y in serial order. But if there is some overlap between X and Y in the first place, then again some serial order is p
529.
▲
by
moring
8y ago
This is a pet peeve of mine with Android (don't know about iOS). Another example: Browser wants to download a file, so I have to give carte blanche permission to access all my files. Why can't I just give permission to place new f
530.
▲
by
moring
8y ago
While I seriously doubt that overselling is really widely known, it is also quite an assumption that repeating a widely known fact has no effect on customer behavior. As something between data and anecdata to support that statement, I'
531.
▲
by
moring
8y ago
1. Unfortunately, the main issue was a changing interface of the third-party system. The manual testing against the real thing was the problem. I fully agree with automating everything where an abstraction is sufficient. 2. This is good to
532.
▲
by
moring
8y ago
Unfortunately, this wasn't possible for two reasons. The first one was that we would not just need one account, but several ones. Though it might have been possible to limit this for the integration test, and test all the stuff that de
533.
▲
by
moring
8y ago
> How would you manually test in a situation like that? IMHO, You can't. We did in fact just hope it doesn't break in production. But then, the article says just do it, so maybe there was a better solution we overlooked.
534.
▲
by
moring
8y ago
The introduction made me hope for real advice on how to "stop stopping", but it only repeated the old arguments on why we want tests. Why not deal with some of the real problems that actually prevent people from writing automated
535.
▲
by
moring
8y ago
What if the objections in the article were solved directly? > Writing a Large, Correct Makefile is Really Hard > No Sandboxing Would it be possible to track dependencies on a file level, simply declaring everything that gets read as a
536.
▲
by
moring
8y ago
I think this conflates requirements and implementation choices. "we're never gonna have more than three devices" is a statement about requirements, and implies the absence of a requirement to support more than 3 devices. It d
537.
▲
by
moring
8y ago
I remember reading elsewhere that bad stuff happens largely because of incomplete or conflicting requirements, and that implementation bugs are secondary. My own experience confirms this, even though I usually deal with systems where a prob
538.
▲
by
moring
8y ago
I'm currently in the process of writing together some basic UI guidelines at work, and one of the special cases was exactly this: If the dialog asks for confirmation to cancel a process, it must ask, "cancel this process", an
539.
▲
by
moring
9y ago
I often feel lost when reading such articles because they never seem to quite acknowledge how bad legacy systems can be. The following examples all originate from the same project I have worked with in the past. Example 1: You cannot "
540.
▲
by
moring
9y ago
Another layman's question: As far as I understood, the T-cells recognize cancer cells and kill them because the two agents get injected directly into the cancer site, where the T-cells are surrounded by cancer cells. Doesn't this
More ›