Bro I know this might seem selfish to ask, but can you make a video on how to migrate express to next js or at the very least how to use express with next js.
@@naimurrahman9979 Most of my application business logic code is already in express. Am contemplating using react with next or ejs for the frontend for ssr
In the part of error handling you can extract the name and code of the erro const {name,code}=error This will help in writing better custom error messages
Zod is a great choice if you're looking for a simple and performant validation library that can handle basic validation scenarios. Joi is a good choice if you need a highly customizable validation library that can handle complex validation scenarios
Brother i think there is a issue with your Mic i can't watch your video full because it hurts my ear the Mic sound sounds just like scratching in board with nails. I do want to watch the video but my ears just can't handle the mic sound
When you throw an error you should not send a 200 statuscode to the client so if there's any scenario where res.status is 200 during an error, it will default it to 500
@@internetexplorer7880by your logic this line doesn’t make sense if the status code is 201 it will send 201 and 3** will send 3** which it used for redirects and so on.