Could a website be written in more than one language, if yes, whatcombination of languages do you recommend?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erwin Moller

    Could a website be written in more than one language, if yes, whatcombination of languages do you recommend?

    Java + PHP, Ruby+PHP, Ruby + C++, or what else?
  • Michael Fesser

    #2
    Re: Could a website be written in more than one language, if yes, what combination of languages do you recommend?

    ..oO(Erwin Moller)
    >Java + PHP, Ruby+PHP, Ruby + C++, or what else?
    Of course you can write a website in a dozen different languages if you
    want, each page in a different one if necessary. Why do you ask?

    Micha

    PS: As said before - please write your question in the message _body_.

    Comment

    • larry@portcommodore.com

      #3
      Re: Could a website be written in more than one language, if yes,what combination of languages do you recommend?

      On May 5, 7:43 pm, Erwin Moller <hi.steven...@g mail.comwrote:
      Java + PHP, Ruby+PHP, Ruby + C++, or what else?
      Languages generally have strong and weak points. It all depends on
      what you wish to accomplish. From there you select the language(s)
      that can help you meet those goals.

      As an example say you are having a website report on real time data
      collectin stats, you might want to write the data collection portion
      in C as it is a faster language and have PHP grab the stats
      periodically from the C component and report them, etc.

      A great deal in good web sites is not the coding as much as the
      planning, then after you have a good plan and idea, you look at how to
      get there with the right code.

      Comment

      • Erwin Moller

        #4
        Re: Could a website be written in more than one language, if yes,what combination of languages do you recommend?

        On May 6, 10:55 am, Michael Fesser <neti...@gmx.de wrote:
        .oO(Erwin Moller)
        >
        Java + PHP, Ruby+PHP, Ruby + C++, or what else?
        >
        Of course you can write a website in a dozen different languages if you
        want, each page in a different one if necessary. Why do you ask?
        >
        Micha
        >
        PS: As said before - please write your question in the message _body_.
        Sorry, I will pay attention to it from now on.

        Comment

        • Piotr

          #5
          Re: Could a website be written in more than one language, if yes,what combination of languages do you recommend?

          Erwin Moller wrote:
          Java + PHP, Ruby+PHP, Ruby + C++, or what else?
          You can also combine PHP with both Perl and Python.

          best regards
          Piotr N

          Comment

          • The Natural Philosopher

            #6
            Re: Could a website be written in more than one language, if yes,what combination of languages do you recommend?

            Erwin Moller wrote:
            Java + PHP, Ruby+PHP, Ruby + C++, or what else?
            C, Assembler, Fortran..perl, python, BASIC..anything that can produce a
            stream of text to stdout in fact.

            Comment

            • Peter H. Coffin

              #7
              Re: Could a website be written in more than one language, if yes, what combination of languages do you recommend?

              On Tue, 06 May 2008 10:24:04 +0100, The Natural Philosopher wrote:
              Erwin Moller wrote:
              >Java + PHP, Ruby+PHP, Ruby + C++, or what else?
              >
              C, Assembler, Fortran..perl, python, BASIC..anything that can produce a
              stream of text to stdout in fact.
              I did a small one in CGI Cobol once. (It was that or Fortran on that
              machine....)

              --
              CS is about lofty design goals and algorithmic optimization. Sysadmining
              is about cleaning up the fscking mess that results.

              Comment

              • Ivan Marsh

                #8
                Re: Could a website be written in more than one language, if yes, what combination of languages do you recommend?

                On Mon, 05 May 2008 19:43:11 -0700, Erwin Moller wrote:
                Java + PHP, Ruby+PHP, Ruby + C++, or what else?
                A website can be written in every language the webserver and browser
                support... but why would you want to do that?

                --
                000000101001101 0 - The sixteen bit word of The Beast.
                "May Darkness Consume You."


                Posted Via Usenet.com Premium Usenet Newsgroup Services
                ----------------------------------------------------------
                Best Usenet Service Providers 2025 ranked by Newsgroup Access Newsservers, Usenet Search, Features & Free Trial. Add VPN for privacy.

                Comment

                • Twayne

                  #9
                  Re: Could a website be written in more than one language, if yes, what combination of languages do you recommend?

                  Java + PHP, Ruby+PHP, Ruby + C++, or what else?

                  Nice list of languages; there are more of course. What else what?


                  Comment

                  • Lars Eighner

                    #10
                    Re: Could a website be written in more than one language, if yes, what combination of languages do you recommend?

                    In our last episode,
                    <a3763bca-1843-406f-937a-67cd07945096@f2 4g2000prh.googl egroups.com>, the
                    lovely and talented Erwin Moller broadcast on comp.lang.php:
                    Java + PHP, Ruby+PHP, Ruby + C++, or what else?
                    Anything that can write plain text to STDOUT can be used to make HTML
                    documents because HTML is just plain text. This would include sh and other
                    shells and a large number of commands --- nanoblogger, for example, is a
                    blog written in sh with various uniod commands. Perl is an obvious omission
                    in your list. And Python, I suppose. Lisp --- if you are nuts for
                    parentheses. Even --- heaven help us --- FORTAN or COBOL. A number of
                    editors can be called with the name of an initial macro to execute, so you
                    conceivably use editor macro languages (about as many as there are editors)
                    to generate a whole website. Since many of these can use system calls (such
                    as backticks) to get output from the others, you could use whatever your
                    server's cgi module recognizes to direct the whole process. If you just
                    want to generate static pages that fit together as a website, there are even
                    more possibilities.

                    Okay, some of these possiblities are only theoretical unless you are already
                    cutting out paper dolls in a room with cushy rubber walls. People who get
                    out without attendants in white coats will usually want something with a
                    prebuilt library interface to their favorite database, but some database
                    clients do sensible things when called in a stream context that would make a
                    roll-your-own database interface not quite so intimidating as it might
                    otherwise seem. Likewise many commands, like various calendar commands.

                    The main problem with unconventional approaches is lack of portability. Even
                    a monkey can write stuff that works on his own machine. What makes a
                    programmer is writing stuff that will work on many/most machines. Of
                    course, many of these languages *should* work the same on any machine with
                    any OS (with a compiler/interpreter installed), but in varying degrees, that
                    is not always entirely true.

                    --
                    Lars Eighner <http://larseighner.com/usenet@larseigh ner.com
                    Countdown: 258 days to go.

                    Comment

                    • Jerry Stuckle

                      #11
                      Re: Could a website be written in more than one language, if yes,what combination of languages do you recommend?

                      Twayne wrote:
                      >Java + PHP, Ruby+PHP, Ruby + C++, or what else?
                      >
                      Nice list of languages; there are more of course. What else what?
                      >
                      >
                      >
                      Assembler? :-)

                      Although I doubt it could be possible in RPG, Forth might be able to do it.

                      --
                      =============== ===
                      Remove the "x" from my email address
                      Jerry Stuckle
                      JDS Computer Training Corp.
                      jstucklex@attgl obal.net
                      =============== ===

                      Comment

                      • Peter H. Coffin

                        #12
                        Re: Could a website be written in more than one language, if yes, what combination of languages do you recommend?

                        On Tue, 06 May 2008 20:20:23 -0400, Jerry Stuckle wrote:
                        Twayne wrote:
                        >>Java + PHP, Ruby+PHP, Ruby + C++, or what else?
                        >>
                        >Nice list of languages; there are more of course. What else what?
                        >>
                        >>
                        >>
                        >
                        Assembler? :-)
                        >
                        Although I doubt it could be possible in RPG, Forth might be able to do it.
                        *cough* See 223 of the PDF (says "208" on the corner of the document
                        image).



                        It's gotten a bit easier in the past decade:



                        --
                        46. If an advisor says to me "My liege, he is but one man. What can one man
                        possibly do?", I will reply "This." and kill the advisor.
                        --Peter Anspach's list of things to do as an Evil Overlord

                        Comment

                        • Jerry Stuckle

                          #13
                          Re: Could a website be written in more than one language, if yes,what combination of languages do you recommend?

                          Peter H. Coffin wrote:
                          On Tue, 06 May 2008 20:20:23 -0400, Jerry Stuckle wrote:
                          >Twayne wrote:
                          >>>Java + PHP, Ruby+PHP, Ruby + C++, or what else?
                          >>Nice list of languages; there are more of course. What else what?
                          >>>
                          >>>
                          >>>
                          >Assembler? :-)
                          >>
                          >Although I doubt it could be possible in RPG, Forth might be able to do it.
                          >
                          *cough* See 223 of the PDF (says "208" on the corner of the document
                          image).
                          >

                          >
                          It's gotten a bit easier in the past decade:
                          >

                          >
                          Ah, I didn't realize IBM had created a CGI interface for RPG :-)

                          --
                          =============== ===
                          Remove the "x" from my email address
                          Jerry Stuckle
                          JDS Computer Training Corp.
                          jstucklex@attgl obal.net
                          =============== ===

                          Comment

                          • Peter H. Coffin

                            #14
                            Re: Could a website be written in more than one language, if yes, what combination of languages do you recommend?

                            On Tue, 06 May 2008 23:31:38 -0400, Jerry Stuckle wrote:
                            Peter H. Coffin wrote:
                            >On Tue, 06 May 2008 20:20:23 -0400, Jerry Stuckle wrote:
                            >>Twayne wrote:
                            >>>>Java + PHP, Ruby+PHP, Ruby + C++, or what else?
                            >>>Nice list of languages; there are more of course. What else what?
                            >>>>
                            >>>>
                            >>>>
                            >>Assembler? :-)
                            >>>
                            >>Although I doubt it could be possible in RPG, Forth might be able to do it.
                            >>
                            >*cough* See 223 of the PDF (says "208" on the corner of the document
                            >image).
                            >>
                            >http://www.redbooks.ibm.com/redbooks/pdfs/sg244815.pdf
                            >>
                            >It's gotten a bit easier in the past decade:
                            >>
                            >http://www.ibmuser.com/train/dsfolder/acg4ds.htm
                            >>
                            >
                            Ah, I didn't realize IBM had created a CGI interface for RPG :-)
                            A while ago, too.... Obviously, it doesn't get a whole lot of use, but
                            the capacity is there. There's some fun tricks that can be done with
                            HTML and AS/400 display files to make the same green-screen programs
                            work prettily as because the whole "accept input, lock terminal, do
                            stuff, push output unlock terminal,, then you can't do ANYTHING until
                            you get more input" metaphor of programming ports *really well* to web
                            applications.

                            If I had more free time, I'd knock up some prototypes to allow PHP
                            extensions to be written in RPG just for the sheer wackiness.

                            --
                            "Doesn't everybody?" is a question that never expects an answer of "No."

                            Comment

                            • Gordon

                              #15
                              Re: Could a website be written in more than one language, if yes,what combination of languages do you recommend?

                              On May 6, 3:43 am, Erwin Moller <hi.steven...@g mail.comwrote:
                              Java + PHP, Ruby+PHP, Ruby + C++, or what else?
                              Could you? Sure, no problem, any language that can output text can
                              generate a HTML page. Most languages don't have nicities like $_GET
                              and $_POST and so on, but you could write libraries to manually pull
                              stuff out of the headers and build them into arrays yourself.

                              Should you? Unless you have a very very very good reason, then no.
                              Somebody's got to keep the website maintained, why make that person's
                              job harder than it needs to be?

                              Comment

                              Working...