• 0 Posts
  • 64 Comments
Joined 1 year ago
cake
Cake day: June 2nd, 2023

help-circle

  • Asking your employer for more compensation because you are exerting more effort due to inexperience isn’t so different than a AAA studio charging high fees for a crappy product because of corporate bullshit and inefficiency.

    In fact, these two things tend to be two sides of the same coin.





  • I’m pretty sure per mile, train tracks are more expensive than asphalt roads. Even per passenger the cost savings are a bit questionable. A single urban rail line typically runs hundreds of millions to billions to construct, and more to operate.

    Let’s be real, there are many advantages to mass transit, including safety, easing congestion and reducing emissions. But cost? No. Just no. If that were true, a capitalist system would have already capitalized on the opportunity







  • SkyNTP@lemmy.mltoProgrammer Humor@lemmy.mlUnit Tests
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    6 months ago

    We should strive for a wide range of test cases. Real testing is done when the software is tested against a wide range of user inputs. Code coverage is no indicator of response to cases.

    Unit tests are a fantastic way of implementing test cases. I am of the opinion that most bug PRs should start with a unit test, if nothing else, a persistent reminder that: hey BTW, your user is going to input this garbage, so any logic you implement ALSO has to be resilient against that garbage.





  • A percentage is going to be more useful to a consumer than a volume anyway, especially for bottles that are consumed in part. 40% tells you a drink is going to be strong, without any further math based on whatever size drink you have poured yourself. If you wanted to know the volume alcohol of a poured drink, you’d have to linearly interpolate according to the size of glass you poured yourself, which is one step beyond just multiplying the alcohol percentage by the volume of the glass.

    So in conclusion, labeling the volume of alcohol on a bottle is only practical for beer bottles and prepackaged cocktails, etc. If you do want to know the volume of alcohol consumed, simply multiply the volume of drink consumed by the ABV%.