Code from Dude

Recent writing

Page07 / 08
Browse the index15 topics

Jan 27, 20231 min

mhowls (Must have or we look stupid)

"Must have or we look stupid" is applicable all the tasks that you do, all the questions that you ask to everyone. Say you're developing a login / signup page. at base minimum it should handle positive login and negative login cases. extensive validations, unique username check comes after those first two cases. Say all the testing is completed and we launched it to production. As a first step QA engineer will do a sanity of those bare minimum cases. if those didn't work, ultimately we will be stupid in-front of your customers right?. but have we thought about this while we ask questions to others. before asking questions to our seniors or fellow developers, we should have explored / tried very obvious solutions first ourselves. most of your team mates will be helpful even if you ask stupid questions. but doing basic exploration is the justice we can do those helpful people. and also yaa, we don't need to look stupid after asking a silly question. be a QA engineer for your own questions.

Oct 2, 20221 min

Ostrich algorithm

With ever growing tech debts in any software products, sometimes we are overwhelmed with the number of backlog items. let's say we have a email validation in website during sign-up. we might want to do uniqueness and email format and max length of email according the RFC standard. we can only prevent case one by invoking backend. but we can prevent user inputting case two and three with plain javascript code. even if we forgot to add length validation, we will validate the email ownership by sending a mail to the inputted email. at worst case we will send invite link to invalid mail. according to wikipedia,

the ostrich algorithm is a strategy of ignoring potential problems on the basis that they may be exceedingly rare. It is named after the ostrich effect which is defined as "to stick one's head in the sand and pretend there is no problem". It is used when it is more cost-effective to allow the problem to occur than to attempt its prevention.

we can very well ignore the length validation since, anyways it will be validated in some other means. although email address RFC standard most likely won't change, maintaining the RFC standard based validation in our code is still and overhead. we can be ostrich in this case and pretend there is no problem.

Code from Dude

Engineering, systems, and the decisions behind durable work.

© 2026, Gokul Prabhu