473,506 Members | 11,491 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?
Jun 2 '08 #1
14 1809
..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_.
Jun 2 '08 #2
On May 5, 7:43 pm, Erwin Moller <hi.steven...@gmail.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.
Jun 2 '08 #3
On May 6, 10:55 am, Michael Fesser <neti...@gmx.dewrote:
.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.
Jun 2 '08 #4
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
Jun 2 '08 #5
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.

Jun 2 '08 #6
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.
Jun 2 '08 #7
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?

--
0000001010011010 - The sixteen bit word of The Beast.
"May Darkness Consume You."
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
http://www.usenet.com
Jun 2 '08 #8
Java + PHP, Ruby+PHP, Ruby + C++, or what else?

Nice list of languages; there are more of course. What else what?
Jun 2 '08 #9
In our last episode,
<a3**********************************@f24g2000prh. googlegroups.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/us****@larseighner.com
Countdown: 258 days to go.
Jun 2 '08 #10
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.
js*******@attglobal.net
==================

Jun 2 '08 #11
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

--
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
Jun 2 '08 #12
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 :-)

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 2 '08 #13
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."
Jun 2 '08 #14
On May 6, 3:43 am, Erwin Moller <hi.steven...@gmail.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?
Jun 2 '08 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2642
by: Steven T. Hatton | last post by:
Stroustrup says this: http://www.research.att.com/~bs/bs_faq2.html#macro "So, what's wrong with using macros?" "And yes, I do know that there are things known as macros that doesn't...
19
2236
by: Swaregirl | last post by:
Hello, I would like to build a website using ASP.NET. I would like website visitors to be able to download code that I would like to make available to them and that would be residing on my...
7
1547
by: Jonathan Wood | last post by:
Greetings, I have extensive programming experience (nearly 20 years) but have yet to write a full-blown Web application. In fact, I have done hardly any server/client/database programming at...
3
1672
by: BLob | last post by:
Hi, I am building a multi languages website. To simplify let's say that I need to deal with news, projects, partners, all of them having some information depending on the language (title,...
17
2257
by: stubbsie | last post by:
Hi, I have redesigned our official public government website in .net and it has taken me a few months to redo. I have been the sole designer of the website from its humble beginnning a few years...
6
1261
by: stork | last post by:
C++ is always evolving. Within C++, there tend to be two communities. There is the community pushing for performance features, getting ever closer to the metal, and then, there is the...
21
55574
by: phpCodeHead | last post by:
Code which should allow my constructor to accept arguments: <?php class Person { function __construct($name) { $this->name = $name; } function getName()
2
1553
by: db2 | last post by:
Hi, I have heard that stored procedure on Z/OS can be written on assembler language only. Can any body could help me out on DB2 stored procedure on Z/OS. If you recommend me any materials, that...
3
6267
by: =?Utf-8?B?SGVyYg==?= | last post by:
I've developed an ASP.NET website that runs fine on my local WinXP IIS and on my server's IIS, both are IIS6.0 The site uses a master page that has the following declaration: <%@ Master...
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5617
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.