Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bccdee
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
481.
▲
by
bccdee
1y ago
You wouldn't. Rust's ? operator doesn't permit that either. If you need to put a breakpoint there, put a line break there.
482.
▲
by
bccdee
1y ago
Sure, why not? Let the programmer decide if they want one line or three lines; the tool can permit both. Gofmt is line-length-agnostic—breaking up long lines is already considered to be the programmer's responsibility.
483.
▲
by
bccdee
1y ago
Here's a non-syntactic suggestion. Could we just patch gofmt to permit this: if err != nil { return nil, err; } as a well-formatted line of go? Make it a special case somehow. My only big problem with if err != nil is that it
484.
▲
by
bccdee
1y ago
Java 1.0 was in '96. I had remembered it as being more like '98, which was why I said 00s and not 90s—1998 felt a bit late to really be "90s" for me. I wouldn't really call abstract classes interfaces. They're
485.
▲
by
bccdee
1y ago
> Access modifiers were originally invented in Simula. As far as I can tell from extensive research, the inventors and users at that time simply didn't realize that access modifiers duplicated the interface-defining features that we
486.
▲
by
bccdee
1y ago
Really? I feel like the article pointedly skirted my biggest complaint. > ## but the code is shitty, like that of a junior developer > Does an intern cost $20/month? Because that’s what Cursor.ai costs. > Part of being a senio
487.
▲
by
bccdee
1y ago
Yeah, only in Rust is the maximum value of an unsigned 16-bit integer 65535. These aren't Rust-specific syntax foibles. It's not a borrow-checker mistake or anything. These are basic CS fundamentals that it's thoughtlessly fu
488.
▲
by
bccdee
1y ago
Sure—but I can also write it pretty instantly, with some judicious copy/pasting. And the less instantly I can write it, the more petty nuances there are to deal with—things like non-trivial validation, a new database query function, a
489.
▲
by
bccdee
1y ago
> The idea that you can't specify the load bearing pillars of your structure to the AI But English is a subjective and fuzzy language, and the AI typically can't intuit the more subtle points of what you need. In my experience
490.
▲
by
bccdee
1y ago
It's not really a matter of wanting to escape them. I've used them. They're not good for writing code. They feel zippy, but you have to constantly clean up after them. It's as slow and frustrating as trying to walk a jun
491.
▲
by
bccdee
1y ago
Getters and setters definitely fall into "copy/paste + macro" territory for me. Just copy/paste your field list and run a macro that turns each field into a getter and setter. Or use an IDE shortcut. Lombok obviates all
492.
▲
by
bccdee
1y ago
> The actual lines of code might be quite different, but the approach is the same. That's not necessarily something you can copy-paste. Assuming something like "a REST endpoint which takes a few request parameters, makes a DB q
493.
▲
by
bccdee
1y ago
That's interesting to me, because saying "Delete all the screenshots on my Desktop" is not at all how I want to be using my computer. When I'm getting breakfast, I don't instruct the banana to "peel yourself an
494.
▲
by
bccdee
1y ago
To quote an excellent article from last week: > The AI has suggested a solution, but the added code is arguably useless or wrong. There is a huge decision space to consider, but the AI tool has picked one set of decisions, without any ra
495.
▲
by
bccdee
1y ago
> This makes ultimately no sense. An innovative technology company actively puts roadblocks into democratized application development. Makes sense to me. See this quote from erstwhile Disney CEO Michael Eisner: > We have no obligation
496.
▲
by
bccdee
1y ago
Classic thought-terminating cliché. Any critique of capitalism is communism, and communism invariably entails Maoist crackdowns or what-have-you; therefore it's best to "immunize" oneself even against basic critiques of capit
497.
▲
by
bccdee
1y ago
The utopian socialists were pre-Marxist, actually. Marx spent a lot of time critiquing them. They're not really around anymore. Anyway, what does it mean to "implement" a critique? All I did was point out the problems with ca
498.
▲
by
bccdee
1y ago
No. Greed is inherent to humans. No social order can eliminate greed. They can, however, mitigate the harmful effects of greed on society. In a democracy, elected leaders are not as empowered to satisfy their greed as monarchs are in monarc
499.
▲
by
bccdee
1y ago
Good question. Wouldn't it be convenient if this were one of the most written-about political subjects of the last 150 years? In short: The problem with capitalism is class striation. Society is divided into a capital-owning class and
500.
▲
by
bccdee
1y ago
Reading is good for this. Sit down with a novel and leave your phone on the other side of the room. Read. If you get distracted or lost in thought, that's fine—just don't stand up. Stay where you are. When you're done being d
501.
▲
by
bccdee
1y ago
Do you really not see the problem? A student who pastes an essay prompt into an input box and copies out the response has learned nothing. Even direct plagiarism from Wikipedia would typically need to be reworked; there will rarely be a Wik
502.
▲
by
bccdee
1y ago
It just feels like an odd gotcha to me. You're not wrong, but the literal meaning of "discovery" was never what those conversations were about.
503.
▲
by
bccdee
1y ago
You've redefined the word "derivative" so broadly as to make it meaningless. If everything is derivative, then we can no longer draw distinctions in originality. How, then, can we discuss the fact that some things are plainly
504.
▲
by
bccdee
1y ago
Sure, but allergies, substitutions, and such are very different from artistic creativity.
505.
▲
by
bccdee
1y ago
I think people overcomplicate note-taking. Make topic-specific folders for discrete topics (e.g. recipes). Anything generic, put it in a big diary file with daily entries. It's easy to scroll through my past few days of notes, and afte
506.
▲
by
bccdee
1y ago
Good thing I'm not nebulously defending creativity, then. I'm directly replying to the notion that something is derivative if it is "based on something we've experienced or seen." The fact that rote math calculation
507.
▲
by
bccdee
1y ago
These are illegible.
508.
▲
by
bccdee
1y ago
> It would be a mistake to take the banality of current LLM outputs and extrapolate that into the future. Imagine a chef, congenitally unable to taste or smell food, who has nevertheless studied a million recipes. Can they reproduce exis
509.
▲
by
bccdee
1y ago
In fairness, Columbus thought he had found India, even after other, smarter people had told him otherwise. You can't give him too much credit, especially given that he was considered a monster even by contemporary monsters like Isabell
510.
▲
by
bccdee
1y ago
I do think you're stretching the meaning of derivative. At that point, what can ever be called original? Every idea depends on pre-existing concepts. Even Newton stood on the shoulders of giants.
More ›