• VitabytesDev@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    3 days ago

    Thirteen months, 28 days each + one day. (Plus another day when there is a leap year).

    It would just work.

  • recall519@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 days ago

    Time zones shouldn’t exist. There should just be UTC time and you would go to work at the equivalent of your morning time.

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    3 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.

  • dandelion@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    3 days ago

    All dates should be formatted according to ISO 8601 standard (YYYY-MM-DD).

    Months should be adjusted so September, October, November, and December are the 7th, 8th, 9th, and 10th month respectively (so the literally meaning of the names accords with their actual meaning).

    Not cleaning your kitchen knife after sharpening is trashy and contaminates your food with metal shavings.

  • HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    3 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?

    • LeGrognardOfLove@lemmygrad.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 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.

      • HiddenLayer555@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        3 days ago

        Both are usable, but I just don’t understand why you’d choose the separate line style if you were starting a new codebase. I can’t see the benefit of it, but that could also be me not having enough experience with the separate line style to see it’s advantages.

        On the other hand, having the brace on the next line means that the parent statement and the code in the braces are further from each other, also more lines in the source file is more scrolling in general. You can fit less lines of code on the same vertical screen height if you have a lot of nested blocks or just generally use a lot of blocks. Especially for things like many small functions or many if blocks, being able to fit a few more on your screen is really convenient IMO.

    • pineapple@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 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.

  • mub@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    3 days ago

    There is a letter G in the word recognise. Bloody use it. What people all say is “reckonise” which is not the same word. Also driving on the left just makes way more sense.

    • Libra00@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 days ago

      driving on the left just makes way more sense.

      Only because it’s what you’re used to. Also I know there are countries (Sweden, or was it Norway?) that have switched which side they drive on, and as far as I know no one has switched from right to left.

      • mub@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        3 days ago

        I have a reason. Most people are right handed. In a Right hand drive car with manual gears your preferred hand remains on the steering wheel when you change gears. Also messing with the stereo or climate controls also leaves your preferred hand on the wheel.

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

          I think I’d prefer my preferred hand in the place of high precision, which is changing the gears… and especially the very precise twist of the volume knob if I’m messing with the radio. Honestly, the preferred hand is mostly training anyway, so by the time you learn to drive a manual without grinding your gears every other shift, you shouldn’t have an issue steering with your ‘off’ hand.

        • Libra00@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          3 days ago

          That’s a fair point actually, and one I’ve not heard before. I’m not sure it’s worth trying to convert all (checks notes) 174 countries/territories to right-hand drive, but that’s reasonable.

          • mub@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            3 days ago

            Good point. Maybe when we run out of things to screw up in the world.

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

    Single-speed bicycles suck.
    They combine the drawbacks of a geared bike with the drawbacks of a fixed gear bike.

    • beastlykings@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      3 days ago

      I’m so confused. Drawbacks of a geared bike? As opposed to what? Flintstoning it?

      I must just not be understanding what you mean.

      I’ve ridden bikes with no derailer or gears, when you backpedal, you brake.

      And I’ve ridden mountain bikes with front and rear gear changing.

      I know there are super exotic driveshaft bikes, and electric etc, but besides that, what could you be talking about?

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

        Fixed Gear advantages:

        • can slow down by pushing back on pedals -> almost no brake pad wear
        • almost no maintenance
        • can do trackstands and ride backwards
        • unique, fun riding style
        • completely quiet drivetrain
        • less interesting to thieves

        Drawback:

        • can’t switch gears

        Geared Bike advantage:

        • can switch gears

        Drawbacks:

        • basically the inverse of everything above

        Single-Speed bikes can do none of the things fixed gear bikes can do, and also can’t switch gears.

        • beastlykings@sh.itjust.works
          link
          fedilink
          arrow-up
          0
          ·
          2 days ago

          Thanks for this, but I apologize, I’m still confused.

          You’ve described fixed gear, and geared, I think we now agree as to what these are.

          But what is a single speed bike? I’ve never heard of it. Is it a geared bike, with only one gear, but still has a tensioner? So it can’t have hub brakes? Why would such a thing exist?

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

      Whaaat.

      I’m not necessarily challenging your opinion because aparently you’re going to die on this hill, but …

      This is not a tiny hill.

      But most people would say that single speed has none of the disadvantages of fixed.

      As an aside, I have 3 bikes. I’ve never ridden a fixie but holy fuck I would love to have one.