this post was submitted on 24 Feb 2025
114 points (99.1% liked)

Ask Lemmy

28646 readers
1225 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[–] megane_kun@lemm.ee 14 points 1 day ago* (last edited 1 day ago) (5 children)

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

[–] tiredofsametab@fedia.io 1 points 2 hours ago

Braces (and almost anything that is indented) should always end at the same column they start lest I feel like I'm physically off-balance and uneasy. First paragraph should be indented because it's a paragraph and they're indented. Otherwise, I agree.

[–] Shardikprime@lemmy.world 1 points 3 hours ago

Let's see...

Functions that are called in other functions will be declared before any function that calls them.

Okay I can dig this. Let's see-

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

[–] geogeogeo@lemmy.world 6 points 16 hours ago (2 children)

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

[–] Oberyn@lemmy.world 4 points 13 hours ago

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

[–] Landless2029@lemmy.world 3 points 14 hours ago

Yeah he lost me there.

[–] MajorasMaskForever@lemmy.world 5 points 17 hours ago

Closing bracket indented with current level?

[–] blackstrat@lemmy.fwgx.uk -1 points 9 hours 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