The styleguide you pick doesn’t really matter

A few days ago, one of my students was evaluating the differing decisions and choices made around code structure and organization in a few popular coding styleguides.
Should you use underscores or dashes in file names? camelCase or snake_case or kebab-case? What’s the right way to structure your file directories? Function declarations or function expressions?
Honestly, it doesn’t matter.
The most important thing about any styleguide is not the specific choices, but consistency in implementing them.


This content originally appeared on Go Make Things and was authored by Go Make Things

A few days ago, one of my students was evaluating the differing decisions and choices made around code structure and organization in a few popular coding styleguides.

Should you use underscores or dashes in file names? camelCase or snake_case or kebab-case? What’s the right way to structure your file directories? Function declarations or function expressions?

Honestly, it doesn’t matter.

The most important thing about any styleguide is not the specific choices, but consistency in implementing them. One approach to naming things or declaring functions is not inherently better than another other.

The benefit styleguides bring is in the predictability from project to project and developer to developer that you get from that consistency.

Pick the approach that feels more comfortable and natural to you (and, if you’re working with a team, the rest of the team), document it, and then get on with writing your code.


This content originally appeared on Go Make Things and was authored by Go Make Things


Print Share Comment Cite Upload Translate Updates
APA

Go Make Things | Sciencx (2021-08-17T14:30:00+00:00) The styleguide you pick doesn’t really matter. Retrieved from https://www.scien.cx/2021/08/17/the-styleguide-you-pick-doesnt-really-matter/

MLA
" » The styleguide you pick doesn’t really matter." Go Make Things | Sciencx - Tuesday August 17, 2021, https://www.scien.cx/2021/08/17/the-styleguide-you-pick-doesnt-really-matter/
HARVARD
Go Make Things | Sciencx Tuesday August 17, 2021 » The styleguide you pick doesn’t really matter., viewed ,<https://www.scien.cx/2021/08/17/the-styleguide-you-pick-doesnt-really-matter/>
VANCOUVER
Go Make Things | Sciencx - » The styleguide you pick doesn’t really matter. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/17/the-styleguide-you-pick-doesnt-really-matter/
CHICAGO
" » The styleguide you pick doesn’t really matter." Go Make Things | Sciencx - Accessed . https://www.scien.cx/2021/08/17/the-styleguide-you-pick-doesnt-really-matter/
IEEE
" » The styleguide you pick doesn’t really matter." Go Make Things | Sciencx [Online]. Available: https://www.scien.cx/2021/08/17/the-styleguide-you-pick-doesnt-really-matter/. [Accessed: ]
rf:citation
» The styleguide you pick doesn’t really matter | Go Make Things | Sciencx | https://www.scien.cx/2021/08/17/the-styleguide-you-pick-doesnt-really-matter/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.