Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Skeime
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
Skeime
3mo ago
The rectangle case is just choose(w+h, h), with w, h being the width and height, respectively. (Or choose(w+h, w), which is the same.) Depending on how well you know binomial coefficients, this can also lead you to the dynamic programming s
2.
▲
by
Skeime
5mo ago
Lots of formatters also unify things like trailing commas, so it would be slightly more involved than this.
3.
▲
by
Skeime
5mo ago
I feel like you are describing that the parser is too lenient rather than too picky. It could just require you to always put `let` and `in` on their own lines, in which case the indentation makes sense, I think. It's only when trying t
4.
▲
by
Skeime
5mo ago
Isn't the Macintosh desktop (with Cmd as the modifier for standard shortcuts) older than Windows and Linux desktops? So historically, it's not Apple that deviated but the others? (I did not do an extensive search into this, so the
5.
▲
by
Skeime
5mo ago
I think modern browsers are actually quite good here. They show a template in the form TT.MM.JJJJ for me (so the German equivalent of MM/DD/YYYY, with the usual order and separator in German). I can just type the date, including t
6.
▲
by
Skeime
5mo ago
Mobile keyboards also do have the advantage that they can at least change the label of the button; so writing Submit on the Enter key if it submits.
7.
▲
by
Skeime
6mo ago
I am also at the office almost every day because I think it's better for my mental health and food. But I also appreciate that for many, it's different, so actually having the choice individually is nice.
8.
▲
by
Skeime
6mo ago
Wouldn't it also be much better to evaluate the Taylor polynomials using Horner's method, instead? (Maybe C++ can do this automatically, but given that there might be rounding differences, it probably won't.)
9.
▲
by
Skeime
7mo ago
I wrote "predominant", not "official". And I think that is still true. Also, from what I can tell using the site, it does not serve as a full dictionary. Rather, it lists the general rules of German orthography (as decid
10.
▲
by
Skeime
7mo ago
Fun fact: I looked this up in the online version of the Duden (the predominant German dictionary). It does have an entry "Black Hole" (so the English term!) but not for "schwarzes Loch", which is the normal German term f
11.
▲
by
Skeime
7mo ago
I don't quite get what you mean here. While you need to allow infinite expansions without repeating patterns, you also need to expansions with these pattern to get all reals. Maybe the most difficult part is to explain why 0.(9) and
12.
▲
by
Skeime
7mo ago
I think that's basically the same reason, right? XML itself is bloated if you use it as a format for data that is not marked-up text, so it comes with bloated APIs (which where pushed by Java/.NET proponents). I believe that if XM
13.
▲
by
Skeime
8mo ago
This article is weird. It wants to shoot against JSON, but then has to make half of its arguments against YAML instead. JSON has no "ambiguity in parsing", JSON has no indentation-based syntax, and JSON has no implicit typing to t
14.
▲
by
Skeime
8mo ago
I assume that "all the different levels" might not exist yet. The author is probably creating them a bit in advance, and will keep going as long as they're motivated. Having a regular schedule for new releases helps, and doin
15.
▲
by
Skeime
10mo ago
There is also the problem that they decided to make all references nullable, so `NullPointerException`s could appear everywhere. This "forced" them to introduce the escape hatch of `RuntimeException`, which of course was way overu
16.
▲
by
Skeime
11mo ago
And here I was, thinking everybody already knew XKCD 1053 ...
17.
▲
by
Skeime
11mo ago
But XML was designed as a markup language. That is was often used for configuration is not its fault. (And it works much better for its original purpose, where the otherwise strange distinction between attributes and child nodes actually
18.
▲
by
Skeime
1y ago
(Without knowing the precise nature of these laws) I would expect that they don't forbid you to store backups elsewhere. It's just that they mandate that certain types of data be backed up in sufficiently secure and independent lo
19.
▲
by
Skeime
1y ago
I generally agree that treating substrings that are numbers as numbers is a good default for most users in most situations. However, for hex numbers this simply won't give good results because some of them will just happen to not conta
20.
▲
by
Skeime
1y ago
I did have one or two math professors who would use x_0 and x_1 instead of x_1 and x_2 when they had to name two objects. But I have also seen places where 1-based indexing was used despite being "obviously wrong". I don't qu
21.
▲
by
Skeime
1y ago
Dijkstra is right, of course. However, most math texts still use 1-based indexing. If you want to translate them into code, it's easier when the conventions match. (Now, if you had a proposal for switching math over to 0-based indexing
22.
▲
by
Skeime
1y ago
But the second interpretation only makes sense if the last item somehow deserves special treatment (over, say, the second-to-last item). Otherwise, you should similarly argue that the previous second-to-last item should also show up in the
23.
▲
by
Skeime
1y ago
Even with a keyboard shortcut, I never found it to be truly satisfying. I cannot quite recall what was annoying, though. Maybe you cannot space back into the formula after closing it? (I certainly recall having the experience of typing a fo
24.
▲
by
Skeime
1y ago
Last time I checked, Word was also basically untenable for math-heavy writing because there was too much procedure involved in setting a formula. This is fine if you need one here and there, but if you have lots of formulas (including many
25.
▲
by
Skeime
1y ago
RST disqualifies itself immediately by making inline markup un-nestable, though.
26.
▲
by
Skeime
1y ago
I don't use Haskell nearly enough to call myself a Haskeller but I will still disagree. Yes, operator sections are yet another thing to learn but I find them very intuitive, and actually easier to read than the equivalent lambda expres
27.
▲
by
Skeime
1y ago
This is not necessary. Practiced German speakers generally do not struggle with splitting words into their components because syllables follow relatively predictable patterns. You will run into ambiguities from time to time, of course, but
28.
▲
by
Skeime
1y ago
Context, maybe just for others: Schiff is ship and Fahrt is ride, so eine Schifffahrt is a cruise (and without the article, it is also the term for seafaring in general). Anyway, you can see that Schiff ends with two Fs and Fahrt
29.
▲
by
Skeime
1y ago
Yes, and this is also a mistake, hence the <button> element.
30.
▲
by
Skeime
1y ago
Trying to shoehorn this onto the existing headings was a mistake. They should have introduced a new <h> or maybe <ha> (heading-automatic) element for this. Plus, support in the form of a CSS pseudoclass like :heading( n ), which
More ›