Code Monkey home page Code Monkey logo

ttt-tdd's Introduction

Read description in English. The project translation is on the way. Stay tuned!

TTT TDD

TDD — практика разработки программ, в которой программисты вначале пишут тесты для новой функциональности, затем — реализацию этой функциональности, а после — проводят рефакторинг.

Основной посыл TDD — в разбиении больших задач на маленькие. Такой метод позволяет писать более структурированный, надёжный и читаемый код.

Эта книжка предлагает пример разработки игры «Крестики-нолики» по методологии TDD. В ней мы разберём основы и пользу подхода, а также рассмотрим, как использовать TDD для непрерывной разработки в условиях меняющихся бизнес-требований.

Содержание

Лицензии

Текст книги распространяется под лицензией CC BY-NC-SA 4.0. Вы можете копировать, изменять и использовать его в проектах на некоммерческой основе.

Исходный код книги, а также код игры распространяются под лицензией MIT.

ttt-tdd's People

Contributors

alexanderaverin avatar bespoyasov avatar denisbalyko avatar heaviss avatar jazzis18 avatar lex111 avatar silencerweb avatar theseally avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ttt-tdd's Issues

Заменить `Sinon` на `Jest.mock` и `Jest.spyOn`

Jest умеет шпионить и мокать реализации самостоятельно, отдельный пакет для этого больше не нужен. Можно уменьшить количество зависимостей, убрав Sinon.

  • Заменить Sinon на Jest в теста к коду игры;
  • Убрать Sinon из зависимостей;
  • Убрать упоминания Sinon из текста книги;
  • Обновить примеры кода в книге.

Добавить «офлайн-режим»

Хочется настроить Service Worker, чтобы можно было читать пособие без интернета.

Что стоит учесть:

  • обновление контента и сброс кэша ресурсов при появлении новой версии;
  • скоуп сервис-воркера только для `/ttt-tdd; в корне сайта уже работает сервис-воркер, но у него online-first стратегия.

Translate into English (+ 2nd edition)

Make the book accessible to the English-speaking audience:

  • Split content by the locales;
  • Set up the build and deployment;
  • Add examples of using TDD with FP;
  • Remove the webpack-related stuff from the text, use modules;
  • Get rid of the line numbers in the code examples (too noisy);
  • Improve the game table accessibility;
  • Translate the content;
  • Add more theoretical aspects like advantages, costs, ways of introducing in the project, etc;
  • Swap the project description in Readme and docs.

Maybe, though, it makes sense to rethink the project altogether and keep this repo as is. (Now it seems like it'd be a better idea to relaunch the project from scratch and create a “fullstack” app with a server part and a client part.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.