Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "why are you always null with me"
I love it when unethical companies' marketing chaps assume that I care about their SMS garbage more than I get pissed off by it. Damart, I didn't even know about your existence or what the hell you do as a business (selling woman clothes apparently.. am I a woman?!) until you shoved your ad crap into my face, and Unigro I really don't have a pending contract with you so kindly fuck off with your reminders (that are in French but am I a Walloon? No!).
Makes me wonder though, with email I usually just give everyone a different email address to deflect spam - since I can reroute email to any particular address straight to /dev/null on the server if so desired. With SMS and SIM cards that isn't really possible.. hence why I'm always so hesitant about sharing my phone number. In email the addresses are scraped off the internet.. but phone numbers? How do such shitcompanies even obtain those?! Their level of pushiness and unethical behavior boggles my mind.8
--Dev is from a different team. String1 has a date value coming from an interface file that should always be yyyy-mm-dd format. And this "senior" dev extracts mm, dd and yyyy from string1 into 3 separate vars str_mm, str_dd and str_yyyy and even wrote a function to validate whether the month, day and year are all valid else returns false
Me: Why are you extracting the mm, dd and yyyy from your string1 just to validate them? Define a date var and assign string1 to that instead
Dev: Yeah but then if the string1 contains invalid date the date var will be null after assignment
Me: Exactly you thick-headed waste of space!
What I really said: Yup so if the date var is null after assignment then it's an invalid date
Dev: But I need the invalid date value to be printed on the error report. If the date var is null the report will show blanks
Me: WTF is wrong with you? You have string1! Take a shit on your hands and then slap yourself twice!
What I really said: My bad... Ah but then you can use the string1 var that holds the invalid date *smiles*
Me: Oh yeah! Thanks dude! *smiles and leaves*1