• VitabytesDev@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    21 hours 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
    ·
    23 hours 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.

    • chobeat@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      16 hours ago

      It would just be much easier to use UTC as the standard for all cross-timezone activities. The small portion of the population who needs to think about timezones would just have to add another timezone to their digital tools and the others won’t have to do anything.

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

        • LeGrognardOfLove@lemmygrad.ml
          link
          fedilink
          English
          arrow-up
          0
          ·
          12 hours ago

          To me these are just not real concerns. I’m not trying to invalidate yours but I write a lot of code per day and I just run a cleanup tool after to match the teams style - I do a lot of consulation work in big teams and fighting for code-style issue does nothing I feel.

          I prefer to adopt the current guideline and fix real problems and fight real battles like making sure the code is testable from the get go and that OpSec is respected.

    • pineapple@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day 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
    ·
    1 day 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
      ·
      1 day 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
        ·
        1 day 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
          ·
          18 hours 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
          ·
          24 hours 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
            ·
            19 hours ago

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

  • superkret@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    1 day ago

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

    • null_dot@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 day 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.