Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Kamq
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
301.
▲
by
Kamq
3y ago
If we're going for readability instead of trying to stick to the case presented above, I'd go with: for i.HasNext() { current := i.GetNext() ... } And just mutate the internal state of the struct. Prob
302.
▲
by
Kamq
3y ago
Is it really? >90% of the time, I'm just passing a context so that I can cancel the rest of the goroutines if an early one fails and I don't need to do the rest of the computation. That works just fine with throwing a context.B
303.
▲
by
Kamq
3y ago
I think more idiomatic go for the first case would be: getNext := iterableThing.Iterator() for next, ok := getNext(); ok; next, ok = getNext() { ... } Which, yeah, the range cleans it up a bit, but it's not doi
304.
▲
by
Kamq
3y ago
It's more that doing the 80% solution lets us spend time developing other things. And then we can have a bunch of other really cool stuff as long as the users are willing to work with it. Which seems like a pretty reasonable trade-off
305.
▲
by
Kamq
3y ago
That's kind of the point of wiby (the site that's doing the randomization in this post). They only index web 1.0 stuff. Not quite sure what their definition of that is, since I've seen recently updated things. Without CSS? Wi
306.
▲
by
Kamq
3y ago
> Any time you bring up the idea of accountability to “engineers” for defects in their software that cause serious, real life harm, you get a litany of excuses in response I'm generally against it, because I don't trust anyone
307.
▲
by
Kamq
3y ago
I will acknowledge that this wasn't the best code (or the best programmers). I will also cede the point that you can write good code in Java. But my point was that Java wouldn't have enforced the situation to be a compile error, n
308.
▲
by
Kamq
3y ago
> Someone made a change in a function I was calling, and it started throwing a new exception. This would have caused a compile error in Java, not a crash. I call BS here. I've worked in a few Java projects, and in every single one,
309.
▲
by
Kamq
3y ago
> Therefore it can be aggressively abused to disenfranchise public shareholders who have no say in the creation of share classes in the first place. Elaborate on this, because I think I'm misreading it. It seems to me like sharehold
310.
▲
by
Kamq
3y ago
The number of times I've been bitten by an orm and the n+1 problem... Which, I guess is fine for some internal thing that needs to handle 8 requests a day. I've kinda stopped using orms at this point. The sql is usually clearer th
311.
▲
by
Kamq
3y ago
C doesn't really know about bytes. It has chars, but I believe there are some constraints on char, specifically, they have to be big enough to hold the ASCII charset. (I'm pulling real deep here, someone correct me if I'm wro
312.
▲
by
Kamq
3y ago
> UB exists only on the compiler. Sure, but UB exists so that compilers can generally do whatever's fastest on that particular architecture. Your signed add instruction traps? Great, do that. Does one on a different architecture ove
313.
▲
by
Kamq
3y ago
I was trying to get clang to throw an error that included type information to double check what it thought the type was. Quickest thing I could think of was trying to assign to an array. The exact error in question was: error: array type
314.
▲
by
Kamq
3y ago
While CDNs are useful, you really shouldn't need them to handle HN traffic. Someone posted what the otherside of a hug looks like[0], and it's somewhere around a unique visitor every 1-2 seconds, which really shouldn't be too
315.
▲
by
Kamq
3y ago
I believe they are in C, but arrays degrade to pointers when you look at them wrong, and _those_ don't have length as part of their type. At least I'm seeing: `array type 'int[3]'` in messages when I tried to do somethin
316.
▲
by
Kamq
3y ago
I believe you're right. iirc, that's where the := notation comes from
317.
▲
by
Kamq
3y ago
This seems like a real weird strategy. Most often, a company's competent people are (at the very least) slightly underpaid and going along out of a sense of inertia. The day to day routine is comforting and interviewing is a real pain,
318.
▲
by
Kamq
3y ago
> Most projects are average by definition. Otherwise that wouldn’t be the average. You're assuming outliers in both directions don't dominate the process. As an example, let's say we have 10 projects, that have some proper
319.
▲
by
Kamq
3y ago
> in which dictionary does "forced to stay" equal to "forced labor"? This was all in the context of a job, right? Forced to stay (at the job) means being forced to do the work, presumably. Which would be forced labor,
320.
▲
by
Kamq
3y ago
Offshore generally means you're trying to slash costs. Say, hiring $10/day devs from India. Now, there are great devs in India, but they don't work for $10/day. It's the same term that was used for transitioning tex
321.
▲
by
Kamq
3y ago
My understanding is that people avoiding meat is considered a sign of the endtimes (along with people leaving the faith and avoiding marriage). At least that's my reading of 1 Timothy 4:3
322.
▲
by
Kamq
3y ago
The de facto government.
323.
▲
by
Kamq
3y ago
> Why rods? Because mega-rod and giga-rod sound hilarious to me. Also those units end up with a lot of pretty alien things as their bases, 10e-35 meters isn't super useful for human things. Whereas a rod maps pretty well to "do
324.
▲
by
Kamq
3y ago
200 years ago, killing humans that we know have consciousness was quite in vogue (generally speaking via war). Why do you think this would have been different?
325.
▲
by
Kamq
3y ago
I'm willing to adopt the metric system, but I want to use alternative base-units to screw with people. By which I mean, something like using rods, but with SI-prefixes.
326.
▲
by
Kamq
3y ago
A small city state that controlled the Hellespont (modern Dardanelles). If you're trying to transport things by water, say, along the Black Sea, things will end up in Constantinople. That isn't to say the Ottomans completely shut
327.
▲
by
Kamq
3y ago
I mean, why do you think he was looking for a new route to India? Constantinople was in unfriendly hands.
328.
▲
by
Kamq
3y ago
> 3d printers are the shitty version of replicators. That's fair. I was thinking of the ability to work with arbitrary matter as a fundamental change rather than incremental improvement, but I can see the point. > This is not a t
329.
▲
by
Kamq
3y ago
> about the philosophy or Karl Marx I don't think laymen really ever are referring to this. And if they do, they will usually clarify (or it will be obvious because it's in the context on something like the book Kapital). Same
330.
▲
by
Kamq
3y ago
I call BS on this (as in I disagree with the point, not that I doubt it was said), if only for the reason that 3D printers are allowed to proliferate. You could argue that 3D printers are still kinda shitty, and only making incremental impr
More ›