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.
homework1's Introduction
homework1's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.