Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
layer8
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
854 ms
·
15541.
▲
by
layer8
7y ago
Usually the problem is that you can’t realistically change the interface, because too much other software relies on it, and having all that software rewritten would be too costly, and also risky. In addition, as a sibling mentions, the reas
15542.
▲
by
layer8
7y ago
Of course, that approach is difficult to apply if the interface is a significant part of, or deeply entangled with, the pain points that the rewrite is intended to solve.
15543.
▲
by
layer8
7y ago
I wonder how many bit flips are to be expected on HDDs or in RAM for that amount of data.
15544.
▲
by
layer8
7y ago
While there is a thematic connection, SPOT is usually more of a design-time (or coding-time) principle. Caches still represent the same source, just time-delayed.
15545.
▲
by
layer8
7y ago
What they meant by DRY is otherwise known as SPOT — Single Point Of Truth — which is harder to misinterpret. The same “truth” — which can be data, values, behavior, policy, etc. — should not be defined multiple times in separate places, bec
15546.
▲
by
layer8
7y ago
I often use the name pattern `rolesByEmployee` in that situation.
15547.
▲
Blue light in the evening may be preferable
(manchester.ac.uk)
3 points
by
layer8
7y ago
|
1 comments
15548.
▲
by
layer8
7y ago
I've been using the MYN system [1] for the last couple of years for work-related todos. One aspect of it is what you could call a "priority stack". That is, it behaves like a stack, except when you reprioritize items by pulli
15549.
▲
by
layer8
7y ago
It’s not deprecated. As you say, it is needed to actually open a connection.
15550.
▲
by
layer8
7y ago
I'd recommend Eveditor ( http://eveditor.com ). Of course it would be better if Windows had something like that built-in.
15551.
▲
by
layer8
7y ago
> Take the iPhone X, launched 2 years ago, used it's around $570 today, versus the $999 it launched at. > Meanwhile, a $300 phone tends to drop down to $100 on the 2nd hand market two years later. This means the iPhone X still ha
15552.
▲
by
layer8
7y ago
According to rumors, the 2020 iPhone Pro will be reduced from 5.8" to 5.4", which could look like this (size comparison including SE): https://blogs.forbes.com/gordonkelly/files/2019/06/New-iPho
15553.
▲
by
layer8
7y ago
I always thought of it as (only) two pluses, just differently arranged (diagonally overlapped).
15554.
▲
by
layer8
7y ago
You can use a loopback file to work around that, e.g. see https://metabubble.net/linux/how-to-keep-using-dropbox-even-... .
15555.
▲
by
layer8
8y ago
The killer feature of the iPhone SE (and its predecessors) is that it can be comfortably operated with just one hand and fits in every pocket. That‘s why many people will continue to use it until it breaks, or Apple decides to release small
15556.
▲
by
layer8
8y ago
> And if a type system can not guard against run-time errors, what’s the merit of having one? The type annotations would document the programmer's assumptions and lead to fail-fast behavior. In the presented use case, it would be im
15557.
▲
by
layer8
8y ago
Nitpick: DRY isn't directly a SOLID concept. I find SPOT (Single Point Of Truth) to be more to the point than DRY, because it is explicitly about semantics and not about mere syntactic repetition.
15558.
▲
by
layer8
8y ago
The main thing to consider is which way of spending one's time will be more fulfilling in the long run.
15559.
▲
by
layer8
8y ago
And here I thought this was about how to make your own Logo interpreter in Scratch. [1] https://en.wikipedia.org/wiki/Logo_(programming_language) [2] https://scratch.mit.edu/
15560.
▲
by
layer8
8y ago
The use of the word "abstract" in "abstract class" comes from the notion of abstract data types, introduced by Barbara Liskov and Stephen Zilles in 1974 in their paper "Programming with abstract data types" [0]