Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bfrydl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
bfrydl
7y ago
> Who in their right mind would ever write a shell script I quite enjoy writing fish scripts. Largely because I can actually remember the syntax for conditionals and loops.
32.
▲
by
bfrydl
7y ago
> But store meals required purchasing food in larger quantities than necessary (think a 12-pack of hamburger buns for a two-person meal). This is the key, and one of the reasons I love Blue Apron. The meals come in such exactly portioned
33.
▲
by
bfrydl
7y ago
In the first example, the author is trying to claim that the woman died on a quest to take a selfie in a bikini. That woman was a mountain climber. She died trying to summit a 10,000 foot plus mountain. It seems disrespectful to focus on th
34.
▲
by
bfrydl
7y ago
While I too love Rust's error handling, this explanation of it seems incomplete without discussing the ? operator and its interaction with the From trait. The convenience methods on Result itself are nice of course but they aren't
35.
▲
by
bfrydl
7y ago
The web.
36.
▲
by
bfrydl
7y ago
> The median salary only accounts for the top 30% of Americans I'm not a mathematician but this doesn't sound right to me.
37.
▲
by
bfrydl
7y ago
The description suggests the syntax and type system are based on TypeScript. After looking through the docs I have to say I wish this were much more true. It seems like Microsoft Research has thrown out half the good ideas TypeScript has in
38.
▲
by
bfrydl
7y ago
Cursive in general, meaning letters connected together to minimize pen lifts, still exists because it's easier and faster than block lettering. It's the particular kind of looped cursive taught in America that was designed for dip
39.
▲
by
bfrydl
7y ago
Freelancer is where you work for yourself doing contracts to make money. Entrepreneur is where you have a Twitter full of Gary Vee memes and Elon Musk retweets.
40.
▲
by
bfrydl
7y ago
Typical cursive is a form of connected writing originally designed for pens and quills with flexible nibs. Letters like ℓ have loops because when writing with these tools the downstroke is thicker than the upstroke. The result is a recogniz
41.
▲
by
bfrydl
8y ago
> How can you restrict the very possibility of creating invalid instances of a User this way? There's nothing stopping me from using the "new" keyword and making an invalid user with a name 400 characters long. Why do you
42.
▲
by
bfrydl
8y ago
This seems like overengineering and a needless application of OOP. The author presents ideas like service classes or static factory methods as if they are self-evident, but I don't understand what would make someone write TypeScript co
43.
▲
by
bfrydl
8y ago
If you want to remember your dreams you can train yourself to do so. Keep a journal on your nightstand. The moment you wake up, write down all the details you can remember. After doing this for a while, you will remember more and more and t
44.
▲
by
bfrydl
8y ago
Is it normal for an ex-employer to help laid-off employees find new jobs? I would never expect that.
45.
▲
by
bfrydl
8y ago
The specific problem he is referring to should now be fixed with NLL, yeah. That doesn't mean lifetimes aren't still hard to learn at first, though.
46.
▲
by
bfrydl
8y ago
Either way, the system clearly works.
47.
▲
by
bfrydl
8y ago
This user is from 2017. I've read Hacker News for a long time. I think you need to get over yourself a bit.
48.
▲
by
bfrydl
8y ago
It's not relevant. I really only corrected you in case someone wants to google it.
49.
▲
by
bfrydl
8y ago
That's actually object destructuring. Object spreading is where you “spread“ an object's keys and values into a new object literal: const foo = { x: 1, y: 2 }; const bar = { ...foo, z: 3 }; // has x, y, and z
50.
▲
by
bfrydl
8y ago
I can indeed deny it. I think you are also giving yourself too much credit. I would be very surprised to see a comment like that one not at least colored grey, even without your heroic involvement.
51.
▲
by
bfrydl
8y ago
You happened to catch that comment 3 minutes after it was posted. When I came to this thread not 15 minutes later, the comment was already flagged so much it got collapsed. There is no cause for alarm or doomsaying.
52.
▲
by
bfrydl
8y ago
It's a little strange that I had to open the tutorial to find out what language this is for.
53.
▲
by
bfrydl
8y ago
Yeah if this were a Software Engineering test the correct answer to the question would be: ”First I would ask the client why they needed this. If they didn't have a good answer I would advise them not to do it. If they still want it an
54.
▲
by
bfrydl
8y ago
It's considerably worse when you see bizarre password restrictions because they usually mean the password is stored in plaintext. For example, your bank definitely is doing that. Don't use that same password for anything else!
55.
▲
by
bfrydl
8y ago
This is a Computer Science test, not a Software Engineering test. I think it's even worse as a test for the latter. I don't really agree that these questions test debugging skill. In real life if I read a bit of confusing code and
56.
▲
by
bfrydl
8y ago
I didn't mean to say this question is scandalous. It is a needlessly confusing question. No PIN I've ever heard of requires unique digits, and the question does not actually have anything to do with PINs. If a CS student taking th
57.
▲
by
bfrydl
8y ago
OP is using unsafe to store a mut pointer to a boxed value so that it can be mutated in two places. So the statement is just referring to data races.
58.
▲
by
bfrydl
8y ago
OP mentions that the use of unsafe code means it's single-threaded, so yes it's likely that RefCell could be used instead of unsafe code.
59.
▲
by
bfrydl
8y ago
I took a look at the sample questions for the test, having never heard of it. It's 66 multiple choice questions, and many of them seem like “gotcha” questions where one of the answers is an off-by-one error or something like that. And
60.
▲
by
bfrydl
8y ago
Wow, just goes to show you journalists will editorialize anything!
More ›