Thinking: Developing a website with the idea of developing a mobile app

Source: Internet
Author: User
Tags knowledge base

First of all, I wish you a happy new year. Good luck.

The development of the website program also has some years, from the initial static html+ JS, to later WebForm, and then transition to the present MVC.

As a result of recent technical research, also contacted a lot of mobile development, iOS and Android things also know Dot, will do some simple app.

Do mobile app long, and then look back to the site development, I began to wonder, do we need a framework such as ASP.

The essence of the site is the HTML + CSS +js + http (TCP/IP) protocol + server that can respond to the HTTP protocol.

The essence of mobile app is mobile UI + HTTP (TCP/IP) protocol + server that can respond to HTTP protocol.

In fact, they do not have a lot of essential differences, so, now a variety of hybird App big way.

We often say that the separation of the front and back, the actual operation of the time, more or less will violate this principle.

In a really good front-end separation of the system, in fact, can force the system real mobile apps and web site sharing functions.

If the goal at the outset was to share content on a mobile site, the design would begin around the rest API, rather than the razor design of the front and back.

For some old programmers, who are accustomed to MVC, will inevitably have some aversion, after all, the traditional approach, development efficiency is very high, a small website, can be used to calculate the development time of the hour.

If you use the new method, the page and server just communicate through Ajax, which is a very test of the front-end level.

A framework such as AngularJS or REACTJS is not required, but can be used, if it is possible, in the context of deep understanding.

Webpack,gulp,nodejs these things, but also with the introduction of Angularjs,reactjs into the scope of work.

The result of this is MVC,

V completely at the front, this no doubt

Database associated business logic m completely on the server side (shopping cart calculates the total price, review, debit), the front end will also handle some simple business logic (shopping cart calculates the total price, only preliminary calculations, not as server processing vouchers),

C, it's basically becoming extremely thin, replaced by angular or react and their derivatives. Or, C, it becomes the C of the front end and the C at the back end.

Core features of MVC: routing, data and form binding, data validation

Data validation, TypeScript (strong data type), ES6 (full regular function) can be processed. The original MVC also relies on the js+ attribute tag to do data form validation.

Now the front end is also beginning to introduce the concept of strong data type slowly. The prop of the react framework also supports strongly typed.

Data validation, razor basically can be completely replaced by the front-end framework, (of course, Microsoft's ambiguous attitude on the template is also worth spitting, razor after the introduction of smart Tags (MVC6), originally felt that the template should be like the backend, and now feel that the template should be like the front end)

Routing is a field I'm not familiar with and I don't express my opinion.

The future of web development, with the help of big data and increasingly sophisticated services, may change the core value greatly.

Before we need to do a landing, registration of the page, now can be directly used, QQ, Weibo registration and landing, these features can be simplified.

such as blog site, UGC, a variety of ready-made UGC can be directly used, the content management system in various fields, the content of data mining, content analysis, UGC to the knowledge base will become the core value of UGC website.

The value of a UGC-based website is not just to provide a writing platform, but to refine the content, classification, collation, automatic summarization and archiving of data by means of big data.

If you do not do this, even if the interface again beautiful, but also a user and article, nothing is a site.

Thinking: Developing a website with the idea of developing a mobile app

Related Article

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.