r/programming • • Mar 01 '17

Programmers are confessing their coding sins to protest a broken job interview process. “Whiteboard” interviews are widely hated. They also discriminate against people who are already underrepresented in the field.

https://theoutline.com/post/1166/programmers-are-confessing-their-coding-sins-to-protest-a-broken-job-interview-process
1.0k Upvotes

717 comments sorted by

View all comments

Show parent comments

7

u/oridb Mar 01 '17

Because in the real world you are often put into a position of very elevated stress, without any of your everyday tools at hand, forced to solve a problem off the top of your head, whilst being stared at at by at least one person?

"All the servers are down, the memory is corrupted and the backtraces are trash. We need to gather around bobs machine and fix it. Now."

1

u/AmalgamDragon Mar 01 '17

And if you interview process does a better job of screening candidates for how well they can do the job, this situation won't happen.

1

u/oridb Mar 01 '17 edited Mar 01 '17

Exactly. A good interview process would filter out any candidate that didn't know reading a zip file tries to map windows times to unix times, which involves reading the timezone, which involves setting environment variables, which is a big no-no in multithreaded programs. And therefore, with a good interview process you'll never have to debug issues that have root causes like that in production.

And since you've got such a good interview process, you'll never have any engineers that don't know what every last line in the code they use and all its dependencies are.

1

u/AmalgamDragon Mar 01 '17

It will filter out most candidates, including managers, that don't know how to get the software systems their organization is building tested in such a way that "all the servers are down" type bugs are caught prior to being deployed production with no way to roll back the deployment in less time than it can be debugged. A few may get through, but the overall organization will be robust against their more frequent errors and be able to mentor them in good engineering practices.

Put another way, it will filter out people who aren't professional software engineers, rather than filtering out people who aren't professional computer science and programming test takers.

1

u/oridb Mar 02 '17

Yup, exactly. That is why AWS, Google, Facebook, and Microsoft never ever go down, and have never ever needed to do firefighting behind the scenes to fix issues that spare capacity ended up absorbing before it became visible to users

1

u/AmalgamDragon Mar 03 '17

Nope. Amazon, Google, Facebook, and Microsoft screen for professional computer science and programming test takers not for professional software engineers. At least Google and Microsoft have mostly stopped screening for professional puzzle solvers, so there's that.

1

u/oridb Mar 03 '17

Here's an example problem that I actually had to handle. Tell me how you'd solve it.

Symptom: Your network team's switches in exactly one data center are slowing to a crawl. It's spinning with 100% CPU usage. The only hardware routing packets to it directly is maintained by your team. Your last release your software is 2 weeks old, and your team has pushed no updates to it. There are hundreds of teams running code on the layer below you, and many of them are doing releases.

I'm going to say that the final issue ended up being 4 separate teams. Each of them had their software configured in a way that was theoretically fine, but tickled a bug in another team's config, that tickled a bug in another teams system. That bug was minor, and didn't cause any problems until another unrelated team rolled out their software, which triggered a flood of control plane packets. Those control plane packets were unimportant, but control plane policing was broken in the router software, so its CPU got overloaded and it fell over.

I've had other issues similar to that in most places that I've worked with large interconnected systems. I'd like to know how a more professional engineer would have prevented this. Testing is pretty easy in smaller systems, but in my experience once other code starts getting changed, you get spooky actions at a distance that needs to be debugged to find out what even needs to be rolled back.

1

u/AmalgamDragon Mar 03 '17

More context is required. Is there a single pre-production environment that everyone in the same production environment rolls out to before rolling out to production? When teams roll out to production, do all systems running their stuff update at the same time? When teams roll out to production, are the new changes all switched off by default only to be switched on post-rollout? Is there the capability to rollback updates (in totality like they never happened no matter they tried to do to the machine)? How is the network traffic being monitored?

What do you mean by "There are hundreds of teams running code on the layer below you, and many of them are doing releases." (i.e. what is a 'layer' in this context how is your layer and the layer below connected/communicating)?

1

u/oridb Mar 03 '17 edited Mar 03 '17

More context is required. Is there a single pre-production environment that everyone in the same production environment rolls out to before rolling out to production?

In this case, it also wouldn't have shown up in a small pre-production environment, because the feedback loop was only a problem when the number of servers under the switches reached a critical number that overloaded the CPU and caused it to stop processing critical control packets with acceptable latencies.

When teams roll out to production, do all systems running their stuff update at the same time?

No, that would be incredibly dangerous. Staged rollouts are important. That's the only reason this issue was contained to only one data center, but without high pressure debugging it would be difficult to ensure that it was a bad roll and not (eg) a bug in handling leap seconds or some other situation that could spread out of control. It was also critical to quickly learn who was rolling out code that was having the spooky action at a distance effect.

On the other hand, I've also seen issues where the staged rollout was the root cause -- the new version interacted poorly with the old version, and caused relatively rare (but important) misrecorded data in production. An all at once rollout there might have saved some debugging.

When teams roll out to production, are the new changes all switched off by default only to be switched on post-rollout?

Yes. In this case, 0.5% rollout was enough to trigger cascading bugs.

"There are hundreds of teams running code on the layer below you, and many of them are doing releases." (i.e. what is a 'layer' in this context how is your layer and the layer below connected/communicating)?

I worked on the networking team at that time. Everything was communicating over our stuff.

1

u/AmalgamDragon Mar 03 '17 edited Mar 03 '17

In this case, it also wouldn't have shown up in a small pre-production environment, because the feedback loop was only a problem when the number of servers under the switches reached a critical number that overloaded the CPU and caused it to stop processing critical control packets with acceptable latencies.

It would if changes in network utilization were being monitored in the pre-production environment. By that I don't mean monitoring for loads above some threshold. I mean: is there more or less traffic and do the change meet expectations? Same goes for CPU, memory, local storage, and network storage utilization. Unexpected reductions in utilizations can indicative of a problem just a much as increases.

Given:

Yes. In this case, 0.5% rollout was enough to trigger cascading bugs.

It sounds like even a less than 100% pre-production rollout would have caused enough change in network traffic to be noticeable if it were being monitored.

but without high pressure debugging it would be difficult to ensure that it was a bad roll and not (eg) a bug in handling leap seconds or some other situation that could spread out of control. It was also critical to quickly learn who was rolling out code that was having the spooky action at a distance effect.

Setting up the system to automatically roll back in the case of any issues will tell you if the rollout is bad and the audit trails should be sufficient to identify who was the source of the rollout such that they can automatically notified of the issue their rollout caused and that it was rolled back. While it won't identify if there is an integration issue between the rollout that cause the issue to be apparent in the system, the diagnosis of the integration issue can occur at a non-high pressure pace while the system isn't offline.

→ More replies (0)