![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Dec 2005
Posts: 2
Rep Power: 0
![]() |
Which Language??
Hi all,
I'm just after a bit of advice on which language to learn. I have a basic knowledge of HTML, and am looking to re-vamp my site with things like my own guestbook, a forum, and a few other bells and whistles. I'm going to spend some time learning a language (e.g. php, asp, cgi, java, jscript, xml etc..) but would like your suggestions on the pros and cons of these. At the moment I think PHP looks like the way to go. Any Ideas? Cheers, Mike
__________________
www.terzza.com |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Cgi is not a language. It's an interface. PHP is a good choice. Some competitors are coming up on the outside. I would recommend (just as a matter of course, there are no violations in your post) that you be sure and read the forum's FAQ/rules, a "How to Post..." thread, and that you search or browse the forums. Obvioulsy, your question is quite common.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Dec 2005
Posts: 2
Rep Power: 0
![]() |
Thanks DaWei, I'll crack on with some PHP tutorials now!
![]()
__________________
www.terzza.com |
|
|
|
|
|
#4 |
|
Expert Programmer
|
Terz, I think you should look into XHTML, it'll show you how to code HTML properly.
Then you should take a look at CSS, it is great for designing and laying out pages. Then there are technologies such as JavaScript that could be looked into. Then you could look at PHP and MySQL. But ultimately its up yo you and what you want.
__________________
Join us at #programmingforums @ irc.freenode.net! My software never has bugs. It just develops random features.
|
|
|
|
|
|
#5 | |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5
![]() |
Quote:
Second, as stated, CGI is an interface, not a language. The main downside to CGI is that it is (usually- it depends on how the server works) not as efficient as something like JSP for trivial tasks, since there is significant overhead with the creation and termination of threads (some servers reduce this performance hit by having a pool of idle tasks or using other such tactics). Thus, if you're using it for basic forms submission, etc, it is not going to be the ideal solution. If you're using it to do more in-depth tasks (say, dynamically create large images), it might be more efficient, depending on the language you use. The strength of CGI is you can leverage (yeah, industry buzzword) your skills in pretty much any language. Simply put, if your language of choice can read environment variables and write to standard output, you can write CGI programs in it. The server handles redirection of the output to the browser. [edit] You should also read about the difference between 'server side' and 'client side' if you are unclear on this. Often, doing stuff server side is more sensible, because you a) aren't (as) dependant on script support from the browsers, b) less data needs to be sent to the client, and c) it's more secure. Of course, it also means more work for your server, which could become a problem with a popular site (but for a personal home page, it's likely a non-issue). [/edit]
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|