What happens to a website with two or more backend programming languages? Why?

Source: Internet
Author: User
Keywords Python node php js
Tags domain name definition
For example, using PHP, Python, and node. js

Reply content:

Do a site, typescript/c#/sql/c++ Four are used are very common things, the site is not only you see the few lines of HTML can be made up of PHP and PHP C extension is not counted two languages = =:
Look at the size of the "website" You're going to do, "a website with two backend programming languages", which is common in production, first the UI layer will use a fast-developing service-side language, such as PHP, and then some performance-sensitive backend services will use low-level languages such as C + +, or some HTTP services may choose to java/c# such development And some services will choose the open-speed development language such as Python or even the fashionable node. js. Don't overlook the database, SQL is also a language.
On the dot scale of the site, it is impossible to have only one backend.
"What will happen ? "--There is no case ... It's true
"Why?" "--because it is a demand, but also a local


By the way, let's see how many languages a website needs ...
page:
Required: Html/css/js
Optional: Some front-end templates, such as Jade, EJS, etc., some preprocessing languages, such as Less/sass/stylus/coffee script, etc.
server-Side UI layer:
Required: Server-side language, such as PHP, Java, Python, Ruby, JavaScript at least one of the options
Optional: Some template engines, such as smarty, velocity, etc.
Data layer:
Required: Some kind of SQL, at least one choice.
various other services (may not be available on small sites):
C/c++/java/c# ... Too much, any programming language you can imagine, can appear in any module
Tool Chain:
Various scripts (including shell scripts), makefile, etc...
Documentation:
WORD (if it is also a language), markdown answer premise: A Web site, I understand a common user in the mind of a site and domain name definition, rather than a technical level of a solution/project.

In a large Internet enterprise, this is the normal situation.
For a single scenario, the consistent attitude is that only the most suitable, not the best.
For complex scenarios, it's normal to do everything, right?

The disadvantage of multiple languages seems to be a bit of a cost problem, mainly management costs.
Technical director to hold the live, his wages will naturally not be the level of senior yards. (Of course, the cost of management is much more complex, that is, Vitalize said.) )
But now the internet companies really care about these costs?
Those of care are ramping companies that are marginalized and hang up if they don't. No money to play a P Internet ah ...

There are other benefits, I will not elaborate. Capacity limits.
But I do not say the bad, not the justification, but because it is a choice, if the harm you can not bear, nature will not choose. In only two languages? That's the simplest website. The general website uses three kinds of four or more languages.

The main problem is that websites that use only two languages do not have high-end atmospheric grades?

Well, this, in fact, do not worry about this kind of vague reputation, and so your website grows up, certainly more than two languages. At this stage, only two languages should be able to save you a lot of things. What's going to happen in this ... This is too much, pro. What do you want others to say?

1. Team Work
2, the project control
3. Two Language Integration programs

It can be said that all aspects of the project are affected. I'm a layman, I don't know. PHP and SQL are not counted in two languages?
What the? Simple SELECT does not count? Does the stored procedure count?
SQL is not counted? Does the Php/python C extension count?

So what's there to say? Each language has its own problems and not good at dealing with the problem, as long as the entire system module is clearly defined, interface definition (including the explicit call specification, such as Json/thrift, etc.), how many languages do not matter ah. And make a chair to use a variety of tools one reason. The key is to address the need to solve the problem, can solve the problem of the language is good language. As long as the cohesion of good is not a problem, did a website, originally is asp+sqlserver2000 write, PHP rewrite when part of the time is too late to write, added a cookie to ensure that the data can be transmitted on the line, the database is also added a MySQL storage article
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.