GithubHelp home page GithubHelp logo

intro_debugging's Introduction

Intro To Clean Code

TIP: to see this file with styling, press on the right mouse button and "open preview".

Goals

You will understand:

  • The principles of debugging
  • The importance of clean code
  • How to refactor code

Lesson Agenda

  • 15 minutes intro
  • 15 minutes to solve exercise
  • 10 minutes we solve it together
  • 5 minutes break
  • 5 minutes explanation on exercise 6
  • 25 minutes to solve exercise 6
  • 20 minute we solve it together

Installation

# navigate to your code directory
$ cd ...

# clone the repository
$ git clone [email protected]:David-L-R/intro_debugging.git

# navigate inside
$ cd intro_debugging

# open vs code
$ code .

Exercises

Solve the 5 first exercises, that tackle different aspects of clean code.

To test if you were able to solve the exercise, type in your terminal:

npm run test

Then you will get a respond like

Exercie 1 passed:  false
Exercie 2 passed:  false
Exercie 3 passed:  false
Exercie 4 passed:  false
Error in exercise 4 house is not defined
Exercie 5 passed:  false

Challenge

After we solve together the exercises, you will get more time to solve the challenge.

You will this in groups as well.

To run the challenge, highlight the index.html by pressing it with your mouse, and then use go live (with the Live Server extension)

If you don't have the extension, download it here: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

Follow the Readme.md file inside the challenge's directory for more instructions :)

intro_debugging's People

Contributors

david-l-r avatar

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.