473,326 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Best Web dev language

I'm trying to get into web development for creating a professional web site
and I'm confused on which language I should use. I've read some comparisons
between the major languages and I was thinking that python might be the way
to go for the most powerful and general language but I am not sure. Does
anyone know of any detailed and objective comparisons between the major
languages(perl, php, java, javascript, etc...) that might help me get a
clearer picture?

I have some experience with C/C++ but it has been some time since I have
done any real programming... I'd prefer to use C++ style so I would no thave
to learn a new language completely. I've also read that one can use C/C++
to develop just as one would use any other language and I'm wondering if
this is advisable? (since it seems most web pages are done in perl, python,
or php?)

Also, can anyone recommend any book or web page that gives an introduction
to the method in which one programs web sites? I am not clear on who one,
for instance, would use C++ as the language for a web site except by using
it to create html... I'm not sure if basicaly all languages goal is creating
html dynamically or if there is more to do. What I mean is that basicaly
one is using some other language to wrap the html code or possibly generate
it at run-time for dynamic results. (so all client based web interfaces are
really just html readers but all this "extra" stuff is used to make certain
things easier and dynamic(just as generating tables and forms and all that).

Thanks for any help,
Jon
Jul 19 '05 #1
7 1717
Jon Slaughter wrote:
I'm trying to get into web development for creating a professional web site
and I'm confused on which language I should use. I've read some comparisons
between the major languages and I was thinking that python might be the way
to go for the most powerful and general language but I am not sure.
If you are really interested in the "most powerful and general", then
Python is one of only perhaps several options. I wouldn't bother
counting something like C++ in the mix, personally... I'd say doing web
development with C++ would warrant a quick visit from those nice, young
men in their clean, white coats.

Perhaps the following pages will be of some assistance, not directly in
comparing Python with something else, but with giving the flavour (and,
unfortunate or not, diversity!) of Python approaches:

http://www.fredshack.com/docs/pythonweb.html
http://www.boddie.org.uk/python/web_frameworks.html

Michelle Levesque has been comparing several of the most popular in a
"bakeoff" at http://pyre.third-bit.com/pyweb/index.html .
Does
anyone know of any detailed and objective comparisons between the major
languages(perl, php, java, javascript, etc...) that might help me get a
clearer picture?
No, sorry. I can say, however, that if you want "general purpose" you
do not want PHP. In fact, if you're a real programmer you probably
don't want PHP. Perl... well, enough has been written about the
unreadability of Perl code and the number of ways its arbitrariness can
get you into trouble that I'm not going to waste time adding to it.
Javascript shouldn't be considered a serious contender for the
server-side stuff, though you will quite likely _require_ it for the
client side stuff, so keep it in mind but try to minimize your use of it
and postpone it as long as you can. (It's not actually that bad a
language in many ways, and even has a bit of the same flavour as Python
from time to time, in its dynamic nature.) Java? Well, a large number
of us here (me included) have spent a fair bit of time with Java and,
well, we're here now. (Really, Java is likely a much better candidate
than C++ for many reasons. If you are down to a choice of two to make,
I suspect it will be between Java and Python, or perhaps Ruby thrown
into the mix.)
Also, can anyone recommend any book or web page that gives an introduction
to the method in which one programs web sites? I am not clear on who one,
for instance, would use C++ as the language for a web site except by using
it to create html... I'm not sure if basicaly all languages goal is creating
html dynamically or if there is more to do. What I mean is that basicaly
one is using some other language to wrap the html code or possibly generate
it at run-time for dynamic results. (so all client based web interfaces are
really just html readers but all this "extra" stuff is used to make certain
things easier and dynamic(just as generating tables and forms and all that).


That's not a particular bad description. You're really starting from
scratch here, aren't you? <grin> My advice, since you have such a long
way to travel, is to use an "agile" approach and start with some small
subset of your overall requirements, the most critical/valuable part,
and pick any of the favourite Python frameworks and see how far you can
get. If you like the way it went, pick the next most valuable part and
then do it. (Keep these down to only a day or two of programming or
you'll get bogged down.) The "PyWebOff" page above is actually an
excellent demonstration of the approach you should take, and it's
already been done by someone else for three or four different frameworks!

-Peter
Jul 19 '05 #2
Hi Jon,

Yes, there are a variety of tutorials on the Internet that can help you
learning how to use Python with the web. Two of the best ones you can
get for free by clicking on the link below.
1) http://www.devshed.com/c/a/Python/Wr...ams-in-Python/
2) http://www.devshed.com/c/a/Python/Python-on-the-Web/
However, in order to understand the tutorials above, it is important to
first have a basic understanding of the Python programming language.
Python is not hard to learn, but it might take you a few hours to learn
it, if you have not done so already.

