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

help-circle




  • I disagree. You should have validation at each layer, as it’s easier to handle bad inputs and errors the earlier they are caught.

    It’s especially important in this case with email because often one or more of the following comes into play when you’re dealing with an email input:

    • You’re doing more than sending an email (for ex, creating a record for a new user).
    • The UI isn’t waiting for you to send that email (for ex, it’s handled through a queue or some other background process).
    • The API call to send an email has a cost (both time and money).
    • You have multiple email recipients (better hope that external API error tells you which one failed).

    I’m not suggesting that validation of an email should attempt to be exhaustive, but a well thought-out implementation validates all user inputs. Even the underlying API in this example is validating the email you give it before trying to send an email through its own underlying API.

    Passing obvious garbage inputs down is just bad practice.




  • The entire article seems designed to confuse if not intentionally mislead the reader.

    “Unconditional” certainly would have fit in the title.

    Or, if not, it could have been added to the text below the title that instead juxtaposes Republican opposition as if to suggest Bernie has the same interests as Republicans.

    Or, it could have at least been in the first paragraph where they state Bernie’s opposition again.

    But no, you have to read through nearly half the article to find that important qualifier in paragraph 5.

    It’s hard to imagine this is anything other than an attempt to misrepresent his position.



  • You should get 33% more pay as the full work force productivity would be 4/3 of the original in your example.

    This difference might be clearer with an example where only half of the work force is required to match the original productivity. In this case, if the full work force continues to work, productivity is presumably doubled. That’s not a 50% increase. It’s 200% of the original or a 100% increase. So the trade-off should be between 50% fewer working hours and 100% more pay.

    Of course, instead you’ll work the same hours for the same pay and some shareholders pocket that 100% difference.











  • Unfortunately, this ineptitude will never affect a large portion of their support. House Democrats and Biden are already positioned for blame by far-right media. Ignorant arguments like Democrats helped remove McCarthy or Biden can’t get anything done abound.

    Simultaneously, some on the far-right are actually happy that the house is dysfunctional because they see it as a way to stop spending increases or block other legislation. It’s a very similar position that got Trump elected, where the goal for many was simply disruption, because they’ve been convinced that the government is constantly working against their interests.