Tag Info

Hot answers tagged

11

As a general rule, problems are worth fixing when the expected benefit exceeds the expected cost. Thread safety is no exception from this rule, it's just that the way of calculating the risk that determines the expected cost is particularly complex and ill-understood by many. To begin with, threading safety is not on many people's radar. They will simply ...


6

Studies? Companies have been doing this for years, where possible. If you ever pay attention to the ads you're shown on Facebook, it should be immediately obvious that they are very much gender-targeted. Of course, in that environment you don't have to do any work to find out the user's gender, since they've told Facebook. Google adwords also allows gender ...


5

Why designed natural languages are not common There are three reasons why you learn a natural language: Your parents or environment speak a language, and you naturally try to understand what they are talking about. Your school requires you to learn a couple of foreign languages. ohmygosh {Esperanto,Quenya,Klingon,Lojban} is awesome because I am ...


3

I would fix this bug, not just because of the race condition, but also because the version where you call Now once at the start and save it is much easier to reason about in general. Basically, the more predictable a function is, the easier it is to understand. Now is, in a way, very unpredictable (it might return different values every time you call it), ...


2

The main difference between a device driver and a library is that the purpose of a device driver is to control some hardware component. Device drivers can either directly control I/O pins of the processor (like the SPI driver in your example is likely doing), or they can use the services of a lower-layer device driver to communicate over a communication ...



Only top voted, non community-wiki answers of a minimum length are eligible