Welcome back to this series of courses. Let's talk about the "first thought" today"
I think this course is the foundation of everything, because this initial idea is also the stuff that determines your website's achievements.
There are a lot of kids shoes, experience in designing websites, and experience in developing websites. Everyone's ideas have their own styles. When I hear that I want to develop my website, I will immediately configure the environment, add the jar package, and use SSH skills .. Net, start to open vs, start to build a solution, add a project, create a page or something. Experienced kids shoes start to build a "complete" project architecture in their minds. What IOC, AOP, MVC, and other frameworks are waiting to be installed in the website framework.
In fact, I am not talking about how to build a website project ,. net and Java, Java and. the idea of the net camp is different. php is slightly closer to Java.
What I am talking about is how to accomplish the goal. Different ideas may lead to different problems in the development process and conflicting solutions. If an improper solution is used to solve the problem blindly, the problem is solved at the end, but it is far from the target.
My initial thought was to say that "all programs in the system serve the front-end HTML code ".
Why is this idea? Because when we look at the website, as long as the HTML generated by the program is consistent with the expected HTML code, the effect of the web page will never go wrong, this is also the only criterion for judging truth ".
No matter how we do the program, we don't actually need to implement any function or access any data. The real purpose is to generate a bunch of HTML code and then let the client get these strings.
This is the essence of our program and the simplest way of thinking. To remove the gorgeous shell, all pages are strings.
According to this "idea", all platforms, all frameworks, and all class libraries are made to generate HTML, as long as we can generate the HTML code that the user needs efficiently and return it to the client. Speaking of high endpoints, this idea is also a "cross-platform" solution.