Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
goto11
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
271.
▲
by
goto11
4y ago
Depends. Denormalized means the database contains redundant data. If a query have to scan 10x or 100x as many rows due to redundant data, it is obviously going to be slower. But it is hard to say anything general since denormalization will
272.
▲
by
goto11
4y ago
I guess you could call exception an "invisible return", since it is not obvious that "foo()" may exit the current function. But "invisible return" sounds rather less nefarious than "invisible goto". I
273.
▲
by
goto11
4y ago
Tolkien took Norse mythology and completely butchered it - for example Gandalf is a dwarf in Norse mythology. I guess that would make Tolkien "exploitation for financial gain"?
274.
▲
by
goto11
4y ago
> clumsily shoving some politics down everyone's throats I assume it is the presence of dark-skinned characters which you call politics-showing? If the movies had retained Tolkiens description of half-orcs as having squint-eyes, wou
275.
▲
by
goto11
4y ago
He took the mythology completely out of context and added his own catholic morals on top. But he created a great work of fiction in its own right.
276.
▲
by
goto11
4y ago
That is not the original paint though. It is a reconstruction based on trace amounts of pigment particles found on the marble.
277.
▲
by
goto11
4y ago
This is just going in circles. There are certainly valid criticism of exceptions. But the original claim was that exceptions was like goto's, and that is just not true. A goto is a jump to a statically defined location (label or line n
278.
▲
by
goto11
4y ago
> Given a throw, you can't even know how much of the stack it would unwind No, that is the entire point of exceptions. They unwind the stack up until the level of a matching catch block, if any. Why would you want to know how many
279.
▲
by
goto11
4y ago
Elements promoted to the top layer stack according to the order they are promoted. Inside a promoted element, child elements are stacked according to the regular layout rules, i.e. same as if the element wasn't promoted. Think of the &
280.
▲
by
goto11
4y ago
> the call/return pairs are balanced no matter what. I don't get that. A function can have multiple returns and a return can return to multiple different places depending on where the function was called from. I don't see
281.
▲
by
goto11
4y ago
> Simonyi mistakenly used the word type in his paper, and generations of programmers misunderstood what he meant. Simony actually distinguish between two meanings of "type": (1) A set of valid operations for a value (2) The sto
282.
▲
by
goto11
4y ago
Exceptions are like returns, they go back up the call stack. You cant statically determine where a return will end up either, since it depends on where the function was called. > unlike a Return, the destination is not irrelevant, the pr
283.
▲
by
goto11
4y ago
There is certainly some faulty reasoning in: > I don’t like exceptions because they are, effectively, an invisible goto This is supposes to invoke dread because everyone knows goto's are evil right? But if any jump to a different pl
284.
▲
by
goto11
4y ago
Note the context. Joel is writing his examples in VBScript . VBScript was a dynamically typed offshot of Visual Basic, but did not originally give you the ability to define your own types. In any modern language you would just use a HtmlSt
285.
▲
by
goto11
4y ago
The American way is voluntary self-censorship for commercial purposes. This makes it much harder to say what exactly is allowed and not, because it is easy to see what scenes have been cut from a show but it is impossible to say what scenes
286.
▲
by
goto11
4y ago
> I'm surprised people care about the syntax... that's pretty much the least important part of the language. The syntax is the user interface of a language. It matters.
287.
▲
by
goto11
4y ago
Stacking is best controlled by order and nesting in the document structure. If the year dropdown is nested inside the data picker which is nested inside the modal form etc., then you get the desired stacking automatically, without having to
288.
▲
by
goto11
4y ago
Popups already exist on the web. Typically they are implemented by injecting an element as the last child of the body element, and then use absolute positioning on it. Last inserted element wins. This proposal just allows the same effect wi
289.
▲
by
goto11
4y ago
Fun, but entirely missing the point. You can't force a window to cover a window from an independent program, since you have no authority over that other program. But obviously you can design a popup to cover other windows in the same
290.
▲
by
goto11
4y ago
The elements in the "top layer" are stacked in the order they are "promoted" - for dialog elements this is when showModal() is called. So the element on which showModal() was most recently called is on top. If you want a
291.
▲
by
goto11
4y ago
Many comments assume this is just a way to get z-indexes "above everything else", leading to lots of clever jokes. This is not the point though. If I understand correctly, the "top layer" allows positioning elements on t
292.
▲
by
goto11
4y ago
Joins would presumably still be in the from-clause, so you get: FROM a JOIN b JOIN c SELECT b._ Here aoutocomplete helps also with the joined tables. Autocomplete would also help in subqueries: FROM a JOIN (FROM b WHERE b._
293.
▲
by
goto11
4y ago
A nullable column can always be extracted to a separate table with a non-nullable column and a foreign key. If you left-join this back with the base table, you will get the nulls again for the missing values. So to me it seem nicely symmetr
294.
▲
by
goto11
4y ago
> Colour is the perceptual result of light Great, that settles the old question: "Is an orange in a completely dark room still orange?".
295.
▲
by
goto11
4y ago
> Elixir is not just 2x but very likely anywhere from 4x to 10x more productive More productive than what? Rust, Go or Shell?
296.
▲
by
goto11
4y ago
Probably not. At least any difference will be dwarfed by the effect of prior experience by developers and available libraries.
297.
▲
by
goto11
4y ago
If a given task can be solved in both assembler and Python, then surely Python would be more than 2x as productive, given a developer with experience in both. This is why assembler is only used for tasks which just cannot be solved in a hig
298.
▲
by
goto11
4y ago
The Blub-paradox is that everyone thinks those other languages are blub but their own favorite language is the non-blub pinnacle of creation.
299.
▲
by
goto11
4y ago
The "tragic flaw" is an imprecise translation from the Greek word, which can also mean a "tragic error". Oedipus tragic error is of course that he unknowingly kills his father and marries his mother. It is not a characte
300.
▲
by
goto11
4y ago
You can't have lead actors perform actual dangerous stunts (despite what marketing might tell you). The financial risks are far to high and insurance would never accept that. Just imagine the financial loss if the actor is not able to
More ›