Results 1 to 4 of 4

Thread: Coding for Front end and Backend

  1. #1
    Join Date
    Jul 2012
    Posts
    197
    Thanks
    54
    Thanked 3 Times in 3 Posts

    Default Coding for Front end and Backend

    Is it a better idea that developing an apps by doing front end in one language and back end in other language. it have any demerits ?

    If not what are benefits for using these two different languages in both end/ or which is best language we can use in back end (asp.net, java, ... ) if my apps is developing with php front end

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It depends on the situation and your goals. On average, I'd say it's best to use the same language so that everything interacts easily. But there may be situations where you need to mix two languages.

    An example would be a case where PHP does not have a feature available; you might also run Java or C++ on the server and use PHP to send and receive information back and forth. But that's rare.

    The other situation I can think of is for speed-- PHP (and other specialized languages like it) tend to be much slower than low-level languages like C. So if you need it to be very very fast (which is often not a practical concern), then you might want to send some of the most intense processing to a different language. I think I've read that PHP is 1/3 the speed of C. But that will only be a problem if you're doing a LOT of processing-- maybe generating images, or some other very processor-intensive operation.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. The Following User Says Thank You to djr33 For This Useful Post:

    letom (03-29-2013)

  4. #3
    Join Date
    Jul 2012
    Posts
    197
    Thanks
    54
    Thanked 3 Times in 3 Posts

    Default

    Thanks can we write c++ extensions in PHP ?

  5. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    No. You'd write a separate program in C++ then interact with it by executing system commands, probably with exec().
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. The Following User Says Thank You to djr33 For This Useful Post:

    letom (03-29-2013)

Similar Threads

  1. secure log-in & file upload, backend work.
    By danflintdesign.com in forum General Paid Work Requests
    Replies: 2
    Last Post: 10-15-2009, 03:37 PM
  2. Creating a webpage to query a ms access database backend
    By twardone in forum MySQL and other databases
    Replies: 5
    Last Post: 04-27-2008, 02:56 PM
  3. REQUEST: backend site construction
    By matt- in forum Looking for such a script or service
    Replies: 0
    Last Post: 01-25-2008, 10:15 AM
  4. Backend CGI script..
    By Benzoa in forum Other
    Replies: 5
    Last Post: 11-11-2006, 10:52 AM
  5. Replies: 5
    Last Post: 05-05-2006, 11:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •