newfold-labs / how-we-work

https://newfold-labs.github.io/how-we-work/
0 stars 0 forks source link

Standards & Best Practices #12

Closed MikeHansenMe closed 2 years ago

wpscholar commented 2 years ago

One best practice would be to use namespaced functions over function prefixes. While either is acceptable, there is less of a likelihood of a naming conflict when using namespaced functions. The real benefit, however, is that it makes the code easier to read since our brains don't have to parse away the prefix and determine where the real name starts. While import statements are necessary, our code will read more like English.

@0aveRyan I know you're doing some work in this repo today... I wasn't sure where the best place was to put this, so if it fits in with another doc your starting feel free to slot this in.