473,785 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1736
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.or g> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Jul 19 '05 #6

"Mike Meyer" <mw*@mired.or g> 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.or g> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more
information.


Jul 19 '05 #7
"John Roth" <ne********@jhr othjr.com> writes:
"Mike Meyer" <mw*@mired.or g> 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.or g> 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
2454
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
2235
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 old HTMl screen scraping habits. My online CGI program Ask Merlin at www.awaretek.com/askmerlin.html is an example. Currently, the program takes any user's question and picks the best answer from amongst the possible answers given by the user....
11
9271
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 C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
52
4599
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 zero right bracket" Really it needs something more to indicate that it _is_ a date. The brackets would be better done with CSS, :before and content: , but the boss wants it to work under IE too. The site is firmly UK
136
9457
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 code was littered with document.all and eval, for example, and I wanted to create a practical list of best practices that they could easily put to use. The above URL is version 1.0 (draft) that resulted. IMO, it is not a replacement for the FAQ,...
14
2054
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
2507
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 experience. We employ some parts of XP such as pair programming, and this should help. Other than books, does anyone have any suggestions? His skill set is pretty antiquated and we need to get him up to speed as quickly as possible so any suggestions...
8
3221
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 the pages are PHP generated. Ideally, I'd like for the PHP backend to serve up the language based a) the user's locale, and if that is not set, its own locale.
11
3178
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
12123
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. I like php and have made my choice to use it as my main language, only the more I look into other languages, the more i see things that I like in them that I dont necesarrily see in PHP. For example, the more I use php I realize that php has...
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10341
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10155
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10095
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4054
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 we have to send another system
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.