1) http://www.greenteapress.com/thinkpython/
2) http://www.devshed.com/c/a/Python/
Hope this helps,
Brian :-)
---


Jon Slaughter wrote:
I'm trying to get into web development for creating a professional web site
and I'm confused on which language I should use. I've read some comparisons
between the major languages and I was thinking that python might be the way
to go for the most powerful and general language but I am not sure. Does
anyone know of any detailed and objective comparisons between the major
languages(perl, php, java, javascript, etc...) that might help me get a
clearer picture?

I have some experience with C/C++ but it has been some time since I have
done any real programming... I'd prefer to use C++ style so I would no thave
to learn a new language completely. I've also read that one can use C/C++
to develop just as one would use any other language and I'm wondering if
this is advisable? (since it seems most web pages are done in perl, python,
or php?)

Also, can anyone recommend any book or web page that gives an introduction
to the method in which one programs web sites? I am not clear on who one,
for instance, would use C++ as the language for a web site except by using
it to create html... I'm not sure if basicaly all languages goal is creating
html dynamically or if there is more to do. What I mean is that basicaly
one is using some other language to wrap the html code or possibly generate
it at run-time for dynamic results. (so all client based web interfaces are
really just html readers but all this "extra" stuff is used to make certain
things easier and dynamic(just as generating tables and forms and all that).

Thanks for any help,
Jon

Jul 19 '05 #3
"Jon Slaughter" <Jo***********@Hotmail.com> writes:
Does anyone know of any detailed and objective comparisons
between the major languages(perl, php, java, javascript, etc...)
that might help me get a clearer picture?


I don't know of any (really good) comparisions, but anyway here
are my opinion:

Don't look only at something someone calls "major language". The
not-so-well-known one may offer you quite some nice extras.

If you have to deal with medium to complex application give
continuation based approches (Seaside (Smalltalk), PLT/Scheme,
Cocoon (Java), UncommonWeb (Common Lisp) and others; to get an
idea look at http://lisp.tech.coop/Web/Continuation ).

What language do i seem interesting to look at for web
development? Hmmm... let's see (listing in random order):

- Common Lisp (my personal favorite)
- Scheme (PLT/Scheme, Bigloo,...)
- Scala (http://scala.epfl.ch/)
- Nice (http://nice.sourceforge.net/)
- Squeak (http://www.squeak.org/index.html)
- Python

Scala and Nice compiles to Java-Bytecode and you have access to
the complete Java-World (AFAIK there are such JVM-Compilers for
Common Lisp and some Scheme, too and there is JPython).

I don't like Perl syntax much, so it's not on the list, and PHP is
a rather chaotic language with (personal view!) at least a couple
of new security issues eacht month, so it's the worst choice one
can make (i think).

Hope that helps a little bit.

--
Stefan.
Jul 19 '05 #4
D H
Jon Slaughter wrote:
I'm trying to get into web development for creating a professional web site
and I'm confused on which language I should use. I've read some comparisons
between the major languages and I was thinking that python might be the way
to go for the most powerful and general language but I am not sure. Does
anyone know of any detailed and objective comparisons between the major
languages(perl, php, java, javascript, etc...) that might help me get a
clearer picture?


The one that is most popular and has by far the most open source example
applications out there is PHP (plus MySQL for databases). It's been
that way for many years now. It is also much cheaper and easier to find
PHP/MySQL hosting. Search sourceforge.net for many example PHP web
applications.

I hope you realize that by posting your question on the Python newsgroup
instead of a general web development newgroup, you're going to get
extremely biased answers. If you do go with Python, check out the
mod_python module for the Apache web server.
Jul 19 '05 #5
"Jon Slaughter" <Jo***********@Hotmail.com> writes:
Also, can anyone recommend any book or web page that gives an introduction
to the method in which one programs web sites? I am not clear on who one,
for instance, would use C++ as the language for a web site except by using
it to create html... I'm not sure if basicaly all languages goal is creating
html dynamically or if there is more to do. What I mean is that basicaly
one is using some other language to wrap the html code or possibly generate
it at run-time for dynamic results. (so all client based web interfaces are
really just html readers but all this "extra" stuff is used to make certain
things easier and dynamic(just as generating tables and forms and all that).


That's one way to look at it.

Personally, I prefer to think of HTML as the "UI toolkit" for web
development. It's more like CLI code that GUI code, in that you have
three distinct phases of "process, display, await response" rather
than waiting for UI events which trigger data processing and a display
update.

As such, you can use pretty much any language that can connect to the
toolkit. CGI is pretty low-level, and pretty much anything can be
used. C++ and Java both certainly get used. Others have mentioned LISP
variants. I've used the shell and Rexx. These days, I prefer Python,
but that's what you'd expect from somene reading c.l.python. Anything
you're comfortable with should work. In particular, since the user is
going to spend time waiting on network delays, any performance issues
the language implementation may have will be negligible for a single
user.

Someone mentioned that you might "require JavaScript on the client
side". I recommend against that - people and organizations disable
JavaScript for security reasons, and browsers on portable devices may
not have JavaScript at all. Why limit your audience? If you understand
HTML, it's possible to write a web page that uses JavaScript (or any
other such technology) for flashy effects, but still functions
properly if the user has disabled JavaScript, or doesn't have it
available. But that's a long discussion - see <URL:
http://www.mired.org/home/mwm/papers.green.html > for more
information.
<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 19 '05 #6

"Mike Meyer" <mw*@mired.org> wrote in message
news:86************@guru.mired.org...
"Jon Slaughter" <Jo***********@Hotmail.com> writes:
Someone mentioned that you might "require JavaScript on the client
side". I recommend against that - people and organizations disable
JavaScript for security reasons, and browsers on portable devices may
not have JavaScript at all. Why limit your audience? If you understand
HTML, it's possible to write a web page that uses JavaScript (or any
other such technology) for flashy effects, but still functions
properly if the user has disabled JavaScript, or doesn't have it
available. But that's a long discussion - see <URL:
http://www.mired.org/home/mwm/papers.green.html > for more
information.
I would have said that at one time, but then the world changed
with AJAX, expecially with Google using very script heavy applications
for all of their new work. It leads to very responsive web applications.

John Roth


<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more
information.


Jul 19 '05 #7
"John Roth" <ne********@jhrothjr.com> writes:
"Mike Meyer" <mw*@mired.org> wrote in message
news:86************@guru.mired.org...
"Jon Slaughter" <Jo***********@Hotmail.com> writes:

Someone mentioned that you might "require JavaScript on the client
side". I recommend against that - people and organizations disable
JavaScript for security reasons, and browsers on portable devices may
not have JavaScript at all. Why limit your audience? If you understand
HTML, it's possible to write a web page that uses JavaScript (or any
other such technology) for flashy effects, but still functions
properly if the user has disabled JavaScript, or doesn't have it
available. But that's a long discussion - see <URL:
http://www.mired.org/home/mwm/papers.green.html > for more
information.


I would have said that at one time, but then the world changed
with AJAX, expecially with Google using very script heavy applications
for all of their new work. It leads to very responsive web applications.


Actually, AJAX just makes the case for wanting JavaScript turned on
stronger - it doesn't change the fundamental facts of what's going
on. People/organization will still turn off JavaScript because it
represents a security risk. Low-end network devices will still have
browsers that can't do JavaScript. You can still either code your
pages to alienate such users, or you can provide them with the same
basic functionality as they'd get if they had JavaScript, except it
won't be as responsive/flashy as it would be if they did.

Try Googles new work with JavaScript turned off. You'll find that a
lot of the new stuff works fine without it, thought it may not be as
spiffy. For those that don't, they warn the user that it won't work,
which means they are doing better than 90% of the sites that require
JavaScript on the web.

<mike
--
Mike Meyer <mw*@mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 19 '05 #8

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

Similar topics

18
by: Roman Suzi | last post by:
;-) Just type into google "best programming language" and press (I am lucky) Sincerely yours, Roman Suzi -- rnd@onego.ru =\= My AI powered by GNU/Linux RedHat 7.3
1
by: rdsteph | last post by:
I am having a lot of fun using the pyGoogle module ( http://pygoogle.sourceforge.net/ ) that uses the Google API. It is about as easy to use as I can imagine, and it is a lot nicer than using my...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
52
by: Andy Dingley | last post by:
I'm using this at present: <p title="Publication date" ></p> Works fine on screen, but Fangs/Jaws just reads it as "left bracket twenty-eight slash zero slash two thousand five fifteen colon...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
14
by: Rajnish | last post by:
Hi C experts, Please suggest me best c programming language tool, which is like Jbuilder (for java) which suggest all avilable methods etc on typing the object. Best regards, Rajnish
13
by: BK | last post by:
Our .Net team has just inherited a junior programmer that we need to get up to speed as quickly as possible. Unfortunately, his skill set is largely Access with some VB6 and ASP classic...
8
by: CptDondo | last post by:
I have a small, embedded app that uses a webserver to serve up pages showing status, etc. Right now all the pages are hard-coded in English. We need to provide multi-lingual support. All of...
11
by: Sarath | last post by:
I'm so much font of working with C++ . That's the reason why I'm not yet looked or craze about any other language. Still a question exists, really C++ is the best language in its category?
11
by: macca | last post by:
I know this is a php newsgroup so obviously most people here like using php, but I was just wondering what people's opinnions were on the most diverse/useful and friendly 'scripting' language was....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.