ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.