Your way of doing things is now how things must be done. Extra points for petty and minor stuff.

  • megane-kun
    link
    fedilink
    English
    12
    edit-2
    17 hours ago

    Petty and minor, huh?

    • Dates are now YYYY-MM-DD (2025-02-25) for the short form, and dddd, YYYY mmmm DD (Tuesday, 2025 February 25) for the long form.

    • Time is now written in 24-hour notation (14:44:41)

    • The first paragraph in a section doesn’t have indentation, but all succeeding paragraphs do. For example:

      Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Vestibulum quis velit aliquet, accumsan eros id, tincidunt lorem.  Integer ac arcu elit.  Sed efficitur mi vitae viverra egestas.  Quisque sed varius nisi.  Vestibulum in cursus diam.  Ut pharetra quis nibh at semper.  Integer dictum leo eu velit condimentum, a varius mi tempor.  Sed at nunc lacinia, consequat eros sed, fringilla quam.  Proin pulvinar ante ac ipsum suscipit dictum.  In libero augue, tristique iaculis libero in, bibendum eleifend massa.  Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.  Suspendisse a risus non lacus pellentesque molestie congue non risus.  Quisque ut condimentum dui.
      
          Aenean dictum leo at commodo accumsan.  Vestibulum ullamcorper diam et arcu bibendum maximus.  Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Suspendisse porta libero sed nisi aliquam volutpat.  Nam rutrum, odio quis ultricies blandit, elit metus pulvinar diam, non condimentum tellus arcu sed eros.  Praesent nunc tellus, aliquam vitae leo sed, pellentesque placerat ex.  Aenean tincidunt libero magna, sed sagittis neque facilisis id.  Vivamus quis lectus nunc.
      
          Donec lacinia, dolor sed eleifend volutpat, massa dui elementum risus, congue sagittis tortor sem sed neque.  Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.  Pellentesque tempor risus arcu, a dapibus risus tristique in.  Ut sapien est, placerat ac lectus non, scelerisque feugiat nisi.  Nam nec luctus nibh.  Aenean id ultrices risus.  Phasellus magna enim, sodales sit amet nisi id, interdum interdum neque.  Sed scelerisque scelerisque lobortis.
      
    • There are two spaces after a full stop, except when occurring at the end of a paragraph where there should be none.

    • They will be used as a generic non-gendered pronoun and will be the default along with one. For example:

      • “Someone sent me an e-mail, but I am not sure they meant to send it to me.”
      • “Really, one should make sure the e-mail address is correct before sending an e-mail.”
    • Functions that are called in other functions will be declared before any function that calls them.

    • Functions should be around twenty lines long, and at most have three levels of nesting. Functions that are too long or have too much nesting should be revised and broken up into two or more functions.

    • Code indentation (tabs) should be set to four spaces.

    • Code will be formatted as follows.

      function (params) {
          // code
          }
      

    EDIT:

    Formatting

    • @[email protected]
      link
      fedilink
      01 hour ago

      I’m not with indenting paragraphs. And functions should be PascalCase with braces on new lines. Long parameter lists are indented as below and parameters and other variables are camelCase.

      public int MyFunction(int paramOne,
                                               int paramTwo)
      {
          return paramOne + paramTwo;
      }
      

      Otherwise a good list

    • @geogeogeo
      link
      58 hours ago

      Ok I’m on board for a lot. But PARAGRAPH INDENTATION!? DOUBLE SPACES!? I can’t with your blasphemy.

      • @Oberyn
        link
        34 hours ago

        Paragraphs shouldn’t need indents if there’s already blank space separating them