vrek@programming.dev to Programming@programming.devEnglish · 10 months agoDoes C# (or any other languages) have an official style guide like python has pep8?message-squaremessage-square42fedilinkarrow-up178arrow-down12
arrow-up176arrow-down1message-squareDoes C# (or any other languages) have an official style guide like python has pep8?vrek@programming.dev to Programming@programming.devEnglish · 10 months agomessage-square42fedilink
minus-squarestarman@programming.devlinkfedilinkEnglisharrow-up6·edit-210 months ago I’d be surprised if there is a serious language that doesn’t come with at least some semi-official style guide. Does JavaScript have one? Edit: Except google’s style guide
minus-squareEphera@lemmy.mllinkfedilinkarrow-up6·10 months agoGoogle’s, Mozilla’s and Apple’s style guides are pretty much as official as you’re gonna get here. The ‘prettier’ formatter is also rather popular and as such its stylistic choices, although that is of course moreso a hammer than a guide.
minus-squarev0rld@lemmy.worldlinkfedilinkarrow-up4·10 months agoIs JavaScript a serious language? /s Joking aside: One of Brendan Eich’s books probably contains something resembling a style guide.
minus-squaresloppy_diffuser@sh.itjust.workslinkfedilinkEnglisharrow-up3·edit-210 months agoEslint rules and prettier. I use the AirBnB ruleset as a base close to my personal preferences and then customize to my liking. I don’t really have to do any manual formatting. I just save to apply the formatting. edit: javascript
Does JavaScript have one?
Edit: Except google’s style guide
Google’s, Mozilla’s and Apple’s style guides are pretty much as official as you’re gonna get here.
The ‘prettier’ formatter is also rather popular and as such its stylistic choices, although that is of course moreso a hammer than a guide.
Is JavaScript a serious language? /s
Joking aside: One of Brendan Eich’s books probably contains something resembling a style guide.
Eslint rules and prettier. I use the AirBnB ruleset as a base close to my personal preferences and then customize to my liking.
I don’t really have to do any manual formatting. I just save to apply the formatting.
edit: javascript