The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
By "unit tests" you probably mean "unit tests, according to test-driven-development standards" (or a TDD variant).
Problems with this idea:
1. You can't learn TDD by code snippets and basic intuition; you learn its theory by organized study, and then do lots of exercises to solidify the knowledge.
2. The vast majority of unit tests written in the industry are by people who don't understand TDD basics. The answers with unit tests will be written (and upvoted) by people who don't understand TDD, accomplishing nothing for beginners hoping to gain useful knowledge.
3. TDD is not as widespread or useful to the industry as it appears. People pay lip service to how wonderful it is, clutter their code with useless unit tests not written according to any real standard, and then proceed to ignore all those useless unit tests 99% of the time (except for the 1% of the time where they talk about how wonderful and useful the unit tests are).
It doesn't matter how quickly and creatively you solve the problems, the wife will find you something to do immediately...
(As they say the greatest pain of a wife is seeing her husband sitting without any project to do)
well yes, projects are all fine, but during the project the wife's role changes:
- "why do you have to make so much mess?"
- "when will it be done? I'm expecting people over soon"
- "make sure that you ..."
- "do you know what you are doing?"
that's not counting the offers to help [when you know she can't, wont or will make it harder]
I know someone who downloads pretty much anything and everything he can find (whether he's got a use for it or not) because, the way he describes it, he's paying for the bandwidth anyway, so he might as well keep his router busy downloading stuff all the time.
I'm told being married is the same--she married you to do things she can't/won't do herself, and she hates to see you not being busy.
I'm guessing the key to a happy marriage is to make sure you always look busy.
I picked up a few items for lunch at the cafeteria and there was this cashier woman who took my payment. The cutlery box is usually just beside the till, which I found only had forks and knives. I immediately had an ear-to-ear smile, and told her with gleeful eyes: "There is no spoon" (I did my best with the voice).
The lady said "I'm sorry, I'm sorry", started backing away and went straight into the kitchen and shrieked "somebody bring the spoons from the dishwasher, please". She must have taken me either for some kind of a psycho creep, or a en entitled prick.
I giggled at the dude behind me in line, and said "I can't believe there was a real-life scenario that let me tell someone 'there is no spoon', but I think she unfortunately didn't get it".
This dude's face turned almost pale, and he responded confusingly: "Sorry mate, the cutlery comes from the dishwasher and the staff could sometimes be behind in replenishing it at the front. You could drop in a complaints/compliments form on the box as you go out".