-
Clone the git repo to your local machine
git clone git@github.com:shaibo10/code-simplicity.git -
Install the dependencies for getting the complexity score by using ESlint
cd code-simplicity
npm i -
Run the script "challenge-score" to get the complexity score of the challenge
npm run challenge-score -
An important rule - you can't be sure that the server will return all the properties of the book, you need to validate that each property is exists
-
Start to refactor the challenge code and test the complexity each time
src/11/the-challenge.ts -
You can run the code using online IDE to test the functionality - https://stackblitz.com/edit/typescript
-
You can fake it (ESlint test the complexity in the function level), But try to improve the complexity of the all application
using advanced techniques you saw in the presentation and other examples from this repository -
The full presentation on code simplicity - https://www.youtube.com/watch?v=RjQfYo8hn18
-
Notifications
You must be signed in to change notification settings - Fork 0
shaibo10/code-simplicity
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Code samples of practical refactoring to reduce cyclomatic complexity
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published