News for hackers. Stuff that matters.
Re:Evaluating the effectiveness of Google's “Testing on the ... by dang on Wednesday October 02, 2019 @06:59PM (#21141682)
Scientific papers are gradually partaking from the stash of clickbait title tricks. We've edited the one above to make it less activating.

If you post in this thread, can you please check that it's about the interesting aspects of the article? Poop jokes get old pretty quickly.

Re:Evaluating the effectiveness of Google's “Testing on the ... by jedberg on Wednesday October 02, 2019 @06:33PM (#21141505)
For those that don't want to read the article, it is about the program Google has to post little newsletters about programming tools in their bathrooms. They hang them over the urinals too.

I was at Google for an event recently and found it interesting to read as I used the urinal. It was about an internal tool though so it didn't mean much to me.

Re:Evaluating the effectiveness of Google's “Testing on the ... by btrettel on Wednesday October 02, 2019 @09:51PM (#21142804)
At the University of Texas at Austin they have a "Lavatory Safety Update" that's usually posted at eye level above the urinals. It discusses lab safety related issues.
Re:Evaluating the effectiveness of Google's “Testing on the ... by bradknowles on Thursday October 03, 2019 @04:50PM (#21152047)
When did they institute this process? I never saw it in the years I worked there.
Re:Evaluating the effectiveness of Google's “Testing on the ... by btrettel on Thursday October 03, 2019 @06:22PM (#21152893)
I'm not certain. I don't recall the signs when I started in 2013. The one EHS document I can find that mentions the posters is dated 2014: https://ehs.utexas.edu/documents/EHS-AnnualReport-2014.pdf
Re:Evaluating the effectiveness of Google's “Testing on the ... by birdyrooster on Wednesday October 02, 2019 @06:50PM (#21141617)
Facebook seems to do this also.
Re:Evaluating the effectiveness of Google's “Testing on the ... by brg on Wednesday October 02, 2019 @11:15PM (#21143230)
Facebook's similar program was started by an ex-Googler
Re:Evaluating the effectiveness of Google's “Testing on the ... by DaiPlusPlus on Wednesday October 02, 2019 @07:51PM (#21142057)
Someone did it at my building at Microsoft too for a while - nothing official though.
Re:Evaluating the effectiveness of Google's “Testing on the ... by imafish on Wednesday October 02, 2019 @06:15PM (#21141345)
Most of my best thinking at work happens on the toilet.

Don’t know exactly what I should take from that. Except that probably something is wrong about open plan offices.

Re:Evaluating the effectiveness of Google's “Testing on the ... by blarg1 on Wednesday October 02, 2019 @11:16PM (#21143234)
That and the shower.
Re:Evaluating the effectiveness of Google's “Testing on the ... by loquor on Thursday October 03, 2019 @11:50AM (#21148376)
It's weird. Going for a walk doesn't make ideas pop up in my mind. Nor does sitting still on a couch bring up ideas. But sitting in the static toilet environment does.
Re:Evaluating the effectiveness of Google's “Testing on the ... by jolmg on Thursday October 03, 2019 @06:24PM (#21152903)
Because it's an enclosed space devoid of distractions?
Re:Evaluating the effectiveness of Google's “Testing on the ... by OneMoreGoogler on Wednesday October 02, 2019 @08:07PM (#21142178)
I saw these during my 18 months at Google. They were never relevant to my work.

Working at Google you are bombarded with "nudges." The garbage cans have stop smoking signs. The plentiful candy is famously placed into jars to reduce consumption. There's signs telling you not to sit on the loo for too long. You'll get emails comparing your travel and server expenses to the average. All of this stuff is well-intentioned, but there's clearly part of the company seeking ways to manipulate its workforce.

