Skip to content

hamburgcodingschool/javascript-code-smells

Repository files navigation

Javascript Code Smells

This is an example project to show Code Smells and their refactoring steps in JavaScript.

This is part of a tutorial by Teresa Holfeld for a CodePub Meetup in Hamburg, Germany.

Set up

Check out this project if you haven't done already.

For this project to run properly, you need a web server installed. For installing a local web server, follow these steps:

Make sure you have python installed. Use the following command for your respective operating system. If python is not installed, this will show you an error.

Mac: python -v

Linux: which python

Windows: python

If python is not installed, download and install it from here.

To start a local web server, use the following command:

Mac, Linux, Windows 7:

python -m SimpleHTTPServer

Windows 10:

py -m http.server

If your local web server is running, go to http://localhost:8000/. You will see a page showing a search input. You can search for any code smell, or press "Go!" to see the list of all code smells. The search simply looks if your query string is contained in any name of the list of code smells.

The examples are taken from the COSC427 wiki and based on Martin Fowlers book Refactoring. Improving the Design of Existing Code.

About

Example project to show Code Smells and their refactoring steps in JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published