The habit of writing code for front-end development

Source: Internet
Author: User
In HTML I usually write <><&gt first, and then add tags to it ... See today with the teacher is < then HTML then > write like this ... I don't know if you can read it,

I should say my order is <><>---HTML---/html.

The teacher's order is <---HTML--->--<--/--html--> Which one is the norm?

Well, the ability to express is limited ...


Reply to discussion (solution)

Can this also be regulated? Feel it, how to come.

I am the same as your habit, the code is generally the pairing of things first hit up, so it is not easy to write, and in line with the habits of people's thinking.
Because code is often nested in structure, the process of writing code is also the process of human brain recursive invocation.
The ability of the human brain to handle stacks is very limited and often does not know where to go, so it is a good practice to first complement the paired items.

If it's a pairing, you have to write it first and then write it in it.
If the first <><><><> a bunch, who knows who is who?

My personal opinion is that your teacher's habit is not a good habit. With more than one tag nested, he's going crazy. Stick to your own writing, SAO-year ~

Your teacher used to be a blind hit master.
You use the General people's habits, like you do not have to find a can automatically match the ide/editor or better

Blind people will only use BACKSPACE to back, not the left ARROW key
I've seen n many people who type super fast.

I see.. I also one of my teacher's is a norm. It's my own writing that's more handy.

Don't mind the details ...

It doesn't matter, it's all floating clouds.
Check this out:
http://docs.emmet.io/

I feel accustomed to looking at a person's own liking is. But when pairing, it's best to go with it first. Lest you look everywhere.

I really did not think of this, you now write less feel uncomfortable, write more on the casual.

This question, the teacher is very familiar with the teaching aspect, the label will not be many, the teacher's writing, is the less press the cursor key, the pure lazy person method.
According to the people's habits and the rigorous nature of the program itself, or pairing, and then with the cursor line, will be paired apart, and then in the middle section to write other tags or code, it will be much easier, and will not leak.
You know, because a bad label comes back to find a bug, will cry.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.