This article discusses the positioning of website programmers and how to work with designers to develop website projects that comply with web standards in the context of the popularity of web standards.
This article is applicable to programmers who are not very clear about the division of labor in the traditional table layout.
1: Learning Web standards makes your work easier.
Web standards are the trend of the times, so as a web programmer. You must be brainwashed and learn web standards. Re-recognize HTML tags to learn how to let the program output the Code required by the page.
For example:
The above is the art, and the following is the standard program code:
Dim ohtml
Set rs = server. Createobject ("ADODB. recordset ")
SQL = "select top 10 ID, title from tbl_news order by ID DESC"
Rs. Open SQL, Conn, 1, 1
Ohtml ="
"
Do while not Rs. EOF
Ohtml = ohtml &"
"& RS (" title ")&""
Rs. movenext
Loop
Ohtml = ohtml &"
"
Rs. Close
Set rs = nothing
Response. Write (ohtml)
In the traditional table layout, programmers need to write a lot more HTML code, to write a table, to determine when to output TR for line feed, to add an IMG in front of each news to output small icons, to control the length of the output title using a program. All work requires the code to go out of the page before the programmer can write this program.
For programmers, you should regard web standards as a good news. You should read it like a bible to understand what page code really needs. After understanding it, you will find out. You are much easier than before. Because web standards focus on the separation of performance and content, the program is only responsible for content data. From then on, you no longer need to consider how to use the program code to control the color changing of the line, the number of output columns in a row, and so on. What you need to do is to output the most direct content to the page without any decoration.
Of course, if you use. Net for development, you can be more thorough. You can focus entirely on Object creation, class libraries, and data access, and provide methods to the presentation layer. The example below is my previous project, which should be of reference value.
2: website programmers, do not let HTML tags block your sight.
If you think you really hate complicated HTML tags and your learning direction is not on the website's performance layer, say goodbye to HTML tags.
I used to work in traditional desktop software development companies, where programmers did not know HTML, and I had to ask them for help when my website project was tight. We will take several examples of Visual Studio. NET 2003 for careful analysis, according to the object-oriented structured hierarchical development mode, can also be very good cooperation. Take the development of the News Module as an example:
Step 1: website programmers can analyze databases based on their needs. You can create tables and write stored procedures. Programmers are very familiar with such things.
Step 2: define the object. Visualize the website information, for example:
Public class News
Protected _ id as integer
Protected _ typeid as integer
Protected _ title as string
Protected _ author as string
Protected _ Original as string
Protected _ updatetime as datetime
Protected _ content as string
Protected _ clickcount as integer
Public property ID () as integer
Get
Return _ id
End get
Set (byval value as integer)
_ Id = Value
End set
End Property
Public property typeid () as integer
Get
Return _ typeid
End get
Set (byval value as integer)
_ Typeid = Value
End set
End Property
Public property title () as string
End Property
Public property author () as string
End Property
Public property original () as string
End Property
Public property updatetime () as datetime
End Property
Public property content () as string
End Property
Public property clickcount () as integer
End Property
End Class
In this way, all the tables on the website are processed as objects. Then define the record set related to the object, which defines a single news object and a news record set.
Public class newss
......
End Class
Step 3: define a set of public data access methods.
Defines some common methods for manipulating databases and executing stored procedures.
Step 4: Compile the object-based method layer. For example:
Public Function readnews (byval ID as integer) as news
End Function
The function returns a news object. According to the function requirements, some related functions are usually defined, such:
'Read the news list
Public Function readnewss (byval newstype as enewstype, byval ncount as integer) as news
End Function
'Add a news
Public Function insertnews (byval N as news) as integer
End Function
'Update a News Record
Public Function updatenews (byval N as news) as integer
End Function
'Delete a News Record
Public Function deletenews (byval ID as integer) as integer
End Function
In this way, website development can be divided into object Layer, data access layer, method layer, and presentation layer. Programmers only need to provide the methods required by the presentation layer. In this way, when the presentation layer needs to display the news list, the page designer only needs to use the Repeater control in. net, the following code: In the program code of the presentation layer, we only need to add:
Topnewslist. datasource = new facade. newsfacade (). readnewss (enewstype, newscount)
In this way, the programmer can basically be completely isolated from HTML. In this case, members of the entire project team can work in parallel. It can significantly improve the development efficiency of the entire project. Moreover, the rise of the Web model puts forward higher requirements for background database development. For websites such as Douban and 365kit, the background database mining work is very complicated. So today, with a clear division of labor, in addition to HTML code, there are a lot of more important work to be done by website programmers.
3: user-centered design is inseparable from front-end development engineers.
It doesn't matter if you think you are away from the familiar HTML code. Simply push yourself to the forefront of web technology. As a front-end development engineer with close product design relationships.
With the continuous improvement of network and computer hardware facilities, we are moving towards a rich client. For the ease-of-use of products, website programmers have very high requirements. Front-end development engineers are becoming increasingly important. This position should be said to have been available only in recent years, and this position is not suitable for general web designers. Therefore, website programmers are naturally separated by background development engineers and front-end development engineers, this direction is also a good choice. This requires you to have a comprehensive understanding of web standards. You need to understand JavaScript, Dom Document Object Model, CSS presentation layer style code, and Ajax Asynchronization. There are many examples, such as real-time detection of online registration forms, prompt of password strength, and Association of multi-level drop-down menus. It plays an important role in improving user experience and Website access speed.