We broke up 3 years ago because I had mixed emotions. We were happy and fun, and I like her, but I was not in love completely, and I was not thinking of marrying.
After we broke up I never forgot her, but I didn't call her or text her because I wanted her to continue her life. I didn't want to m...
I got a Thank You card for completing 3 years at the current company. I now wonder if it's really been 3 years. I guess an appraisal would be more joyful.
It's kind of funny. When I tell them I'm a programmer, people often go "oh that's so impressive, I'm not good with computers at all!". And I'm like "I'm not good with computers either.........."
Extract method ftw. Except that sometimes makes more variables than you need. I've got 12 errors due to scope issues left and most of my functions are now 10 lines or so. I have 2 or 3 100-line beasts left, but I consider that a lot better than 600 lines.
I encountered it when trying to fix an order-of-execution bug. Couldn't just flip the statements around because the variables are all over the place.
Oh, the check makes sense, the whole result needs to be different depending on if there's any items in the enumerable or not
Like "your shopping list contains x, y and z" or "there are no items on your shopping list"
I could string.Join and then check if that result is empty too, but I don't think that will make much of a difference performance-wise and it might readability-wise
I'd say it depends on the IEnumerable source in that case. If enumerating twice is expensive (even if it's just for the first object), due to a DB connection or some other expensive method, it makes sense to just store the results once.
I'm blocked from doing anything at work because I need some questions answered and some access granted, and all of the people I depend on are 3 time zones behind me
This time last year, my best friend of around 10 years (B) started dating a new coworker (C) at the place we work. From an outside perspective, the relationship seemed somewhat broken --- my friend B was really into him, and even though C seemed to be really into her, he never seemed like he want...
I think pups are like cats, they jump while walking, come close to your leg, sniff it, and bend in weird ways when you pet them, and surprisingly have that bend in their spine too.