Giter Club home page Giter Club logo

homework1's Introduction

homework1: CSS Refactoring

The purpose of this project was to learn to refractor code. This was my first time refactoring a code. We refractor code to make a code easier to read and understand for others. When I went in to refactor this code I went and looked for any duplications. I combined all the duplications on CSS by changing some of the wording on html. Initially, I had trouble understanding how to refractor the code. I fist went and looked at the duplications on the css side, but no matter what I changed, I kept changing the site. Then, after the example we had in class, I realized that I had to go and fix the html side as well. I changed divisions to sections and asides accordingly, as well as changed some of the class names.
After that I changed the CSS side by combining similar codes together. Last, I went in and added "alt=" for the images. Once I did that, I was able to clean the code at the best of my ability without changing the website. This homework initially gave me some complications but after asking for help, and some google searches, I found out how to refactor code.

CSS_pg1 CSS_pg2 CSS_pg3 CSS_pg4 HTML_pg1 HTML_pg2 website_page

https://github.com/taradehdari/homework1/tree/master/assets

homework1's People

Contributors

taradehdari avatar

Watchers

 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.