• HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    29 days ago
    void main() {
        //code
    }
    

    Is better than

    void main()
    {
        //code
    }
    

    Why would you want to put it on a separate line? Are you paid by the height of the source file or something?

    • pineapple@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      29 days ago

      void main() { //code }

      No, all in one line baby!! I haven’t done JavaScript in a while but I think that will work. After coming from python I thought it was funny you could just put everything in one line.

    • LeGrognardOfLove@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      29 days ago

      Why is it better ?

      I don’t have a strong opinion, taking the style of the team I work with but why do you feel it is better?

      It’s not like putting it on the other line causes any issue.

  • starman2112@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    30 days ago

    Anyone who puts always-on blue LEDs in electronics deserve the oubliette. People who put such LEDs in electronics meant for the bedroom deserve an oubliette that’a slowly filling with water.

    • zenforyen@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      29 days ago

      That sucks, but you can put some isolation tape on LEDs.

      But I wish something horrible to those who thought it’s a great idea to make every goddamn electronic device make beeping noises.

      My water boiler, fan, washing machine. In my childhood I don’t remember everything beeping at every interaction. It makes me furious and you often cannot fully disable it.

      Once I tried to solder the beeper out but my soldering iron was probably not suitable so I failed :(

      • morbidcactus@lemmy.ca
        link
        fedilink
        arrow-up
        0
        ·
        28 days ago

        You can muffle the beeper pretty effectively with some tape, the old air fryer we had terrified one of the dogs because of the incessant beeping. My coffee scale by default beeps whenever you touch it, thankfully that’s 100% mutable.

        I also hate this.

      • starman2112@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        28 days ago

        The beeping! My damn air fryer has to let everyone in the neighborhood know that I’m making food at 3:00 am, I hate it so much

        Gonna ignore the fire alarm someday because I’ll just assume someone is air frying something

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      30 days ago

      Allow me to try and persuade you. The problem is bright blue LEDs. It’s still stupid that they make them so bright, but the problem isn’t the color. A hypothetical bright red, green, or amber LED would also be a problem.

      • deathbird@mander.xyz
        link
        fedilink
        arrow-up
        0
        ·
        29 days ago

        Shorter wavelengths hit different though. That’s why we have blue light filtering glasses, Redshift, etc.

        • a non-diffused, bright, monocromatic red led would still be painful to look at in the dark, it’s just that blue LEDs tend to be brighter + our eyes are more sensitive to blueish green light at night + the damn companies don’t bother putting a diffuser in front of the diode.

      • starman2112@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        29 days ago

        This is fair. I have had to put tape over a red alarm clock because it was too bright before. Those manufacturers also get the oubliette

    • Tenderizer78@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      30 days ago

      Or just excessively bright LEDs. Just because LEDs are super efficient, doesn’t mean they should take them as bright as they can go.

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    29 days ago

    Tabs, not spaces.

    I don’t give a shit if your arguments perfectly align to the function. It’s only semantic indication. Use the goddamn special character that has its own dedicated key.

  • Melllvar@startrek.website
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    If a motorcycle has to be ear-splittingly loud for “safety”, then it’s too dangerous to be road legal.

    • Psychadelligoat@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      30 days ago

      It’s explicitly the opposite, scientifically, according to my safety class

      The deep rumble being loud overwhelms anyone’s ability to properly locate the bike quickly, and they demonstrated this live. It’s definitely harder to locate a LOUDER bike

    • davel@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      I used to ride. People who say that know it’s just a bullshit excuse to be a dick. Just roll your eyes and/or flip them the bird.

      • GoodLuckToFriends@lemmy.today
        link
        fedilink
        English
        arrow-up
        0
        ·
        29 days ago

        No, it’s morphed into one of those pearls of wisdom that people pass down and truly believe. They all have their ‘true story’ of blipping the throttle and “suddenly the car that was moving over to smush me stopped!!!” The assholes who know it isn’t true can be discerned from the true believers by the humor they find in their tales of blasting people with sounds.

  • yaroto98@lemmy.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    Cloud-based. If a product won’t work if my internet dies, or I can’t access my data without internet or a subscription, I won’t buy it.

  • LinkOpensChest.wav@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Search engines should not use locational data including IP address to provide “more relevant” results. Checking for restaurants or weather forecast? You should have to manually add the relevant search terms. Want results in a specific language? You should have to manually apply this filter.

    Convenience is not worth the potential harm of locationally biased search results.

    For example, where I live is like White Nationalist Central Station. My search results are thus far more likely to net me results with a pro-US/nationalist skew, thus potentially entrenching or normalizing harmful beliefs.

    Whenever I’ve tried bringing this up with Techlords, I get a feeble, “B-but then you couldn’t say ‘restaurants near me’ UnU” and like … good? It’s not like it’s hard to type city and state in the search field.

    I’ve never found a search engine that even has this as an option. Even Sear XNG instances net results that are clearly aligned with the location of the instances server.

    A Kagi dev even lied to me when I was looking into that as an alternative, saying they don’t use location, when it’s pretty easy to determine that they do.

    I also don’t want a “good” algorithm. I also don’t want to see big corporate sites prioritized either. If some backwoods nobody has a site that’s more relevant, show it to me. I feel like pre-Google search engines were better, but that’s another vent for another day.

    Now where did I put my false teeth and walker???

    • werty@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      29 days ago

      The first time i searched for a business online the results came from a city on the other side of the planet. I’m ok with getting search results in my area.

    • neidu3@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      100% agree.

      To add to this, when I’m looking up something online I want info provided by the internet in general, not just by my next door hillbilly.

    • teije9@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      0
      ·
      29 days ago

      ip adress only gives the nearest big city. information like this is pretty useful to show you info based on your state/province.

    • PeacfulForest@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      29 days ago

      Not a small hill and I could not agree more. This is relevant to Noam Chomsky “manufacturing consent”.

    • eatham 🇭🇲@aussie.zone
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      30 days ago

      With duckduckgo you can disable the country filter thingo to get international results, and you can also change it to another country

      • LinkOpensChest.wav@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        0
        ·
        29 days ago

        Oh believe me, I know. DDG was the first one I tried, and I tested it with every configuration possible. Like many other search engines such as startpage and kagi, you sure can do this in the settings, but it will do absolutely nothing to stop it from using your IP address to net locationally biased results specific to your current location. You may assume it would function like this, but it doesn’t.

        I even tried their html and lite versions, but although it was less cluttered and much more pleasant to use, it still provided results that were very clearly based on my IP address.

        I’m not even sure what those settings do because they appear to have no function. Maybe they change language and currency on some sites for convenience, but again, that’s not what I’m talking about in my comment! I’m saying a search engine should not use any locational data whatsoever to adjust results. And if you reply “well, good luck finding one because it doesn’t exist,” then congratulations, you understand my comment! They don’t exist because we’ve all sacrificed our societal wellbeing for the sake of the smallest convenience.

        Even if changing it to another country/region worked (it doesn’t), we’d still have the problem of netting biased results based on what country I switch it to. That would be akin to searching while using my VPN, which once again, does not solve the problem of search engines using IP address to provide locationally biased results.

        • teije9@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          0
          ·
          29 days ago

          have you actually properly tested that the results in your location are more extremist? like compared with using a vpn on ddg?

      • superkret@feddit.org
        link
        fedilink
        arrow-up
        0
        ·
        29 days ago

        Just tried setting no country, then ducked “wine”.
        Results were definitely still from my country first.
        When I set display language to US English, results came up from the US, instead.
        When I set it to French, it shows French websites at the top.
        So the language you set affects what websites you are shown in the results. That sucks.

        But you can actually just turn off ads in the settings. That’s pretty fucking neat!

        • LinkOpensChest.wav@lemmy.blahaj.zone
          link
          fedilink
          arrow-up
          0
          ·
          29 days ago

          Even the lite and html versions of DDG will provide locationally biased search results. There’s no way around this. Best you can do is use a VPN, but then you’ve still got the problem of reading locationally biased results, just for a different location. It sucks.

          • LinkOpensChest.wav@lemmy.blahaj.zone
            link
            fedilink
            arrow-up
            0
            ·
            29 days ago

            You know what’s hilarious about this basically non-functional setting? If I toggle the switch off, it provides results based on my IP address’s location, but if I toggle it to “UK” it will also provide some results for the UK city that my town is named after, without me ever providing the name of my town lol

            DDG is a for-profit brand that’s a lot more nefarious than people think. They’ve even succumbed to AI.

  • andrewta@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    If a company has a bad interface on their electronic item I’ll not buy it. To me it’s a big hill but I guess it’s how you want to look at it. I’ll stop buying anything from that company if they keep doing it

    • davidgro@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      I would agree with you, but I still want to own a microwave. There are none with reasonable UI behavior as far as I can tell.

        • davidgro@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          Looks good actually.

          But how does it handle the door opening early? Does it still leave unused time sitting on the time dial?

          • unmagical@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            Yeah, it doesn’t clear the dials, and if you want to manually reduce the time you do need to adjust the time dial, but you get a delightful bell sound when you do so. The door does stop the magnetron when open though.

    • lemmy_outta_here@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      If i need wifi, bluetooth, or an app to use a product that shouldn’t need it (eg a toaster, toothbrush) i will not buy it. i also won’t buy a wireless device (say a bluetooth speaker) if it requires an app. I would be willing to pay $500 more to have a tv with no smart features than a ‘smart’ tv. corporations: keep your shitty malware. my phone is a temple.

    • GooberEar@lemmy.wtf
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      My new corollary: If your online e-commerce site asks customers to add a tip, even if $0 / no tip is an option, I’m not buying shit from you.

    • biggerbogboy@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      29 days ago

      I used to hate on it before I tried it at a friend’s house. Man, Hawaiian pizza is one of my favourite ones now and I will happily join you on dying on this hill.

      • Deconceptualist@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        Ew, I’ve given olives an honest shot but I just can’t even. Feta is great for a salty pairing with pineapple though!

    • Thorry84@feddit.nl
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      1 month ago

      Sweet and savory is a god tier class of food IMHO. Pineapple on pizza is just the tip of the delicious iceberg. Have you tried peaches with rice and curry? Or raisins in rice? I also like sweet and sour sauce, especially with little pieces of assorted fruits.

      My girlfriend hates it, in her opinion the only way to go with savory is salt, although she tolerates pork and pineapple on pizza, since the salty pork overpowers the sweet of the pineapple. But I love it!

      • Asafum@feddit.nl
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        Sweet and savory is an amazing combination, I’m also a fan of sweet and salty. I loveeeee me some dark chocolate covered pretzels

      • Deconceptualist@lemm.ee
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        That sounds very interesting!. Do you mean curry leaves, or a particular curry sauce? I know e.g. masaman often includes peanuts.

        • unsettlinglymoist@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          Curry powder! I’ve never tried curry leaves or curry sauce, but those sound delicious too. Whichever way you add the curry, I highly recommend trying it!

          I discovered that combo when I was living in Sweden where it’s a fairly common one that most pizza places offer. I believe the pizzas are usually called Bahamas, Afrikana or Tropicana and they always feature pineapple, banana and curry, and usually either ham, shrimp or peanuts.