LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2007, 08:25 PM   #1
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Rep: Reputation: 32
Web Programming Language for Beginner


My goal is to write a personal homepage. I will register my own domain and host it on a server that I physically own and operate.

I am a programming beginner. The only "programming" experience I have is some bash scripting.

For this purpose, what do you suggest? Thank you for your advice!
 
Old 09-27-2007, 08:27 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
HTML and PHP

Well OK, HTML isn't an actual 'programming language' per se, but for a beginner wanting a personal home page, PHP & HTML will do pretty much whatever you want.

RE: Post #3 below -- JavaScript's great, very functional, but only when allowed to run on someone's browser. With few exceptions, it doesn't get to run on my browser.

Last edited by GrapefruiTgirl; 09-27-2007 at 08:41 PM.
 
Old 09-27-2007, 08:27 PM   #3
RHLinuxGUY
Member
 
Registered: Oct 2003
Distribution: Ubuntu 7.04
Posts: 889
Blog Entries: 1

Rep: Reputation: 30
HTML? I'm not joking, is that the type of language you are referring to? If not, then I suggest you look into the next best thing which is JavaScript for programming on the web.
 
Old 09-27-2007, 08:42 PM   #4
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by RHLinuxGUY View Post
HTML? I'm not joking, is that the type of language you are referring to?
Actually, I did not mean to refer to any type of language. Like I said, I have no experience with programming.

Quote:
Originally Posted by RHLinuxGUY View Post
If not, then I suggest you look into the next best thing which is JavaScript for programming on the web.
Is javascript FOSS? My home page will be running on Debian GNU/Linux. I will not have a shred of closed-source, non-free, or proprietary software on my server.

Thanks again!
 
Old 09-27-2007, 08:53 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
We're splitting hairs here, but Javascript is simply code that you write. The interpreter lives in a browser and is free (not sure if it is open source).

But---start with HTML + CSS. When you are comfortable creating a simple page, then Javascript will make more sense.
 
Old 09-27-2007, 08:54 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,636
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
If your goal is learning, you might experiment with any number of possible languages. But if you want a site, remember the mantra:
Quote:
Originally Posted by a wise sage:

Dictum Ne Agas

"Do Not Do A Thing Already Done"
 
Old 09-27-2007, 08:57 PM   #7
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by GrapefruiTgirl View Post
HTML and PHP
RE: Post #3 below -- JavaScript's great, very functional, but only when allowed to run on someone's browser. With few exceptions, it doesn't get to run on my browser.
This is another requirement: My home page must be written so that any browser*, in it's default configuration, will display it correctly.

*any browser--Gecko, KHTML, WebKit, Opera, and Internet Explorer.
 
Old 09-27-2007, 09:04 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by glock19 View Post
This is another requirement: My home page must be written so that any browser*, in it's default configuration, will display it correctly.
Now you are into the meat....If you code according to the standards, everything will work nicely---except IE. I'm not a web professional, so grab your salt shaker for this one: I spend maybe 30% of my web page efforts just making it work in IE.

MS gets flak for a lot of things, but somehow their flagrant abuse of html and CSS standards stays under the radar.
 
Old 09-27-2007, 09:08 PM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Web coding.

Quote:
Originally Posted by glock19 View Post
This is another requirement: My home page must be written so that any browser*, in it's default configuration, will display it correctly.

*any browser--Gecko, KHTML, WebKit, Opera, and Internet Explorer.
For the most part, this will be the case with all three languages offered here so far. Internet browsers are all *theoretically* coded to display certain common things among themselves.
CSS (cascading style sheets) and HTML (hyper-text markup language) when written according to the HTML Standard(s) are designed to be interoperable and render correctly on ANY machine, and with ANY browser. However, there are ALWAYS some tidbits, whether in layout, scripting, tags, or whatever, which don't display *perfectly* in every browser. Usually, this is because of bugs or shoddy programming on the part of the browser-programmer. It can also be attributed to advances or improvements in the standards, which have not yet been implemented in a given browser.

Basically, for your intent and purpose, you can *for the most part* assume that if you learn by writing HTML, PHP, CSS, and even Javascript, your page will work in *most* browsers on *most* machines. There will always be weird exceptions, especially between internet explorer versions and Firefox versions. Last I checked, Firefox was more standard-compliant than IE.
As for JavaScript, my comment above was because people like me, or anyone who doesn't want executable code being run on their machine, will use such things as 'script blockers' like NoScript for Firefox. With this, Javascript is not able to run in the browser, so if you were to write a webpage using lots of Java (or any Java for that matter) it would not work properly on a browser with Javascripting disallowed. This is largely a carry-over from the Windows world, in which JavaScript (as well as ActiveX) is one of the primary means of installing junk, malware, toolbars, etc., onto peoples Windows computers.

To do dynamic scripting/coding, I find PHP is a VERY powerful, agile language, which can do math, string functions, really anything you want it to. HTML's main 'raison d'etre' is to put text on the screen and perform simple form submission.
 
Old 09-27-2007, 09:21 PM   #10
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
I've been doing sites for a while now. A little advice...

First, HTML is your best bet. It a relatively simple language, very broad, and since its original, all browsers read it. Second, don't use flash as it will slow the site down, and decrease your bandwidth. Third, CSS is not necessary, but helpful. Four, PHP is used for all your forms on a site, I personally don't know it, but am starting to read up on it.

If you like framesets, too bad. Many browsers don't like them very much, and they limit quite substantially the layouts you can have. Go with tables set to relative height and width that adjust to a window size. You can have them look like a frameset, but not be one, and look very nice. Also, they tend to load faster than a frame because a frame is a completely different file.

Essentially, stick to the basic languages and you'll do fine. Just stay away from Javascipt, Flash, and Framesets.

Last edited by phantom_cyph; 09-27-2007 at 09:22 PM.
 
Old 09-27-2007, 09:31 PM   #11
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by phantom_cyph View Post
Second, don't use flash as it will slow the site down, and decrease your bandwidth.
Besides, it's not FOSS.

My web page/site should display correctly from the default browser of a default Debian stable installation.
 
Old 09-28-2007, 07:17 AM   #12
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by phantom_cyph View Post
Third, CSS is not necessary, but helpful.
If you like framesets, too bad. Many browsers don't like them very much, and they limit quite substantially the layouts you can have. Go with tables set to relative height and width that adjust to a window size. You can have them look like a frameset, but not be one, and look very nice. Also, they tend to load faster than a frame because a frame is a completely different file.
IMHO, CSS is absolutely the way to go. Having learned it, I now see it as necessary.
Take a look at "Spring into HTML and CSS" by Molly Holzschlag.
 
Old 09-28-2007, 09:32 AM   #13
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by phantom_cyph View Post
Four, PHP is used for all your forms on a site, I personally don't know it, but am starting to read up on it.
Actually, almost any programming language can be used to handle forms or create forms. PHP is designed to do this easily, and web servers are often preconfigured with PHP, but any language that can read & write standard IO should be capable of handling forms. Certainly perl is a very common alternative, and there are many other possibilities, even bash.

--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Beginner programing language... computer_tom Programming 95 12-20-2007 02:58 PM
PHP ! a good programming language for web ! thaihoabo Programming 10 01-11-2007 08:49 AM
programming beginner darksvr Programming 6 09-11-2003 02:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration