Category: Coding Horror
-
Have you ever heard of concurrent operations?
While reading some code in a legacy codebase: this should fetch the last user $user = Userlib::createnew_user('0', $_POST["str_Username"], $_POST["str_Password"], # neverending params list); $user_id = Userlib::list_user(" 1=1 ORDER BY id_user DESC LIMIT 1 "); # OMG
-
The importance of developing in a good environment
No, I’m not talking about that strange smell in your room. This is a story that happened to me a while ago. It was certainly my fault, I could be more cautious, but in the end the net result was positive. First job, first delivery, first meeting to check my work. Imagine: I was awake […]
-
Sapere prima di fare (sulla coincidenza)
Ecco un altro episodio che mi ha insegnato come sia necessario sapere prima di fare. Il compito che mi era stato assegnato era semplicissimo: mostrare una data formattata in JavaScript, tipo 7 Ottobre 2012. Che difficoltà poteva esserci?