Recent submissions

Comment · 2 years ago
And I thought "install from curl" was bad. Now we run from curl, every time?

  alias qub="source <(curl -sSL https://raw.githubusercontent.com/jamonholmgren/qub/main/src/cli.sh)"
Comment · 3 years ago
I've always been fascinated by the dissonance between what some people insist they need from an off the shelf system (bulletproof with a dedicated security team because Security is Hard, rock solid reliability because I depend on it 24/7) and what they will accept in a DIY solution (completely unsecured un-audited software with no tests and something broken every other day).
Comment · 3 years ago
> That's funny, a guy made this same offer to me at a conference once

oh wait, you're that guy

Comment · 4 years ago
I'd politely suggest that if your hearing is bad enough to be noticeable, then it is definitely enough to look into getting hearing aids. Hearing aids for those with only mild hearing loss can be very discreet.

There is evidence to suggest that living with even mild hearing impairment can accelerate cognitive decline (though I don't know if there is yet evidence that this can be prevented by using hearing aids).

Comment · 4 years ago
> Covid could've been solved in 1 month if everyone would just stay home for 1 month.

No, it couldn't. And even if it could've, that would be impossible.

Believe it or not, places outside the US did do a 'real lockdown' for a lot longer than a month, and it didn't 'solve' covid.

Comment · 4 years ago
It's not your fault you didn't know this, but it does say something about the breadth of education we receive
Comment · 4 years ago
I don't understand... why don't you just not connect it to your network?
Comment · 4 years ago
It really depends how you measure productivity. Does it make the team close their JIRA tickets faster and pump out more lines of code? Probably. But I wouldn't be surprised if it also resulted in more defects, worse designs, more tech debt, and more failed projects.

Sometimes the best thing you can do is stop someone from writing code.

Comment · 4 years ago
It is the SWAR method. Another comment explains it well, it basically treats each bit position as a 2-bit adder.
Comment · 4 years ago
How is it more flexible exactly?

I hate this idiom every time I come across it. I like to look at the header file to see the interface and important documentation, and this just obscures it. Depending on your compiler it can make debugging a huge pain as well.

Comment · 5 years ago
As someone who has to write C for their day job, I am a little bit offended by the introduction of this article, but I guess that's the point.

The code presented is trash and doesn't follow best practices - using the type system, descriptive variable names, etc. Void pointers for everything, are you serious? Of course it's hard to understand. Revealing that it's the generated code doesn't make me any more comfortable with it.

Yes, I get that you shouldn't care what the generated code looks like if you trust your input, but I don't find the predicate any easier to understand. How do I know that's correct? What if I need to debug this generated output?

Comment · 5 years ago
FWIW, I would hate working with someone like this. You don't have to be super active, socially, but treating the other people (and they _are_ people) on your team as just drones is a) not conducive to good collaboration and b) pretty damn rude.
Comment · 5 years ago
> The normal experience with C++ done well is no need for debugging

You cannot possibly be saying this with a straight face :)

Comment · 5 years ago
> It is possible to define a struct type in C with bit-fields for the individual elements, however the C standard does not guarantee the layout and order of the individual fields.

As a professional embedded developer who uses bitfields to access registers every day, this doesn't really make a practical difference. On any bare-metal or embedded project you will rely on the behaviour of your compiler, and portability is largely irrelevant if you're accessing memory-mapped registers. Probably, the manufacturer has already provided register maps using bitfields anyway.

Comment · 5 years ago

  Whenever you're called on to make up your mind,
  and you're hampered by not having any,
  the best way to solve the dilemma, you'll find,
  is simply by spinning a penny.
  No - not so that chance shall decide the affair
  while you're passively standing there moping;
  but the moment the penny is up in the air,
  you suddenly know what you're hoping. 
  -- Piet Hein, "A Psychological Tip"

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton