Day 53: A Crutch Before the Release
In a start-up office in Innopolis on the eve of a release, two developers argue about a bug they have found in old code.
How to study this lesson 3 steps
- Read the situation under the title.
- Read the dialogue and its translation. The audio for this lesson is coming soon.
- Spend at least 30 minutes listening to native Russian audio, for example from the Resources page. It doesn't matter if you don't understand it yet.
Dialogue
Audio for this lesson is coming soon. For now, read the dialogue and its translation.
Keys: E hide English · ← → previous / next day
-
A
Нашёл, почему падает оплата: в легаси-модуле скидок даты сравниваются как строки. Предлагаю по-быстрому вставить проверку, и дело с концом.
Found why payments are failing: in the legacy discount module, dates are compared as strings. I say we quickly slip in a check and be done with it.
-
B
То есть ещё один костыль. Этот код и так держится на честном слове и изоленте.
In other words, another crutch. That code is already held together with spit and duct tape.
-
A
Релиз завтра в десять. Если сейчас полезем всё переписывать, к утру будет не один баг, а десять.
The release is tomorrow at ten. If we start rewriting everything now, by morning we'll have ten bugs instead of one.
-
B
А если не перепишем, через месяц он выстрелит снова, и откатываться будем в пятницу вечером у самого крупного клиента.
And if we don't, in a month it'll go off again, and we'll be rolling back on a Friday night at our biggest client.
-
A
Ладно, давай хоть посмотрим в истории коммитов, кто это писал. Может, там была логика, которой мы не видим.
Fine, let's at least check the commit history to see who wrote this. Maybe there was some logic we can't see.
-
B
Сейчас узнаем, какой гений сравнивал даты строками... Так, коммит трёхлетней давности, автор... Хм.
Let's find out which genius compared dates as strings... Right, a commit from three years ago, author... Hmm.
-
A
Автор ты. И комментарий твой: «Временный костыль, потом пофикшу». Три года прошло, а «потом» так и не наступило.
The author is you. And the comment's yours too: 'Temporary crutch, will fix later.' Three years on, and 'later' never came.
-
B
Ну... Три года назад у нас тоже был релиз. И тоже, между прочим, завтра в десять.
Well... Three years ago we had a release too. Also tomorrow at ten, as it happens.
-
C
Парни, новости от клиента: дедлайн сдвинули, релиз нужен не завтра, а сегодня к шести. Успеваем задеплоить?
Guys, news from the client: the deadline's moved, they need the release not tomorrow but today by six. Can we deploy in time?
-
B
Успеваем, если ставим костыль. Но после релиза, Дим, модуль переписываем целиком, и это не обсуждается.
We can, if we put in a crutch. But after the release, Dima, we rewrite the module from scratch, and that's not up for discussion.
-
A
Тогда я пишу в комментарии: «Временный костыль, потом пофиксим». Во множественном числе, для надёжности.
Then I'll write in the comment: 'Temporary crutch, we'll fix it later.' In the plural, to be on the safe side.
Your progress is saved in this browser only, with no sign-up. The course page and the menu show where you left off. Well done! Next up: Day 54: Chak-Chak for the Critic
If this free course has helped you in your Russian journey, please consider supporting the project. It's a one-person effort, and even small contributions help keep it running and free for everyone.