Re:Evaluating the effectiveness of Google's “Testing on the ... by nine_k on Wednesday October 02, 2019 @08:46PM (#21142461)
During my ~60 months inside Google, these nuggets sometimes proved to be useful, telling about a newly available tools (e.g screenshot diffing in UI tests), common pitfalls (like mixing up dates from different systems with and without timezone), common best practices (don't use `now()` in test, instead, imitate the flow of time using...). These are just off the top of my head after several years outside Google.

Nothing mind-blowing or earth-shattering. A number of useful things to learn at these 30-60 seconds when you can't read anything more interesting, though.

Re:Evaluating the effectiveness of Google's “Testing on the ... by OneMoreGoogler on Thursday October 03, 2019 @01:11AM (#21143926)
I agree, it's between useful and harmless.

But who considered someone taking a piss and thought "that time could be better utilized?"

Re:Evaluating the effectiveness of Google's “Testing on the ... by dhhdhdsbdb on Thursday October 03, 2019 @05:01PM (#21152162)
I think this is a great way to spread info. You're there, probably doing nothing. And everyone has to pee!
Re:Evaluating the effectiveness of Google's “Testing on the ... by natrik on Wednesday October 02, 2019 @09:18PM (#21142637)
Could you expand more on not using now()
Re:Evaluating the effectiveness of Google's “Testing on the ... by jumpingmice on Wednesday October 02, 2019 @09:34PM (#21142729)
Using the real-time clock makes your test impossible to reproduce. Using a mock clock leads to reproducible tests. Same with calls to PRNGs: these should be injected so your test failures can be reproduced.
Re:Evaluating the effectiveness of Google's “Testing on the ... by nine_k on Wednesday October 02, 2019 @11:18PM (#21143247)
Your now() in tests depends on current moment.

You cannot test how your code behaves when midnight passes, when daylight saving time changes either way, when it's 29th of February, etc.

More importantly, you cannot reliably (let alone quickly) test how your retry and timeout handling works, especially if two threads interact, or when you do (stubbed or mocked) remote API calls. All these things are the daily bread when working with Google's services, and basically at any setup with multiple (micro)services.

Re:Evaluating the effectiveness of Google's “Testing on the ... by MrGilbert on Thursday October 03, 2019 @03:59PM (#21151436)
The first time I implemented an "IDateTimeService" in one of our applications, I was greeted with disbelief by my colleagues. Once I challenged them in running tests for certain edge cases, their mind shifted from "well, we cannot test that then" to "makes totally sense".
Re:Evaluating the effectiveness of Google's “Testing on the ... by ipsum2 on Wednesday October 02, 2019 @09:50PM (#21142802)
Another one is hiding the unhealthy drinks (e.g. soda) behind frosted glass in the fridge, so you can't see it. Kind of silly, in my opinion. Googlers are presumably adults, and can make their own decisions on what to consume.
Re:Evaluating the effectiveness of Google's “Testing on the ... by amscanne on Thursday October 03, 2019 @01:21AM (#21143973)
Retail stores put high-margin items in key locations (next to checkout, at eye level, etc.) or companies actually pay for these spots. In a company kitchen/snack area, why not put the healthy options there? Everyone still makes their own decisions, just like anywhere else. Isn't this optimization more in the employees' interest than putting the cheapest items there (e.g. soda)?

(I'm at Google. I think these kinds of nudges are mostly good. Though it's certainly something to joke about.)

Re:Evaluating the effectiveness of Google's “Testing on the ... by phasetransition on Wednesday October 02, 2019 @10:38PM (#21143038)
Yes! I noticed this at Google NYC when I interviewed there a few years ago.

Healthy (and tasty) fruit infused water was placed front and center. Sodas were hanging out in the fridges in a rather less convenient location.

Re:Evaluating the effectiveness of Google's “Testing on the ... by jrockway on Wednesday October 02, 2019 @08:46PM (#21142460)
Yes, we must free ourselves from the oppression of writing unit tests and having a tool auto-indent our code! How brave to take such a noble stand on this controversial issue!
Re:Evaluating the effectiveness of Google's “Testing on the ... by jumpingmice on Wednesday October 02, 2019 @09:07PM (#21142582)
We must also throw off the shackles of our near-perfect source code revision management system, so we can gloriously adopt the incredibly slow and notoriously unusable industry standard!
Re:Evaluating the effectiveness of Google's “Testing on the ... by OneMoreGoogler on Thursday October 03, 2019 @01:08AM (#21143906)
Example: my whole building was working in the android repo, but the ToT article would be about some tool for google3 (web) development.
Re:Evaluating the effectiveness of Google's “Testing on the ... by quux on Thursday October 03, 2019 @02:26PM (#21150241)
I was at Google for 2 years and liked "Testing on the Toilet" plus it's spinoffs "Programming on the Potty" and "Localization on the Loo" pretty useful. Especially for someone like me who came from much smaller companies where a lot of best practices or tools they wrote don't exist.
Re:Evaluating the effectiveness of Google's “Testing on the ... by jdoliner on Wednesday October 02, 2019 @05:52PM (#21141156)
This is the closest we're going to get on HN to a shitpost. Speaking personally: I know one developer who discovers lots of new tools on the toilet: me.
Re:Evaluating the effectiveness of Google's “Testing on the ... by benbristow on Thursday October 03, 2019 @11:20AM (#21148043)
I used to work in the head-office of a well-known car dealership firm in the UK. In the bathrooms they had a quote along the lines of 'the best ideas come when we least expect them'.

I found that I ended up thinking more about that quote than coming up with ideas. Kind of counter-intuitive.

Re:Evaluating the effectiveness of Google's “Testing on the ... by lez on Wednesday October 02, 2019 @06:14PM (#21141338)
I understand we're all different, but I prefer to clear my mind on the toilet.
Re:Evaluating the effectiveness of Google's “Testing on the ... by SmellyOnions on Wednesday October 02, 2019 @06:17PM (#21141365)
All I'm imagining right now is some posters promoting some tool/library beside those mental health awareness posters you usually see in the stall...
Re:Evaluating the effectiveness of Google's “Testing on the ... by madengr on Thursday October 03, 2019 @07:41PM (#21153426)
I miss bathroom humor scribbled on the wall, such as:

What are you laughing at? The joke is in your hand.

Re:Evaluating the effectiveness of Google's “Testing on the ... by m3kw9 on Wednesday October 02, 2019 @06:32PM (#21141494)
You misspelled Stools
Re:Evaluating the effectiveness of Google's “Testing on the ... by imhelpingu on Wednesday October 02, 2019 @08:51PM (#21142490)
The title is "Do Developers Discover New Tools On The Toilet?" but an overbearing mod changed it because he thinks he's Etiquette Secretary of the Internet, and probably also so he can plausibly pretend this isn't a website dedicated to Alphabet's PR.