Yousef Naeem

Muslim Software Engineer

A ...
Read post

Node & Express

Node.js Express Best Practice tags: Node.js Express best practice Shueh Chou Lu  Dec 17, 2020 Do In CodeHandle ErrorWhat will log?CategoryDo In ConfigurationPPT Do In Code Compression: proxy > app.use(compression()) Asynchronous (async.) >> Synchronous (sync.) * The only reason to use sync. function is the time to start up server.唯一有理由使用同步函數的時機是在最初啟動之時 Static files: proxy > serve-static > res.sendFile() Console is sync! Always use async or use sync only in de...
Read post