Aussie living in the San Francisco Bay Area.
Coding since 1998.
.NET Foundation member. C# fan
https://d.sb/
Mastodon: @dan@d.sb

  • 4 Posts
  • 241 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle

  • dan@upvote.autoLemmy Shitpost@lemmy.worldgotdamn
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    3 days ago

    The tweet at the top has the rest of them attached as a screenshot which does make it a bit confusing.

    Lake Superior’s tweet (the “innermost” one) came first. Tom quote-retweeted it. Lake superior replied to Tom’s tweet. Ron took a screenshot of the whole exchange and posted it as his own tweet.



  • Are you sure the caching headers your server is sending for those images are correct? If your server is telling the client to not cache the images, it’ll hit the URL again every time.

    If the image at a particular URL will never change (for example, if your build system inserts a hash into the file name), you can use a far-future expires header to tell clients to cache it indefinitely (e.g. expires max in Nginx).






  • dan@upvote.autoProgrammer Humor@lemmy.mlOverflow
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    18 days ago

    In E2E tests you should ideally be finding elements using labels or ARIA roles. The point of an E2E test is to use the app in the same way a user would, and users don’t look for elements by class name or ID, and definitely not by data-testid.

    The more your test deviates from how real users use the system, the more likely it is that the test will break even though the actual user experience is fine, or vice versa.

    This is encouraged by Testing Library and related libraries like React Testing Library. Those are for unit and integration tests though, not E2E tests. I’m not as familiar with the popular E2E testing frameworks these days (we use an internally developed one at work).



  • dan@upvote.autoLemmy Shitpost@lemmy.worldmath checks out
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    19 days ago

    Huh I didn’t realise that. I’m Australian but have been living in the USA for around 11 years.

    Australia’s consumer laws are far stricter than the USA. In Australia, the store is responsible for fitness and quality of a product, based not just on its advertising but also what sales reps in the store say to you.

    Obviously you can’t return something nor ask for a repair/replacement if you’re using it for something other than its intended purpose (like using a chainsaw on bricks or whatever), but otherwise, the law is in your favour as a consumer.

    Stores must also accept warranty returns and not say that you need to go to the manufacturer. It’s not legal to say “no refunds”.

    Products must last at least as long as a reasonable consumer thinks they should last. For example, a fridge would have to be repaired or replaced under warranty if it stops working after 4 years, even if the warranty is only 1 year, as most people would reasonably expect a fridge to last more than 4 years.

    It means some stuff costs more, but it’s absolutely worth it for the protection you get.




  • dan@upvote.autoLemmy Shitpost@lemmy.worldmath checks out
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    20 days ago

    And then interrupting that hold music at seemingly random intervals to tell you that they care about you

    I recently encountered one that paused the hold music for around two seconds before the “your call is important to us” message. I hated it because every time it happened, I thought that someone was answering the call!


  • Changing your own lightbulb was illegal in Victoria Australia until 1998.

    Australia is pretty strict about electrical stuff, and only qualified electricians can perform electrical work, including work on any electrical fixtures. Light bulbs were counted as a fixture, until the law was amended in 1998 to specifically exclude light bulbs.

    Australia is still a lot stricter than the USA in terms of electrical work you can do to your own house. It’s still illegal to replace a light switch or outlet if you’re not a qualified electrician.