157 karma · joined Jul 23, 2017 (9y ago) · 41 submissions
comment 6y ago · link · parent
comment 6y ago · link · parent
Lmao... but thinking again, given the average user's bug-filing abilities, a professional bug-filer might actually be useful.
comment 6y ago · link · parent
try:
x = json['foo']['bar'][i]
catch OOB:
handle error
than to if not (json is a dict and
'foo' in json and
json['foo'] is a dict and
...):
handle error
x = json['foo']['bar'][i]
even though in the former, unchecked exceptions are used for non-bugs.comment 6y ago · link · parent
> And Cain rose up against his brother Abel. [...] With what did he kill him? R. Simeon said: He killed him with a staff: And a young man for my bruising (Gen 4:23) implies a weapon which inflicts a bruise. The Rabbis said: He killed him with a stone: For I have slain a man for wounding me (ibid) indicates a weapon which inflicts wounds. R. 'Azariah and R. Jonathan in R. Isaac's name said: Cain had closely observed where his father slew the bullock [which he sacrificed, as it is written], And it shall please the Lord better than a bullock (Ps 69:31), and there he killed him: by the throat and its organs.
From a Christian perspective, a more interesting example might be the Gospel's atomization/recontextualizations of text as Messianic prophecy ("out of Egypt I have called my son", "behold, a virgin shall be with child").
comment 6y ago · link · parent
On the contrary, the atomization and recombination of the text into new meanings is highly characteristic of Midrash. Of course, this isn't the same as the "prooftext" hermeneutic I think you're criticizing.
comment 6y ago · link · parent
comment 6y ago · link · parent
>Findings: not really
>Over half of your libraries are used by fewer than 0.1% of your executables.
Findings: Yes, lots, but mostly the most common ones. Dynamically linking against something in the long tail is pretty pointless though.
comment 6y ago · link · parent
What they lacked was usually a nice way to operate on tagged unions, ie. pattern matching.
comment 6y ago · link · parent
1. there are land masses on both sides of the saddle. This would not be true if the polytope had holes.
2. if the lakes on either side of the saddle are joined up, the only way they can do that is if the lake circles around and encloses at least one of the two land masses (Jordan curve theorem). Once the saddle point goes under, that land mass is cut off from the "mainland". This would not be true if the polytope had a handle. The lakes could be joined up by going along the handle without enclosing one of the land masses.
comment 8y ago · link · parent
Because that would consume both Strings, which doesn't make sense. The impl that exists only consumes the left string, reusing its buffer.
This seems like an odd thing to complain about since if you try it the compiler will tell you exactly what you should do instead.