News for hackers. Stuff that matters.
Re:Ask HN: Do you write tests before the implementation? by pgcj_poster on Friday November 15, 2019 @08:15AM (#21544471)
Yeah. I also floss every day, clean up the kitchen as I cook, keep off-site backups of my personal data, call my mother regularly to thank her for raising me, read the terms and conditions to online services, keep an up-to-date to-do list, and change all my passwords once a month.
Re:Ask HN: Do you write tests before the implementation? by corodra on Friday November 15, 2019 @08:34AM (#21544606)
Suddenly I feel very lonely for the fact I do actually clean the kitchen during and right after cooking...
Re:Ask HN: Do you write tests before the implementation? by hombre_fatal on Friday November 15, 2019 @09:42AM (#21545152)
It's a weird quirk of the brain how easy it is to wait until the food hardens onto the cooking utensils before cleaning it (sometimes needing a hammer and chisel to remove it) rather than just rinsing it off immediately with water. Yet, despite knowing this, picking the former route every damn time anyways.

If you're like this, try putting on some small bluetooth headphones. Now cleaning the dishes just becomes a way to keep yourself busy while listening to an interesting podcast.

Re:Ask HN: Do you write tests before the implementation? by corodra on Friday November 15, 2019 @10:14AM (#21545441)
It's weird... I'm a real lazy person. I do the dishes immediately because of this reason, it's faster and easier. I absolutely hate doing crusty dishes. So, I'm just confused in general why people wait. Its straight up less effort to do it sooner than later.
Re:Ask HN: Do you write tests before the implementation? by na85 on Friday November 15, 2019 @11:28AM (#21546172)
Do you have kids? I always had the same opinion until I had my daughter, and then all of a sudden there is a 2 year old who needs supervision and it becomes easier to clean up after bed time.
Re:Ask HN: Do you write tests before the implementation? by corodra on Friday November 15, 2019 @11:38AM (#21546274)
Procrastinating and having your attention pulled in multiple places are two different problems. You acknowledge it's easier and want to do the dishes immediately. But when you realize your two year old is painting the walls with poop or filled the toilet with all the toilet paper and tried flushing, resulting in a flood... Everyone can agree, that takes slightly more precedence than dishes.
Re:Ask HN: Do you write tests before the implementation? by hombre_fatal on Friday November 15, 2019 @12:25PM (#21546717)
> So, I'm just confused in general why people wait.

Really, though?

It's simple procrastination which is always illogical.

Present-self buys temporary comfort at the expense of future-self.

Re:Ask HN: Do you write tests before the implementation? by TheGrumpyBrit on Friday November 15, 2019 @10:42AM (#21545714)
I fill the washing up bowl (or just the sink for the Americans) with hot water while my food is cooking. This has quite a few advantages:

1. It breaks the psychological barrier of actually starting the task of washing up, and because I'm doing other things, I don't feel like I'm waiting around for the water.

2. Dishes created during the cooking process can be cleaned quickly as they're used, without interrupting my flow. That means there's no daunting pile of dishes at the end of the meal.

3. When you finish eating, the water is already there ready for use. It's a simple dunk and wipe which is almost as quick as dumping the plates on the side.

Re:Ask HN: Do you write tests before the implementation? by that_jojo on Friday November 15, 2019 @09:46AM (#21545186)
Every time I clean right after I cook I'm stunned by how quick, easy and painless it is.

You know, the two times a year I actually do it.

Re:Ask HN: Do you write tests before the implementation? by LanceH on Friday November 15, 2019 @11:08AM (#21545954)
The difficulty for me is that a lot of food is best right off the stove. Then I have to clean it quickly afterward while happy and full, which is difficult.
Re:Ask HN: Do you write tests before the implementation? by stackola on Friday November 15, 2019 @08:46AM (#21544684)
And I feel glad I still have my mom and am calling her regularly.

Call your moms!

Re:Ask HN: Do you write tests before the implementation? by 52-6F-62 on Friday November 15, 2019 @10:07AM (#21545369)
Pff. My mother's a modern woman. We text and email.

(I feel bad I don't phone more often)

Re:Ask HN: Do you write tests before the implementation? by rch on Friday November 15, 2019 @11:22AM (#21546103)
You're not alone. It's a really satisfying practice, and for me it's almost part of the recipe. I've learned not to 'chip in' too much when others are cooking a meal though.

(I've just realized that's basically what I'd say about TDD too)

Re:Ask HN: Do you write tests before the implementation? by iamsb on Friday November 15, 2019 @11:00AM (#21545884)
Me too. In fact I dont usually eat without having cleaned up. I like to finish my day after dinner without having to worry about things I have to do. Post dinner is just for things I want to do.
Re:Ask HN: Do you write tests before the implementation? by ivalm on Friday November 15, 2019 @11:33AM (#21546220)
You are not alone! In that list cleaning the kitchen is perhaps the only thing I do sufficiently diligently:(
Re:Ask HN: Do you write tests before the implementation? by workthrowaway on Friday November 15, 2019 @12:44PM (#21546900)
me too! you know, that "flow" thing they talk about, nothing puts me quicker in the flow zone than washing the dishes. must have something to do with the sound of running water maybe...
Re:Ask HN: Do you write tests before the implementation? by jammygit on Friday November 15, 2019 @11:36AM (#21546257)
You’re not alone. Cleaning while you cook is the only way
Re:Ask HN: Do you write tests before the implementation? by vkaku on Friday November 15, 2019 @09:48AM (#21545212)
I do it too. But incrementally.
Re:Ask HN: Do you write tests before the implementation? by docuru on Friday November 15, 2019 @11:15AM (#21546026)
I guess you own a house then!
Re:Ask HN: Do you write tests before the implementation? by HeckFeck on Friday November 15, 2019 @08:19AM (#21544507)
I see you're aiming for the sainthood too. You don't also happen to help elderly women across the road, let everyone else out at a junction and never fail to say 'please' and 'thank-you'?
Re:Ask HN: Do you write tests before the implementation? by edw on Friday November 15, 2019 @08:45AM (#21544677)
At the risk of being serious for a moment, saying "please" and "thank you" are two of the lowest effort, highest reward, and plainly decent things you can do as a human.
Re:Ask HN: Do you write tests before the implementation? by nnq on Friday November 15, 2019 @09:56AM (#21545270)
Muh. It's OK to be one of those endless-pleasers-and-thankers, that's how you are... but stop being so fucking condescending about it!

...some of us "other kind" of people actually consider excessive politeness as offensive because it wastes time and pollutes conversations and after a certain we'll start actually being offensive with people like you, and you'll just stare amazed at how horrible people we can be! When in fact we're just snapping unable to put with more verbal abuse coming in terms of "please" and and "t you" from people like you.

Re:Ask HN: Do you write tests before the implementation? by stjohnswarts on Friday November 15, 2019 @11:20AM (#21546077)
Thanks for your input nnq. Please tell us more. Thanks!
Re:Ask HN: Do you write tests before the implementation? by edw on Friday November 15, 2019 @11:50AM (#21546359)
I advocated saying please and thank you, so I obviously believe that the more often one utters the phrases, independent of any context, the better human being one is?

Not everyone is relentlessly virtue signaling or karma whoring, whether in IRL or on HN.

Re:Ask HN: Do you write tests before the implementation? by qorrect on Friday November 15, 2019 @10:15AM (#21545452)
Thank you please.
Re:Ask HN: Do you write tests before the implementation? by corodra on Friday November 15, 2019 @09:04AM (#21544831)
Looks like we found the Canadian!

All jokes aside, yea... I mean... that's normally beaten into you as a child even if you grew up white trash. I would know.

Re:Ask HN: Do you write tests before the implementation? by pubkraal on Friday November 15, 2019 @08:47AM (#21544693)
I believed it until your password remark. That's a bad, bad practice.
Re:Ask HN: Do you write tests before the implementation? by kungtotte on Friday November 15, 2019 @09:25AM (#21545013)
Even with a password manager?
Re:Ask HN: Do you write tests before the implementation? by bransonf on Friday November 15, 2019 @09:46AM (#21545188)
Enlighten me, why?
Re:Ask HN: Do you write tests before the implementation? by kube-system on Friday November 15, 2019 @10:09AM (#21545385)
Not sure I'd call it a 'bad bad practice' for a user to do it voluntarily, but it's unnecessary.

I think the above commenter is thinking about the requirement a user to change a password on a timed basis. There's been a good bit of research done in this area, and the consensus is that it just causes most people to stick a number at the end of their password anyway, making the policy completely worthless at best, but it often leads to people writing their passwords down.

Re:Ask HN: Do you write tests before the implementation? by kaazhan on Friday November 15, 2019 @11:34AM (#21546232)
Do you have a link to the research you're speaking about ? My company is really about this kind of things and i'm not convinced it's really usefull
Re:Ask HN: Do you write tests before the implementation? by kube-system on Friday November 22, 2019 @07:03AM (#21604812)
It’s not research, but I would point them at NIST 800-63. These are well thought out standards that the entire US government follows. It would be tough to find a more comprehensive or authoritative source that says otherwise.

https://www.nist.gov/itl/tig/projects/special-publication-80...

Re:Ask HN: Do you write tests before the implementation? by stjohnswarts on Friday November 15, 2019 @11:20AM (#21546090)
Yeah I think it does more harm than good for sure.
Re:Ask HN: Do you write tests before the implementation? by koliber on Friday November 15, 2019 @09:43AM (#21545167)
I imagine you do some of these things, some of the time.

Do you write some tests, sometimes before coding something?

Re:Ask HN: Do you write tests before the implementation? by blaser-waffle on Friday November 15, 2019 @09:50AM (#21545224)
> read the terms and conditions to online services

sure you do

Re:Ask HN: Do you write tests before the implementation? by fennokin on Friday November 15, 2019 @09:57AM (#21545277)
whoosh
[dead]
Re:Ask HN: Do you write tests before the implementation? by EpicEng on Friday November 15, 2019 @09:50AM (#21545228)
And some people are arrogant jerks, but I'd never jump to that conclusion after reading a single comment.
Re:Ask HN: Do you write tests before the implementation? by priitmaxx on Friday November 15, 2019 @10:09AM (#21545387)
Lol