Table of Contents
Reply to the discussion (solution)
Home Web Front-end HTML Tutorial There is such a project, you think it can be handled this way_html/css_WEB-ITnose

There is such a project, you think it can be handled this way_html/css_WEB-ITnose

Jun 24, 2016 pm 12:25 PM

There are a bunch of things left over from the past, and the status is like this:
Write css, write js directly in the page, and write style in the html tag. There is already jquery1.6 in the page, and jquery1 is also quoted at the bottom. .4. The html naming is in the style of id=top1, class=right5. All in all it's a mess. But it works and there are no functional issues.

Now I am responsible for the front end, and there is another person responsible for the back end. It takes two of us to sort this pile of stuff into order. Besides rewriting, is there any other way? If rewritten, what process can minimize the workload.


Reply to the discussion (solution)

Let’s change it on top of him. It’s a lot of effort to rewrite. If it’s big,

Just make do if you can. Maybe the boss will do it when I overturned them all when I was in a bad mood. You were already busy at that time.

There is only one way to rewrite. I hope the author can avoid this job.

There are a bunch of things left by previous people. , the status is like this:
Write css and js directly in the page, and write style in the html tag. There is already jquery1.6 in the page, and jquery1.4 is also referenced at the bottom. The html naming is in the style of id=top1, class=right5. All in all it's a mess. But it works and there are no functional issues.

Now I am responsible for the front end, and there is another person responsible for the back end. It takes two of us to sort this pile of stuff into order. Besides rewriting, is there any other way? If rewritten, what process can minimize the workload.
If you need to reorganize, extract the content first
Extract the css js into separate files and slowly reconstruct them

Agree with the statement above
If you want to rewrite, extract the css js
If you are going to be exposed to this project for a long time in the future, in order to reduce your workload, you should rewrite it

Look at the value of the project itself. If it is valuable, you can rewrite it. Communicate well with the project management in advance and plan everything. List it for him to save you a lot of trouble; if not, just revise it. If you want to practice, it is good to rewrite; PS: This kind of code is the most annoying = =

If it is not like the php echo statement output, that is, it is basically an html template
OK Write a program to parse all the files, list the same and similar styles, and replace them with classes. Replacing multiple files is not difficult, right?
Use similar means to add id and some necessary attributes to the main components
With id and class, it will be much easier to do things later

If it is all background control output, then you can do it yourself Good luck

Rewrite it, the workload will be greater in the original project

It’s a good idea to extract it, at least the existing functions can be saved. After that, we can sort it out slowly

The leader said that there are people using this thing now, so it cannot be rewritten and can only be modified slowly. It's so painful. shopping-cart is written as shopping-card, you can't change it blindly. After the change, js, css, and backend may all go wrong

If the predecessors wrote well, I will write well. If the predecessors wrote shi, I will only add insult to injury.
Anyway, you can do as much work as you get for the salary~

?, I don’t understand? What can’t be repeated?, the functions are the same, if the ??? is not changed, it can’t be repeated??

No matter how consistent the appearance is, the track cannot be changed?

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Is HTML easy to learn for beginners? Is HTML easy to learn for beginners? Apr 07, 2025 am 12:11 AM

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

The Roles of HTML, CSS, and JavaScript: Core Responsibilities The Roles of HTML, CSS, and JavaScript: Core Responsibilities Apr 08, 2025 pm 07:05 PM

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

Understanding HTML, CSS, and JavaScript: A Beginner's Guide Understanding HTML, CSS, and JavaScript: A Beginner's Guide Apr 12, 2025 am 12:02 AM

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.

What is an example of a starting tag in HTML? What is an example of a starting tag in HTML? Apr 06, 2025 am 12:04 AM

AnexampleofastartingtaginHTMLis,whichbeginsaparagraph.StartingtagsareessentialinHTMLastheyinitiateelements,definetheirtypes,andarecrucialforstructuringwebpagesandconstructingtheDOM.

Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Apr 04, 2025 pm 11:54 PM

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...

How to use CSS3 and JavaScript to achieve the effect of scattering and enlarging the surrounding pictures after clicking? How to use CSS3 and JavaScript to achieve the effect of scattering and enlarging the surrounding pictures after clicking? Apr 05, 2025 am 06:15 AM

To achieve the effect of scattering and enlarging the surrounding images after clicking on the image, many web designs need to achieve an interactive effect: click on a certain image to make the surrounding...

How to implement adaptive layout of Y-axis position in web annotation? How to implement adaptive layout of Y-axis position in web annotation? Apr 04, 2025 pm 11:30 PM

The Y-axis position adaptive algorithm for web annotation function This article will explore how to implement annotation functions similar to Word documents, especially how to deal with the interval between annotations...

HTML, CSS, and JavaScript: Essential Tools for Web Developers HTML, CSS, and JavaScript: Essential Tools for Web Developers Apr 09, 2025 am 12:12 AM

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.

See all articles