Skip to main content

Command Palette

Search for a command to run...

Code crimes

Updated
1 min readView as Markdown

In my experience as a software engineer for some years, I have seen a few things that wastes lot of developer time and creates unhappiness to the programmer. If only these things are not done, would it save a lot of time and make debugging friction free, and more time can be focused on important things that matter.

  1. Respond with appropriate http status codes

    I often faced this problem where an API failed for some reason, and it sends back 200 status code. bro why,

I would like to just check the status code to check the correctness of the request, but in this case, I will have to check the body and find out what went, all this is unnecessary, and it makes development process filled with anxiety.

  1. Add null checks when dealing with unknown types

Out of many bugs I have seen, I would say this is the major bug that contributes to bug type pie chart. Which means most of the time is being spent solving things that can be easily avoided.

Thanks for reading, I hope you enjoyed it and Thats all for today, Bye!