-Поиск по дневнику

Поиск сообщений в rss_thedaily_wtf

 -Подписка по e-mail

 

 -Постоянные читатели

 -Статистика

Статистика LiveInternet.ru: показано количество хитов и посетителей
Создан: 06.04.2008
Записей:
Комментариев:
Написано: 0


Representative Line: An Equal Crunch

Вторник, 13 Ноября 2018 г. 14:30 + в цитатник

Rina works in an environment which tends to favor crunch. It's a bit of a feast or famine situation, where they'll coast for months on a pretty standard 9-5 schedule, and then bam, suddenly it's 18 hours days.

No one particularly likes those periods, and code quality takes a nosedive. Co-worker Rusty, though, starts making utterly bizarre decisions when stressed, which is how Rina found this line while doing a code review:

int count = stackRepository.getQueryCount(queryPredicate); if(count > 0 && count < 2) { stackEngine.process(); }

"Um... what exactly are you doing with this?" Rina asked.

"Oh, yeah, well, we shouldn't call the process method unless the count is exactly equal to one," Rusty replied.

"Equal to one," Rina repeated, slowly.

Rusty facepalmed. "Crap. You're not gonna tell anyone about this, are you?"

"Your secret's safe with me," Rina said.

That line got caught before going too much further, but when things get really crunched, code reviews start to go out the window. Who knows what other strange choices lurk in that codebase?

[Advertisement] Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!

https://thedailywtf.com/articles/an-equal-crunch

Метки:  

 

Добавить комментарий:
Текст комментария: смайлики

Проверка орфографии: (найти ошибки)

Прикрепить картинку:

 Переводить URL в ссылку
 Подписаться на комментарии
 Подписать картинку