halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to [email protected]English • 2 years ago

Does C# (or any other languages) have an official style guide like python has pep8?

message-square
47
fedilink
84
message-square

Does C# (or any other languages) have an official style guide like python has pep8?

@[email protected] to [email protected]English • 2 years ago
message-square
47
fedilink
  • @[email protected]
    link
    fedilink
    4•2 years ago

    JavaScript / TypeScript are famously free-form, but a number of styles (and style-enforcing tools) have emerged.

    “Prettier” is the most recent. It actually parses your code into an AST and then re-prints it according to its style.

    “ESLint” is the most widespread; it is more of a framework into which rules can be plugged.

    I use “XO”, which is essentially a custom eslint ruleset with a few other nice things tacked on.

    The best part of eslint/xo is the “—fix” command, which can auto-fix most mistakes.

    • stevecrox
      link
      fedilink
      2•2 years ago

      The last part is why you use an IDE.

      Several of them will ingest prettier files to build code formatting rules

      • https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
      • https://www.jetbrains.com/help/webstorm/prettier.html
      • https://marketplace.eclipse.org/content/prettier-formatter

      IDE support is normally a good way to work out what the wider community is using.

[email protected]

[email protected]

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



  • 220 users / day
  • 698 users / week
  • 2.39K users / month
  • 7.43K users / 6 months
  • 22.7K subscribers
  • 2.43K Posts
  • 36.4K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • @[email protected]
  • @[email protected]
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org