Z
Z
zeuss562017-02-20 00:24:16
PHP
zeuss56, 2017-02-20 00:24:16

What tools, environments, patterns, frameworks do you use to develop web applications in PHP?

I have little experience in web development and near-zero efficiency. My development cycle:
1. I write code in Sublime with XDebug plugin and autocompletion.
2. I start localhost, I see not at all what I expected, nothing works.
3. Fatal errors are corrected immediately.
4. I put breakpoints, correct the logic.
5. Everything works, but not perfect, we return to point 1 and add functionality, but the debug starts to bother.
6. In the process, it became necessary to smoke the manual - the process can stall everything, then I start looking for ready-made solutions, a tutorial from Habr, for example. At this moment I can be distracted for a long time.
7. It is already difficult to understand the code, even though the whole code is kept in the head, to jump from file to file, to massively replace something, to rebuild the architecture.
8. Before reaching the end, I delete the project in the archive. I read Habr and do nonsense further.
9. I wanted to eat or a new toy - and again to point 1.
Backend - MVC, JSON API, I'm afraid of frameworks.
Frontend - Ajax Loader, some adaptive layout.
How to simplify development, how to choose a development environment, architecture, framework, or maybe change the programming language or the type of activity in general? It seems that I consulted myself, found the reasons for "procrastination" and scoring at work (or a hobby), but what's next?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
DevMan, 2017-02-20
@zeuss56

1. What is the point of uploading the code somewhere if the result of its work is more convenient and faster to look at locally?
2. error_reporting(E_ALL) is great, but print_r/var_dump is trash-style. because there is xdebug.
3. convenient development environment - integrated debugger, complete, all kinds of hints.
only on these points it is already possible to reduce the time of writing / debugging code.
The problem is that you want everything at once. but that doesn't happen.
As in any field, programmers are not born, they are made. become through study and practice.
how to choose a development environment? try different ones and choose.
framework? try different ones and choose.
architecture? You need to know what they are and be able to use them.
am I stuck in habr? it's okay to stick if you don't have enough knowledge. The more knowledge and experience, the less need to stick.
everything works, but not perfect? limit your ardor: the ideal is difficult to achieve and often unnecessary.
Bottom line: learn and practice. sorry, but being a programmer isn't easy, and I don't have a magic pill.

M
McBernar, 2017-02-20
@McBernar

You know, Vadim, I don't understand this.
Now I am in no way trying to offend you in any way, but, for example, not being and not calling myself a developer, I am fond of code, as it seemed to me, more than you:
1. I immediately got Sublime and then PhpStorm . No laptop-plus-pluses. IDEs provide great additional features that make it very easy to write code, taking on a lot of routine.
2. As soon as I got used to the syntax of the language a little, I immediately went to deal with OOP and MVC, on the way I got acquainted with other cool patterns like Singleton, ORM, Active Record and others. In order not to do absolutely complete nonsense in projects.
3. Knowing full well that backing rarely lives without a front, and even more so now, when Ajax and SPA are all around - I'm learning JS, I've got used to JQuery, I'll soon get to Vue. Solely for the purpose of self-development and out of curiosity, without any practical application, only in small things if. I recently refreshed my knowledge in CSS - I dug into flexbox and it turned out to be wildly cool.
4. Interested in industrial deployment of projects. After all, it cannot be that the development team opens ftp and downloads files with updates? Of course not, everything is much more interesting and, most importantly, more practical. Starting from automatic file updates through PhpStorm and ending with special builders, scripts and database migrations.
5. Dealt with Git and Github in particular.
6. I rented a server, I play in the console with settings. I understand that this is a separate area and it is easier to hire a person than to learn everything yourself, but you need to understand at least superficially.
7. I read books on algorithms and correct programming.
There is still a lot of things ahead - frameworks, cms, my own projects. And all this is more for fun than for work - I'm generally a designer. It just became interesting to me - what's next behind the pictures and html / css.
Maybe you just chose the wrong area if you do not have a strong desire to learn a little more about development?

X
xmoonlight, 2017-02-20
@xmoonlight

https://github.com/michael-vostrikov/XDebugClient

B
BBmike, 2017-02-20
@BBmike

You wrote that this is a hobby, not a craft ...
What questions then?
A hobby can be anything and you can do it in any mode.
There are people who don't know how to play guitar, but regularly visit guitar forums, argue passionately about the best sound and have good instruments.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question