Answer the question
In order to leave comments, you need to log in
Switching from PHP to...?
Not for a "holy war" for the sake of, but only in order to collect opinions and learn something new.
I have been developing in PHP for many years. It is clear that there is a fairly large arsenal of their own developments, which allows them to quickly create various kinds of projects, but the soul asks for something else ...
The project assumes authorization, integration with social networks. networks, working with noSQL, working with media, and so on. And ideally, it would be very cool if XSLT could be used as templates for the desired view type, because this is the best, IMHO, that can be used as a template engine.
Help to choose an alternative PHP with reason. Or maybe I'm looking in the wrong direction at all, and I don't need from Ruby vs. Python to choose and see something else?
It is clear that there is a fairly large arsenal of their own developments, which allows you to quickly create various kinds of projects under this task to try something new. In theory, of the obvious, in my opinion, options for the “new”, the first to come to mind are Ruby (+ RoR?) and Python (+ Django?), which I read about and studied a little a long time ago. But what to choose and why?
Answer the question
In order to leave comments, you need to log in
I join the recommendations to try Node.js, the argument in favor of which is the fact that when studying it, a web developer does not have to learn a new language at the same time: Node uses JavaScript, which already runs the client side of sites.
Thus, to switch to Node, it is enough to learn the Node API and learn how to choose the right ready-made open source modules developed by the community. Modules can be found by listing on the wiki or by keyword search on the npm site .
In particular, there are a lot of ready
I'll ask the following question: what PHP frameworks do you know?
It suddenly turns out that you are only familiar with the basics of a couple, and then all the rails will advise you.
Once again I see here the phrases “when learning Node.js, you don’t have to learn a new language at the same time”, “it’s better to do one thing”.
What the hell? You need to study everything, and python, and hack, and node, and Chinese for a heap. Just to understand that the paradigms you are using are not the only ones possible.
Even if after that you stay in PHP, it turns out that they started writing much better in it.
For example, after getting acquainted with OOP languages, I began to write an order of magnitude better in C, although it would seem that there are no syntactic constructions for this.
And when you figure it out yourself, then you can choose what to specialize in. Much better than that, this thread will help you.
If you are tired of PHP and in general this approach (started-run-dead), you want something fresh and conceptually different, I would recommend Nodejs. It becomes especially interesting when using websockets via socket.io. I can’t say anything about xslt, I didn’t have such an experience, but there are corresponding libraries .
I had a similar experience, had a small project and time. The Klint part was decided to be done in angularjs. They wanted to make the server one on yii, poked around, tried the starting build, eventually spat and took nodejs + expressjs, figured it out faster than with yii, there were problems with some libs for working with ftp and excel, but there are no complaints about the web part.
The main plus is that I learned how to work with asynchronous code.
Recently, it was necessary to make changes to a part of the project on RoR, again, it was easy, but it took a little longer to master, because. ruby is not as familiar as javascript. But knowledge of the php laravel framework helped a lot.
I would advise you to start learning from the node, since there is a really new experience with an asynchronous approach, which will later help when developing in php.
I won't say anything new, but why not just take a look at the examples on RoR and Django and choose what you like best?
If “for the soul”, “for a change”, then I recommend not to dwell on one thing, but to try to implement several symbolic projects on everything proposed above, and then you can already draw some conclusions.
From experience, I’ll say that the transition from PHP to Python is quite simple and does not bring any special difficulties (unless, of course, your team does not have space lovers and tabulation lovers together, otherwise you are tormented to look for an error if there are spaces in one line and tabs in the other, but visually everything looks the same). But for the same reason, it may seem to you not so interesting, not so extravagant and “unlike PHP”. It all depends on your desires and expectations, here it is difficult to advise something specific.
You just look at where web development is heading.
Previously, forms were validated by http requests, now they are some kind of jquery.validation on the client.
Previously, pages were refreshed via
setTimeout(function(){window.location.reload()}, N)
, now many have learned how to make head requests to api, and then add content. If you want to raise your level of programming, start learning some statically typed language Scala, Java, C#
I'm slowly watching golang for myself. Quite an interesting and unusual language =)
I chose C++ for myself... Now I'm working on CMS-ku on it... Is it difficult? And who is easy now? ))
I also recommend Ruby on Rails, great for quickly developing your own projects. But if you are looking for “for the soul”, and not a portfolio, then look at micro and just small frameworks: Sinatra, Padrino, etc.
I came up with the idea of a multi-user project “for the soul”, which I will do fairly quickly on my “bike”, but I would like to try something new for this task.
Look towards http://vibed.org/
much better than PHP and much more conceptual than Nodejs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question