4 ms·
I think it's hilarious (and typical) that the moral of the story is "I don't push without code reviews" not "I don't use bad words in test code."
by benihana 13y ago
I think it's hilarious (and typical) that the moral of the story is "I don't push without code reviews" not "I don't use bad words in test code."
- jcromartie 13y agoProfessionalism is for people who wear shirts with collars and have nice cars and families. You know, the kind of people who fund the kind of place where you can use bad words in code...
- junto 13y ago"I don't use bad words in test code." This is actually really important. We had this happen with a customer whilst UAT testing. The project schedules were under pressure and as a result the customer went nuts (rightly so) and we had to make some concessions to customer as amends. It isn't just curse / bad words. Equally as bad are comments like: "this was the customer's stupid idea not ours" Also, if you really have to output test stuff in the browser use console.log('message') and not alert('message'). Then for production you can always do this at the top of your main JavaScript include: var console = {}; console.log = function(){};
- xymostech 13y agoWhat about window.alert = function(){};