Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
qsort
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
451.
▲
by
qsort
2y ago
I meant it semi-sarcastically but you don't seem to disagree? It doesn't seem to me like "soft skills" are particularly in need to be valued more than they currently are. I would argue that the opposite is often true --
452.
▲
by
qsort
2y ago
> we just tried to make people value "soft skills" more if the problem is that people do not. If
453.
▲
by
qsort
2y ago
I think the point is that htmx is in no way special. It's the same old category of vulnerability. It's why we have execvpe. It's why we have mysql_real_escape_string_no_really_we_mean_it_this_time(). I remember a similar poin
454.
▲
by
qsort
2y ago
sizeof s (fun fact: you can omit the parentheses because it's not a function, it's an operator) reports the size of the array s, which is a variable of automatic storage duration. Consider the following program: #include <s
455.
▲
by
qsort
2y ago
I work in data engineering, I have seen more ways to fuck up data than any human has any business seeing, that's not new to me. Here's some more ideas for maximum fun with CSVs: - Make sure to write your own parser! The format is
456.
▲
by
qsort
2y ago
I think the C example is meaningfully different. \0 in C is a string terminator . There is no more string after it, so you can just read the string "while (c != 0)", and there is never any need to escape it, because by definition
457.
▲
by
qsort
2y ago
Neither does a trivial variation of CSV where quotes are not special and commas must be escaped in whatever way. The separator is completely immaterial, the resulting format is identical.
458.
▲
by
qsort
2y ago
In that alternate universe nobody would have put them into some varchar column? The edge case still exists, which means that the standard would need to support it somehow, and we're back to exactly square one.
459.
▲
by
qsort
2y ago
ASCII separators are equally as broken. How do you represent a string containing the record separator in a record-separated file? Any such solution will always be broken, proof is left as an exercise for the reader. Hint: use Ogden's l
460.
▲
by
qsort
2y ago
I would argue that ML functors are significantly more general than Adapter as presented in Design Patterns, the transferable "big idea" being the underlying type theory (functors as high-kindered types) as opposed to the pattern.
461.
▲
by
qsort
2y ago
Neither of them is a fundamental idea about programming in general, unless the only languages we are considering are Java, C#, and Python spoken with a thick Java accent. Adapter is an OOP-ism. If you take, for example, any ML-family langua
462.
▲
by
qsort
2y ago
What modern version of a "commercially used language" needs patterns a la GoF? Most of them simply disappear as the language is made more expressive than the horror that was pre-standard C++. Modern Java or C# are not at all lik
463.
▲
by
qsort
2y ago
When we say "don't do X" we mean "the obvious way is wrong". If you have enough knowledge to ignore the advice, you likely are already aware of the problems with the obvious solution. I'm pretty sure you can co
464.
▲
by
qsort
2y ago
Old machines? Type "print(chr(7))" into the latest Python REPL and see what happens :)
465.
▲
by
qsort
2y ago
"A computer can never be held accountable, therefore a computer must never make a Management Decision." (1979)
466.
▲
by
qsort
2y ago
I'm not reading it that way, I don't know where you are getting "AI will eventually replace..." from, if anything he seems to have the opposite idea: "even if AI can do the type of mathematics we do now, it means th
467.
▲
by
qsort
2y ago
practical = practical for routine mathematical work, which they aren't right now, which Tao says in the article itself. Never have I ever said or implied, here or anywhere else, that proof checkers are useless and bad and stupid.
468.
▲
by
qsort
2y ago
Not a mathematician, but knowing how proof-checkers work I don't expect them to become practical without some significant future advancement, they certainly aren't right now. The main problem is that in order to work they have to
469.
▲
by
qsort
2y ago
"their time frame is maybe a little bit aggressive" has to be the nicest way I've ever heard someone say "they're full of shit".
470.
▲
by
qsort
2y ago
The reasoning is interesting though. I don't necessarily agree with it but it's not "lmao gay". A posthumous pardon was not considered appropriate as Alan Turing was properly convicted of what at the time was a criminal
471.
▲
Letters from Death Row
(asahi.com)
2 points
by
qsort
2y ago
|
0 comments
472.
▲
by
qsort
2y ago
Most software developers I know switch to the US layout for coding precisely for this reason. Square brackets are also usually much harder to reach in European layouts, while normally they have a dedicated key. Personally I use the US layou
473.
▲
by
qsort
2y ago
Paywalled so I guess I'll never know, but in spite of the scary sounding name the associated press release says the following: “Despite a large body of evidence from extraordinary efforts by investigators around the world, our committe
474.
▲
by
qsort
2y ago
It's Latin for "stone". Also used in Italian as a regional/alternative word for "pencil".
475.
▲
by
qsort
2y ago
Very few proofs in actual professional mathematics are written in a formal proof structure where what you suggest is actually possible. You definitely need to understand the underlying ideas to follow along. "rewrite in lean when"
476.
▲
by
qsort
2y ago
Remove the word "serious". It's an op-ed, we can take it for what it is. The opinion of a scientist isn't science, but might be interesting.
477.
▲
by
qsort
2y ago
Bingo. Whenever new coroutines are scheduled to be executed sometime in the future, something somewhere needs to keep them sorted so that the event loop knows how to dequeue them. It's funny to show this to someone new to CS, but I wou
478.
▲
by
qsort
3y ago
The CCP is communist like I'm Chinese. They're just run-of-the-mill nationalist authoritarians.
479.
▲
by
qsort
3y ago
Completely unhinged idea, but I have always found the traditional way of doing operator overloading (that is as special methods of a class, like Python, C++ etc.) to be a bit strange. It would be more natural to declare the algebraic struct
480.
▲
by
qsort
3y ago
Citation needed? English has one of the largest vocabularies of any language (depends on how you measure, what counts as a word is a complicated question...) and it's just as expressive as anything else. It's used in tech because
More ›