Fuzzy Best Practices

Getting back into development after years, I started writing a little Express server for a new project. I realised I don’t have an implicit checklist of best practices in my head anymore.

I know I need to handle errors on my endpoints and functions, especially the async ones. I’ve forgotten what errors I need to defend against. The specifics are all fuzzy. It feels vague and overwhelming.

What I need is an explicit checklist. Like a list of 16 things I must check before publishing a commit.

Maybe it’s not 16 things; it could be 36. the point is once I have a checklist, it will be easier to add, adjust, or change things as needed. Now I’m just guessing and I can already see the mess I’m going to get myself into.

 
0
Kudos
 
0
Kudos

Now read this

typescript

Variables # let apples = 5; let speed: string = 'fast'; let hasName: boolean = true; let nothingMuch: null = null; let nothing: undefined = undefined; Built in objects # let now: Date = new Date(); Arrays # let colors: string[] = ['red',... Continue →