@codewithvoid And also take care of your mental health. Programmers need to take their mental health seriously, it helps in productivity and well-being in the long run.
@codewithvoid Therefore incorporate both frontend and backend validation in your application..
@codewithvoid But you can restrict, force or streamline user input 😜
@codewithvoid Specially in initial interviews, while getting software requirements.
@codewithvoid True, even though the entire app is for them.
@codewithvoid It's more like "Never trust anyone/anything" 😅
@codewithvoid Never trust user input – it's like trusting a cat with your mouse pointer. 🐱💻
@codewithvoid Double space once caused some serious issues because there was no exception handling on that use case 3 hours inside meeting before boys see am
@codewithvoid here let me fix it for you Never trust, always validate and verify
@codewithvoid Especially when you have SQL database.
@codewithvoid ...unless it's with respect to your UI/UX design, then sometimes 😁
@codewithvoid second rule is never trust the output of another service, defensive programming is the way to go
@codewithvoid I agree with this 💯. I have faced issues because of this. What happened is I'm using SQL based database and node.js as backend. What happened is user is using apostrophe (eg., don't). The backend got error as there's error in query.
@codewithvoid That is so true'; DELETE FROM mysql.user