• 0 Posts
  • 43 Comments
Joined 1 year ago
cake
Cake day: July 6th, 2023

help-circle
  • My issue with this is that it works well with sample code but not as well with real-world situations where maintaining a state is important. What if rider.preferences was expensive to calculate?

    Note that this code will ignore a rider’s preferences if it finds a lower-rated driver before a higher-rated driver.

    With that said, I often work on applications where even small improvements in performance are valuable, and that is far from universal in software development. (Generally developer time is much more expensive than CPU time.) I use C++ so I can read this like pseudocode but I’m not familiar with language features that might address my concerns.







  • I thought I would never possibly want an EV, but the acceleration of the Teslas is impressive enough to tempt me. The guy I know who has one accelerates hard enough to push me back into my seat during city driving. As in, he’s stopped at a red light and then he’s going 30 the moment it turns green. His Tesla goes from 0 to 60 in 3 seconds, as opposed to over 6 in my '08 328i. The M series BMWs can match a Tesla’s acceleration, but the BMWs cost a lot more.

    I mean, I’m still not getting an EV. But now I am tempted… Maybe if they had real, physical dials instead of a computer screen?









  • I’m not aware of any negative ramifications, but the naming is not a matter of ramifications. This isn’t just an abstract change from more body odor to less body odor. Proteins are machines, there’s a particular protein machine for moving certain molecules out of cells and into sweat, and in people with this mutation that machine doesn’t work. Consider an analogy to a light switch. It’s not a toggle between “emit brightness” and “emit darkness”. There’s a machine on the ceiling for converting electrical energy into light. When the switch is in one position that machine is functioning, and when the switch is in the other position the machine is not functioning. In other words, darkness isn’t an alternate way for the machine to function, but rather the consequence of the machine not functioning.

    The lightbulb analogy isn’t perfect because you could say that the switch and lightbulb together are the machine, and that the function of this machine includes the capability to switch on and off in response to a signal. There are many proteins that can also be switched on or off and they’re not “nonfunctional” even when they’re “not functioning”. However, this mutation doesn’t create a protein that can be switched on and off, so I suppose you can think of it like smashing a light which you can’t control with a switch. Maybe the light was annoying and you’re happier without it, but you still broke it.