Replies: 3 comments 3 replies
-
Personally, I hate the Allman style. I bend myself as expected in a project. I think it's because the first serious programming language I was educated in was Pascal with it's block terminating keyword syntax. 👍 for Allman! I also tend to violate K&R for "one-liners" like |
Beta Was this translation helpful? Give feedback.
-
I'm not particularly fussy about style either, so I tend to follow the default rules of the IDE formatter. By the way, "Beautify" confuses |
Beta Was this translation helpful? Give feedback.
-
There's the variable named |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm thinking of using VS code's "Beautify" plugin to format the code, since
custom_ofmeet.js
etc. doesn't have consistent formatting rules.I'm thinking of adding a ".jsbeautifyrc" file to the project root, but we need to decide whether to use the K&R style or the Allman style.
Most of
custom_ofmeet.js
is written in the Allman style, but the mainstream JavaScript nowadays is K&R style.Beta Was this translation helpful? Give feedback.
All reactions