У нас вы можете посмотреть бесплатно 09: Steve Yegge/Gene Kim: 2 Hour Pair Programming Session! First Tests или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Okay, we’ve found the transcript text — the first step is to extract all the entries that are between the start and end times. The prompt: “[sample of transcript data structure] Here's what the transcript looks like - it's a vector of maps. write a function that, given a start and end, extracts out all the relevant entries in the transcript” Cody returns code that looks right, but who knows? So, let’s have Cody write some tests. I take a bit of time to get some TDD infrastructure set up (it’s the RCF library, which will run in the REPL everytime I load the file, which is awesome.) Seeing this, Steve says: "Less typing, Gene!" — I’m pretty sure Steve thinks I'm coding, when I’m actually doing creating some foundational stuff that shorten feedback loops. Now we’re ready to make some tests. The prompt: “this is where to write tests; write me a test of extract-transcript-entries” Hala. I censor out another “holy sh*t!” seeing four tests! It really is hilarious watching me have these visceral reactions of joy, realzing what’s possible. What’s also interesting is that two of the four tests are failing. Steve recommends just copy/pasting the errors into the chat session, which will often fix the error… Will it?