Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Karellen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
451.
▲
by
Karellen
3y ago
I think GP's point was that `[` feels like syntax, but - importantly - isn't. Yes, `[` is a command, and has a man page and everything, but in a script it doesn't look like a command. It looks like something "special&q
452.
▲
by
Karellen
3y ago
The most authoritative form of documentation that part of a system is considered a serious design flaw and should not be used in new code, is on xitter ? I'm sure new users of the system will find that. Great job everyone. FFS
453.
▲
by
Karellen
3y ago
https://en.wikipedia.org/wiki/2021%E2%80%93present_United_Ki...
454.
▲
by
Karellen
3y ago
> they already know the main point of the book. If the only important information in the book was its main point, it wouldn't have needed to be a book. It could have been a leaflet. Or a bumper sticker - those can be very catchy. It
455.
▲
by
Karellen
3y ago
How do you stop the cycle of places in the long tail from becoming "go-to" destinations because they're in the long tail, having all the local flavour diluted from catering to the tourism, before being fully gentrified into i
456.
▲
by
Karellen
3y ago
Damn, with that kind of math, it almost doesn't seem worth investing the time and effort to ensure that the product works well! I hope people who think like that are happy with their buggy-as-shit computer games on release day. Because
457.
▲
by
Karellen
3y ago
> To me, this really shows that marketing is now the most crucial skill. It has become easy and affordable to design products, Um, did you see how many prototypes she went through? And also, 3 years - it's in the title. Designing
458.
▲
by
Karellen
3y ago
I'm always reminded of the aphorism: If my solution doesn't have to be correct, `return 0` runs in a couple of cycles and uses zero additional memory. The complication, of course, is (as the original author explains) that - with r
459.
▲
by
Karellen
3y ago
Why would having the standard set the behaviour as "unspecified" (or "implementation-defined") require a branch? Surely under those circumstances, the compiler can document doing whatever the target ISA does as its behav
460.
▲
by
Karellen
3y ago
> I suppose it would break any currently compliant C++ compiler Maybe not? I'm pretty sure that "trap" is an allowed behaviour for NaNs in some parts of the standard already, if properly documented. I don't see why un
461.
▲
by
Karellen
3y ago
The only way to eliminate uncaptured value is to set the price to exactly the amount that is the limit of what the person who most wants one is prepared to pay. Congratulations, you've captured the maximum possible value... from one sa
462.
▲
by
Karellen
3y ago
> C++ should clearly have picked Unspecified Behaviour rather than Undefined Behaviour but too late now. Why is it too late? Changing it in a later version of the standard wouldn't be a further constraint on any written code; any co
463.
▲
by
Karellen
3y ago
aka "Falsehoods programmers believe about recorded music" :-)
464.
▲
by
Karellen
3y ago
> Private prisons are problematic in their own right, but they only make up 8% of the total prison population It's not how many people they are in charge of that matters, but how much money they donate to politicians to be be "
465.
▲
by
Karellen
3y ago
> The difference here is that Coyote vs. Acme is a completed movie with very good test scores, 14 points above the family norm.
466.
▲
by
Karellen
3y ago
https://en.wikipedia.org/wiki/Clean_room_design#Case_law
467.
▲
by
Karellen
3y ago
So... practice typing with a metronome?
468.
▲
by
Karellen
3y ago
I just don't see how multiple levels of if err: return nil, err in the call stack makes things any clearer? Or how having many instances of that snippet scattered everywhere makes the code easier to read?
469.
▲
by
Karellen
3y ago
> So if we want to be really safe then we'll wrap each call with a try/catch: try: thing.set_name("Doodad") except Exception as err: raise Exception(f"failed to set name: {err}") fr
470.
▲
by
Karellen
3y ago
> There’s no real law to maximize profits. Just greed and a court precedent, I thought that in Common Law countries, court precedents are "real law". https://en.wikipedia.org/wiki/Common_law > In law, c
471.
▲
by
Karellen
3y ago
I think Cory Doctorow has an interesting counterpoint which is worth considering: > When you look at how “IP” is used by firms, a very precise – albeit colloquial – meaning emerges: > “IP is any law that I can invoke that allows me to
472.
▲
by
Karellen
3y ago
Are you sure about Scala? I'm not familiar with it, but looking at the documentation it seems that an enum is a set of values, not a set of types? https://docs.scala-lang.org/scala3/reference/enums/enums.
473.
▲
by
Karellen
3y ago
> They forgot to fill the paper work, Sorry, without a "/s", can't tell if joking. Was some form of paperwork requirement the norm for officially ending a war back in 146BC? Also, how do we know that no treaty was mad
474.
▲
by
Karellen
3y ago
> 2,131 years after the war ended . Edit: But also, that does not answer my question of why Carthage surrendering did not officially end the war.
475.
▲
by
Karellen
3y ago
> Rust enums are sum types, I wouldn't mind so much if they just called them "sum types" or "tagged unions", or even some other new name. Reusing the existing name "enum" from other languages, but diffe
476.
▲
by
Karellen
3y ago
OK, why didn't the war officially end when Carthage surrendered in 146BC? What does "surrender" even mean?
477.
▲
by
Karellen
3y ago
> Imagine you are making rice in this for the first time and you have no idea how long its going to take. How many times do you use it for the first time? Seems like a bit of an edge case to spend engineering time/add extra parts fo
478.
▲
by
Karellen
3y ago
I think the point is that particular type of obfuscation is an example, and a regex will only catch that one. If the obfuscation is substantially different, you'll need another regex which you'll have to write yourself. Whereas th
479.
▲
by
Karellen
3y ago
It looks like you just stumbled across the one good argument for having hundreds of TLDs! :-)
480.
▲
by
Karellen
3y ago
So that was the hidden purpose behind generative AI technologies all along!
More ›