|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/learn-tdd-in-java/
课程评论:没有评论
课程名称:学习Java中的TDD(测试驱动开发) 课程概述: 本课程旨在从零开始教授测试驱动开发(TDD),通过一个实际的成对编程面试问题进行讲解。此面试问题源于我多年来进行的真实面试,这个问题在多个机构中仍然在使用。面试以TDD和成对编程的方式进行,重要的是过程而非最终解决方案。有时我们会聘用那些没有找到解决方案的人,而有时则不会聘用那些找到解决方案的人。 课程挑战: 实现一个“电影商店”(类似于百视达或Netflix),商店需要存储若干部电影(最多100部,但为了测试目的,4或5部电影即可)。我们需要能够根据不同的标准搜索电影商店的标题。虽然听起来简单,但这确实会让很多人感到困难。在面试中,每个要求会逐一揭示。在本课程中,我也会逐一揭示要求,并且遵循TDD的原则逐步构建解决方案。 课程目标: 学员最终应能编写干净、优雅且无重复代码的解决方案,所写代码应令其在生产环境中感到自豪,并且具有良好的测试覆盖率。课程内容不涉及数据库、线程、用户界面、API访问或第三方库,纯粹基于Java编写。虽然要求考虑性能,但这并不是主要关注点,解决方案不应过度设计。 课程内容: 即使你从未接触过TDD,也无需担心,我将从头教你TDD的基本概念。课程时长约为一小时,并提供所有代码的下载。培训内容不仅仅是寻找解决方案,我们还将讨论候选人在面试中常遇到的各种问题及其避免方法。
This course teaches Test Driven Development from the ground up using an example paired programming interview question. This interview question is taken from a real interview which I ran for several years and continues to be used in a number of institutions. The interview is conducted as a TDD, pair-programming challenge. This is important to note. It was not the eventual solution that mattered so much as the journey there. Sometimes we would hire people who didn't get the solution, and other times we wouldn't hire people who did. The Challenge Implement a "movie store" (like blockbusters or Netflix). The store needs to hold a number of movies (let's say a maximum of 100, but for our testing purposes 4 or 5 is sufficient). We need to be able to search the movie store for titles based on a number of different criteria. Sounds pretty simple huh? It's amazing how many people it trips up though. In the interview we would reveal each requirement one by one. As we're doing TDD we're building the requirements one at a time. Just like in the interview, I'll reveal each requirement one at a time. The goals The solution should have beautiful, clean code, without repetition or hacks. It should be code that you would be proud to have in production. It should be well tested. You do not need to worry about databases, threading, user interfaces, API access or 3rd party libraries. This a pure Java question. You should be mindful about performance, but it's not a major concern. You should not over engineer the solution. The solution Don't worry if you've never done TDD- I even teach you how to do TDD from the start. This course is approximately an hour long and comes with all the code available to download. The training is about much more than just coming up with a solution- we discuss many of the areas that candidates fall down in interview and how to avoid them.