Good evening. I have such a problem ... I have been studying php for the last six months. I learned a lot, I know a lot, including OOP and some APIs. It’s time to create a project to consolidate your knowledge, but I don’t know how to do it. For example, I can register / log in, upload files, output all of this. I can parse XML, generate captcha. But at the same time I cannot write the site. The fact is that if you now start writing a site, then if it works, it will be bad code. Somewhere there will be shameful algorithms, somewhere there will be a ridiculous functional, somewhere there will be a complete shame, etc. Do not tell me if such a resource, video, book, etc. which would explain in detail exactly the principles of the implementation of websites, blogs, online stores. Thank you in advance.
Closed due to the fact that off-topic participants Oceinic , ermak0ff , Regent , aleksandr barakin , Vladimir Glinskikh 16 Oct '15 at 7:11 .
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
- " Questionnaires are forbidden on Stack Overflow in Russian . To get an answer, rephrase your question so that it can be given an unambiguously correct answer." - ermak0ff, Regent, aleksandr barakin, Vladimir Glinskikh
How many bad words at the end ... Your question is rhetorical.
Then you have 2 ways in my opinion, you definitely have to make the first site, especially if you want to earn it later.
Fill the bumps and write, what were you talking about, then rewrite it all and write again. The result - you will know the language, in the end you will have your actual engine.
To master the framework or even not one, they will partially save you from writing crutches and are in demand by employers.
If you are interested in the methods of writing the site (without the framework), then there are also two main ones.
Either you have each page launches a separate real file in which the necessary modules are connected.
Either a redirect is made to the handler, which processes the request and automatically connects everything you need.
Of course, the latter option is preferable. In addition, I recommend writing pages in separate modules, rather than laying out everything in separate folders css, js, ... so it will be easier to transfer developments from the project to the project.
I thought so too. Started writing. The first time it turned out that all functions were in one file. Then I knew little about PHP at all. Then I read about OOP, I created classes, I began to load them automatically. I took the algorithms that I wrote in the previous version. So it became better. Then I learned about shlibonisators, put in Smarty. Along the way, I changed the algorithms, changed the database, changed everything, radically changed based on the new experience. Now everything works fine, but I continue to optimize, add functionality, now, for example, I am rewriting the admin panel. Just start with something primitive, then it will go! Good luck :).
You know a lot, and you think you need something else. But more to start creating sites do not need anything. That is enough theory start to practice. I think this is enough to start to impose. So during the creation of the first (maybe not the first) site you will understand what knowledge is missing or what to teach. And you want something else. Just find a website and try to do something like this. First, you will receive experience and the result of theoretical studies (although it may be with a bad code). But then you can improve it and learn from mistakes. I myself am just learning (self-taught) and I really like it, but I started with:
- site ideas;
- then I looked at what was needed to accomplish what I saw somewhere or what I needed;
- I was looking for examples, literature;
- point 2 3 4 to repeat to the end.
So much more interesting and easier. Well, I still do point 5.
you need to learn application design patterns. knowing the principles and syntax is not enough.