Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lhorie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
331.
▲
by
lhorie
5y ago
Worth pointing out that Starbucks and restaurants around Hollywood are staffed by actor-wannabes hoping for a big break in the movie industry, many of whom never end up amounting to anything. On another corner of the spectrum, you get Paris
332.
▲
by
lhorie
5y ago
If we're going to talk about polarization, it behooves us to bring up that this isn't a either-or topic: you could take risks and succeed, avoid risks and stagnate, but also take risks and fail as well as avoid risks and succeed.
333.
▲
by
lhorie
5y ago
I think even those on the interviewer side acknowledge that leetcode style questions aren't perfect. I think the biggest misconception is the idea that memorizing the puzzle itself is the hiring criteria, when in reality it's supp
334.
▲
by
lhorie
5y ago
> Things that are difficult to test for, even on a whiteboard Agreed 100%! I'd love to explore scalable ways to test for these. I've heard of people in smaller companies who get lots of success with non-leetcode style interview
335.
▲
by
lhorie
5y ago
Having been on both sides of interviewing, I find that the majority of complaints about the status quo seems to come from people that haven't been involved in the interviewer side that much and consequently simply put forward their per
336.
▲
by
lhorie
5y ago
I think the point is that try/catch in async code is tied to the presence of await. This will run happily without falling into the catch clause: const err = async () => { throw new Error('async error') }
337.
▲
by
lhorie
5y ago
Depends on what you're doing w/ the promise variable. If at some point you start to return promises without awaiting them, then the try/catch might not catch unhandled rejections. This is a source of subtle non-happy-path bug
338.
▲
by
lhorie
5y ago
Of course there are laws that exist to restrict people. The rationale is the protection of the commons. You wouldn't want to allow willy nilly murder and arson in the name of freedom, that'd obviously be ridiculous. Let's avo
339.
▲
by
lhorie
5y ago
To clarify, I'm not disagreeing with you, nor am I the one changing the meaning of "freedom". I'm merely relaying the ideology that is commonly associated with the word nowadays in the US, in order to make an association
340.
▲
by
lhorie
5y ago
Pointing out that you can get be thrown in jail for breaking the law isn't really a good argument. The alternative to rule of law is anarchy. Just because you don't agree with specific laws doesn't mean freedom is a lie. Besi
341.
▲
by
lhorie
5y ago
One could argue that US' cultural focus on its flavor of freedom is partly at fault for why GP characterizes it as Jurassic Park. In the movie, the characters had ample freedom to go wherever they wanted (even jumping over electric fen
342.
▲
by
lhorie
5y ago
ASCII is kinda special in that it's both a way of encoding strings and it has character-to-byte equivalence. You can specify an HTTP header as being any number of characters between `\n\r` characters or any number of bytes between `0x0
343.
▲
by
lhorie
5y ago
> cutting the blob bytewise That doesn't make sense. If you're working with utf16, why would you slice bytewise? That's like slicing a zip file bytewise and wondering why it got corrupted. The whole point of the argument f
344.
▲
by
lhorie
5y ago
I wouldn't read too much into what `zig fmt` means in terms of what is supposed to be idiomatic. Like many things in zig land, `zig fmt` isn't really mature yet - e.g. it still mis-formats things like long expression chains among
345.
▲
by
lhorie
5y ago
> JSON doesn't need to be UTF-8 or a superset of ASCII to be valid. It can be any representation of Unicode, including UTF-16, UTF-32, GB 18030, etc Sure, it can also be gzipped, encrypted, etc but that goes back to the point that t
346.
▲
by
lhorie
5y ago
> it cannot leave the input data as an undecoded bag of bytes But all it's doing here is taking a hex string (which is entirely ASCII) and converting it into the respective hex representation. Since ASCII translates unambiguously to
347.
▲
by
lhorie
5y ago
See https://github.com/ziglang/zig/wiki/FAQ#why-does-zig-force-m... In a nutshell, what you're currently using is the stage 1 compiler, aka the bootstrapping compiler to compile the official zig compiler
348.
▲
by
lhorie
5y ago
IIRC the self hosting compiler will allow both spaces and tabs, but they didn't feel it was worthwhile to backport this to the bootstrap compiler.
349.
▲
by
lhorie
5y ago
Would be nice to get more clarity on what exactly is the scope of the self hosted compiler. From previous discussions, I was under the impression that people would use the self hosted compiler for development, but still be expected to use t
350.
▲
by
lhorie
5y ago
I used to prefer explicit salary ranges when my salary was in the middle of the bell curve. On the higher end of the bell curve, I've started to think explicit salary ballparks can be a bit limiting. Companies that pay top dollar are u
351.
▲
by
lhorie
5y ago
I'm curious, do you mean you're applying to companies where the interviewers actually have a say in salary negotiations? AFAIK, interviewers almost never a say on compensation, except in very small companies where your interviewer
352.
▲
by
lhorie
5y ago
I assume they mean in an apples-to-apples comparison, not tent-city in SF vs mansion in Warsaw
353.
▲
by
lhorie
5y ago
You can look up the age breakdown[0]. For ages 20-30, there's over 110 males for every 100 females in China. That's 1 in 10 males that cannot physically get a female partner of similar age (and recall, we're talking about one
354.
▲
by
lhorie
5y ago
Just looking at number of people from each sex in a group date scenario most certainly doesn't tell you much about the big picture in a culture. In east asian cultures, there's a very strong pressure for females to get married a
355.
▲
by
lhorie
5y ago
The problem with these advice posts is that they either come from people without a clue about the industry or people that have been in it for a really long time, neither of which really captures the essence of what it is like to be a junior
356.
▲
by
lhorie
5y ago
Personally, I couldn't care less what random people on the internet are doing to earn money. Your particular fascination seems like a classic case of grass-is-greener-on-the-other-side. If you're envious, why not just try doing wh
357.
▲
by
lhorie
5y ago
Back in the day, a lot of content that we take for granted today didn't even exist online (e.g. wikipedia, webmd, heck even mundane things like maps) As someone who got into the web industry through discovering content for a niche topi
358.
▲
by
lhorie
5y ago
I mean, it's "mostly within families" in the sense that most gifting occurs within family anywhere, but it certainly isn't restricted to familial contexts; you could definitely give them to friends, co-workers, teacher
359.
▲
by
lhorie
5y ago
In chinese culture, it's a pretty normal thing to give red envelopes with cash inside[0] [0] https://en.wikipedia.org/wiki/Red_envelope
360.
▲
by
lhorie
5y ago
How much work is it to then maintain this bespoke encoding? Without having much context on it, it sounds similar to having to maintain unicode identifier character tables for unicode-aware parsers (e.g. Javascript's). Updating unicode
More ›