Standards for web programming

This is strictly opinion / experience for research purposes.

I was wondering which coding standardization companies are now in place for web developers? (Document formats, coding standards, file structures, etc.)

Obviously all of them cannot be listed, but some basic ones will give me an idea.

+2


source to share


5 answers


I hope the company's coding standards for web developers include the W3C standards, but commercial pressure will encourage any decision that gets implemented.



I would like it to be wrong in this respect.

+4


source


The World Wide Web Consortium is the primary international standards organization for the World Wide Web.



+2


source


In the previous (large) company I worked for, there were three main standards that had to be met in order to work with the interface:

  • All HTML will adhere to HTML 4.01 Strict Standards except:

    • iframes should have been allowed due to ads.
    • The attribute start

      must be allowed in lists.
    • target="_top"

      was allowed to be used for personnel purposes.

    These exceptions have been codified into a custom doctype document that is documented here . All work prepared is expected to be tested against this type.

  • All CSS will be checked against the CSS 2.1 standard, except that hackers * and _ are allowed.

  • All JavaScript is expected to flow through JSLint without issue (strict whitespace was not included).

We also regularly conducted code reviews with the expectation that they would allow us to practice the good work done by our developers and codify it into best practice.

+1


source


The Web Accessibility Initiative (WAI) is something any serious web developer should consider: http://www.w3.org/WAI/

0


source


Try StyleCI , it supports PHP, JavaScript, CSS, Typescript, Less, SCSS and Vue.js.

You can also tweak StyleCI to your coding standards and it can correct your code automatically. We use it in a bunch of projects.

0


source







All Articles