All Projects → waterlink → refactoring-koans-js

waterlink / refactoring-koans-js

Licence: MIT license
Refactoring Koans to help you learn to refactor code smells in javascript

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to refactoring-koans-js

Jsinspect
Detect copy-pasted and structurally similar code
Stars: ✭ 3,379 (+22426.67%)
Mutual labels:  refactoring, clean-code
Clean Go Article
A reference for the Go community that covers the fundamentals of writing clean code and discusses concrete refactoring examples specific to Go.
Stars: ✭ 1,911 (+12640%)
Mutual labels:  clean-code, software-crafters
Study Path
An organized learning path about Clean Code, Test-Driven Development, Legacy Code, Refactoring, Domain-Driven Design and Microservice Architecture
Stars: ✭ 1,357 (+8946.67%)
Mutual labels:  refactoring, clean-code
Refactoring Code Smells
♻️ Example projects illustrating Code Smells in order to apply Refactoring techniques
Stars: ✭ 255 (+1600%)
Mutual labels:  refactoring, clean-code
Programming Book Recommendations List
My personal list of books that I recommend to read if you are a software developer
Stars: ✭ 22 (+46.67%)
Mutual labels:  refactoring, clean-code
Vscode Glean
The extension provides refactoring tools for your React codebase
Stars: ✭ 1,194 (+7860%)
Mutual labels:  refactoring, clean-code
Xaml Code Experiences
A collection of the experiences I have collected during days of Xamarin and Wpf, while following the MVVM design pattern.
Stars: ✭ 114 (+660%)
Mutual labels:  refactoring, clean-code
djburger
Framework for safe and maintainable web-projects.
Stars: ✭ 75 (+400%)
Mutual labels:  clean-code
eShopOnWeb
Sample ASP.NET Core 6.0 reference application, powered by Microsoft, demonstrating a layered application architecture with monolithic deployment model. Download the eBook PDF from docs folder.
Stars: ✭ 8,250 (+54900%)
Mutual labels:  clean-code
refren
A language agnostic, code-style aware, refactoring/renaming tool.
Stars: ✭ 19 (+26.67%)
Mutual labels:  refactoring
codeclimate-apexmetrics
ApexMetrics - Code Climate engine for Salesforce [DISCONTINUED use CC PMD instead)
Stars: ✭ 46 (+206.67%)
Mutual labels:  clean-code
churn
Find refactoring candidates in your Elixir project easily with Churn 🧹
Stars: ✭ 87 (+480%)
Mutual labels:  refactoring
IntelliJDeodorant
The project is not actively supported.
Stars: ✭ 53 (+253.33%)
Mutual labels:  refactoring
memo
다양한 MD 메모
Stars: ✭ 87 (+480%)
Mutual labels:  refactoring
colisper
Check and transform Lisp code with Comby (beta)
Stars: ✭ 18 (+20%)
Mutual labels:  refactoring
common-coding-conventions
A concise and universal guide to clear software design.
Stars: ✭ 306 (+1940%)
Mutual labels:  clean-code
Codor
Custom PHPCS sniffs to find Code Smells
Stars: ✭ 40 (+166.67%)
Mutual labels:  clean-code
kata
TDD, Refactoring kata in many languages
Stars: ✭ 14 (-6.67%)
Mutual labels:  refactoring
flextool
C++ compile-time programming (serialization, reflection, code modification, enum to string, better enum, enum to json, extend or parse language, etc.)
Stars: ✭ 32 (+113.33%)
Mutual labels:  refactoring
pro.fessional.wings
WingsBoot=BKB+飞鞋+SpringBoot。其核心价值是:①使团队快速实现业务目标;②快速偿还技术债务;③安全的面向程序和业务重构。
Stars: ✭ 78 (+420%)
Mutual labels:  refactoring

Refactoring Koans

JavaScript edition

Setting up

First, clone this repository:

$ git clone https://github.com/waterlink/refactoring-koans-js

Make sure you have a recent version of node and npm installed.

Then, install the dependencies (only for running tests):

$ npm install

Run the Koans (tests)

$ npm test

Meditate on Koans

Go through directories/files in the order of their numbers (digits in front of the directory/file names).

Familiarize yourself with the code in non-spec file *.js (without .spec.).

Then switch to the Koan (test) file *.spec.js. You’ll see that the first few tests are just checking that the program works.

Then you’ll see a bunch of xdescribe(…) blocks. These are the pending Koans (tests).

Go through them in order, one-by-one, top-to-bottom. To start solving a Koan, remove the x in front of describe, so it reads describe(…).

Once the test is passing, you can move to the next xdescribe. Make sure to read the descriptions of these xdescribes and their respective its, you can find a clue there.

Notes

The code is in simple NodeJS, without any transpilers.

While this is still a work in progress, feedback from you would be fantastic! You can do it in the issues, or on Twitter.

Finally, if you liked these koans, make sure to share it with your friends and following on social media!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].