felfele / felfele

Decentralized social application that respects your privacy
https://felfele.org/
GNU Affero General Public License v3.0
30 stars 1 forks source link

Coding conventions #150

Open agazso opened 5 years ago

agazso commented 5 years ago

We should standardise coding conventions, the things that are not covered by TSLint.

We use different conventions in different files and it is very inconsistent sometimes. It can be very confusing when switching between different files adhering different standards. Here are some issues that I am aware of:

vmaark commented 5 years ago

I don't have a strong opinion anymore in a big portion of these questions, the reason is that many of these standards come from other languages, and in javascript the use-cases for them kind of mesh together / overlap.

agazso commented 5 years ago
vmaark commented 5 years ago
vmaark commented 5 years ago

continue discussion from https://github.com/agazso/postmodern/pull/151 about returning SomeValue | undefined We should consider using the pattern mentioned here: https://basarat.gitbooks.io/typescript/docs/javascript/null-undefined.html or using Maybe?