开发者

what aspect to develop first in a website?

开发者 https://www.devze.com 2023-01-18 20:27 出处:网络
I\'v just started learning different languages in web development and I believe the best way to improve is开发者_如何学Python to think of an idea and develop it. (Feel free to correct me if i\'m wrong

I'v just started learning different languages in web development and I believe the best way to improve is开发者_如何学Python to think of an idea and develop it. (Feel free to correct me if i'm wrong).

My question is what aspect do I develop first. If I am looking to build a simple script which is styled and comprises of HTML, PHP and CSS, which part of the website do I design first?

I was thinking HTML > PHP > CSS however once I complete the css I would have to edit all the tags to include the css classes/id's. Is that the way it's done?

PS - Also I started off web development by learning the basics as well as a few intermediate aspects of all the three above mentioned languages and now Im looking to design/clone scripts I've come across to get better at them. Is this approach correct?

Thanks.


The order doesn't really matter.

Deal with the data and the UI separately (following the MVC pattern will help you do this), and modify each of them as needed.

You'll probably find that the optimal solution is to work on a feature at a time rather then doing the backend of all features and then the frontend of all features (or vice versa).

Within each feature, start on whichever end you have the strongest vision of and let it inform your development of the other.


HTML->CSS->PHP. Start by focusing on writing a valid, well-coded HTML page and learn to style it with CSS. After that, you can start to work with script.

Of course this is just my personal approach. Have the skeleton first and then you'll know where to put what


Learning to develop for the web is not a straight path; it’s really more like a cycle.

You will learn things (e.g. HTML and CSS), maybe to the point where you’ll be fairly confident that you master those technologies, then you will learn new things (maybe PHP), then you’ll look back at what you’ve done, and you’ll start realizing that you still don’t know much, because things evolve, and your perspective on those matters evolve as well, as you discover new techniques.

There is no absolute truth. My advice is to give yourself a goal, and try reaching it. Don’t worry about making mistakes. Don’t worry about what language or technology you pick. Just start small, because there is a lot to learn. Focus on understanding how the web works, how technologies interact. Learn about best practices, and always ask yourself how to make things better.


HTML and CSS of course.
PHP is just supporting feature.
You can have a perfect site without PHP or any other server-side programming language at all, but you cannot have a site without HTML and CSS as it's part.

0

精彩评论

暂无评论...
验证码 换一张
取 消