The most efficient server-side programming language for web development?

It is rather a matter of pros and cons between PHP and JAVA. Iv did research, and iv narrowed it down to the two.

And in connection with this id would like to go to the dev mobile application ... So here is +1 for Java.

The time taken to learn the language is not a problem ... I just would like to know which one is most effective between the two languages ​​mentioned above.

And on a small note. Can Javascript work with Java? And what is the real advantage of this?

All answers are welcome, thanks in advance.

+4
source share
8 answers

Some reviews:

  • A mobile app developer is not necessarily just web development.
  • Javascript is the language of choice in a web browser and works with PHP, Java, etc. on server.
  • In general, one language is not more effective than another.

Seriously, judging by your post, I would advise you to start learning PHP and Javascript.

You already have a web browser, so you can start writing javascript now.

As for PHP, just install XAMPP from http://www.apachefriends.org/en/xampp.html , and after double-clicking you will be ready for web development.

Once you know how all this will be with you, you can check Java and see if it is more effective in what you are trying to do.

+1
source

Sorry, PHP and Java aren’t the only choice. Ruby on Rails and Python Django are great web development tools. Although I haven't used it yet, the Groovy Framework Grails is also very heavily revised (mostly by former Java programmers). In certain (admittedly obscure) circumstances, it’s even advisable to do something off the wall, like writing a CGI program in C. It all depends on what you are trying to do.

The mobile application developer should not influence your choice here, because no matter which web framework you work with the mobile application, this is a completely new ball of wax.

So, there’s a deal: asking people to compare PHP and Java will not really give you any meaningful answers - you don’t have the background needed to understand what we’ll say. You really need to figure out what you are trying to do before choosing your tool. I like to say, “I’m thinking about building a house, should I use a screwdriver or a hammer?” Here's what I would recommend:

  • Get to know the program. Almost any language will do, but I would suggest something nice, like Python or Ruby. Spend a few months on the convenience of programming.
  • Select a project. Make it something simple. When you know what your project is, choose the tool that will be used to complete your project. This may include asking another SO question.
  • Rinse and repeat. Complete many projects. After you finish 5 or 10 web projects, you can compare different tools. The more tools you use, the better. I suggest you do it in Ruby on Rails, one in PHP, one in Django (python framework) and maybe one in Java with JSP.

As soon as you have this base of experience and ask this question again. You will really be ready to understand the answers. Of course, once you have such an experience, you will not need to ask a question, because you already know the answer.

+9
source

What you know.

+4
source

And in connection with this id would like to go to the mobile application ... So, +1 Java.

How is this +1 for Java? We are talking about server languages ​​.. you are not using your server on the phone? Of course, you can use Java to create applications in addition to launching your site, but that's another story.

The time spent learning a language is not a problem ... I just would like to know which is the most profitable at the end of the entire training.

None of the languages ​​will make your site more profitable, but you may be more in demand in different companies depending on what you know.

And on a small note. Can Javascript work with Java? And what is the real advantage of this?

Well ... yes, but that is an almost pointless question. You use Java or PHP to create HTML code that is sent to the client, and then your JavaScript manipulates this. This is completely unrelated to the language you use on the server side.


@comment: I can’t say it is worth learning more. I believe that Java is more universal in that it has more applications off the Internet. PHP is supported by more web servers (AFAIK), so you will not have problems if you need to work on another server.

I cannot honestly recommend one by one. I used only PHP for the web and Java for non-web. I like PHP because it is easy to select, easy to use, and all sorts of things are built into the language without any inclusions or anything else. It has a large community, so there are many scripts that you can download. One could argue that this is also a mess of the language, but as long as you are not all upset about this, this is not a problem. Java OTH ... I do not know. I am not Java keener, all I say :)

+2
source

Your question really indicates that you need to learn a lot about web development and programming in general, so I could answer your question, but .. I would advise you to read a little.

+2
source

Most of the answers here should be able to direct you to your answer, although I would just like to say if you are going to learn a programming language so that web applications learn Java, and not because it will be the best tool for the job, each job is different. but knowing a full language, you can quickly adapt to other languages.

You do not learn a language, you study programming concepts, and then apply them in different languages.

+2
source

I think you need to outline the context of your question. For example, if you want to get an IT job, the most desirable language in job advertisements is the one you want. If, on the other hand, you have an application in mind that you would like to write, then you need to tell people (without giving details) what type of application he wants so that they can tell you the most suitable languages ​​/ APIs for this area.

But remember this - there is no such thing as a super-programming language that is best suited for everything. Each language is suitable for a number of tasks in different contexts and is usually terrible for everything else. Without the context of where the language will be used, no one can tell you which is better.

+1
source

Stop trying to kill two birds with one stone. There are various tools for various tasks. You can write mobile applications with Java, but you cannot write web applications with it. You will have to use a server-side programming language such as PHP, Ruby on Rails, Django (Python), etc.

-3
source

Source: https://habr.com/ru/post/1306760/


All Articles