I would like a recommendation for what program to use for web development. I've tried learning languages before like Python and JavaScript as a hobby but I found it boring because I didn't feel like it was relevant to my interests. Web pages, however, are relevant to my interests and I think it'd be a cool way to learn a language.
What do I hope to accomplish? I want to be able to create a sort of dynamic web page that allows me to write articles and then allow it to spit it out html when requested. Sort of like this:
/public_html/
|
|-- main.file
|
|-- /pages/
|
|-- Article1
|
|-- Article2
|
|-- so on so forth
I'm not looking for EXPERT WEB SOLUTIONS that have a million features, so I think this is a good opportunity to learn something.
Name:
Anonymous2009-02-01 1:49
Also, I'm not necessarily looking for the easiest thing out there, but something genuinely good for the task.
Name:
Anonymous2009-02-01 1:55
mod_python.publisher
Name:
Anonymous2009-02-01 2:37
Do you want do make a CMSblogawiki? Because your little tree looks like static pages.
Name:
Anonymous2009-02-01 3:09
>>4
I don't know what the is, but the pages themselves are supposed to have just text (w/ markup maybe?) in them and when requested, the main.file spits out said articles in proper HTML.
>>6
Because I'm want to learn a language. Sure, I could code HTML pages myself, but I want to try something different using a programming language. Like I said, I want to try learning a language doing something that's relevant to my interests.
Name:
Anonymous2009-02-01 3:39
You should probably learn perl or python, though ruby and php are also options. You also need to come up with some better specifications on what you're trying to do.
Will the input be plain text, simple markup (BBCode, MarkDown, etc.), HTML?
How will your pages be stored, file or database?
...
Name:
Anonymous2009-02-01 3:52
>>7
you're doing it wrong. you're supposed to learn languages to solve problems you already have, not create new problems as an excuse to learn shitty languages that are only good for solving fake problems.
Name:
Anonymous2009-02-01 4:19
>>9
Isn't managing a website a problem that warrants a solution? I guess that's why everybody codes their blogs by hand using HTML for every single page.
>>9
creating hypothetical scenarios to solve potential problems is a common exercise for learning things in this place called earth. i don't see how creating a CMS is a "fake problem" in the first place
Name:
Anonymous2009-02-01 4:31
learn proper xhtml and css.
learn javascript. first with native shit to learn dom bullshit, then with a library (mootools is nice).
php is ubiquitous and doesn't require any special wrangling on most servers. ruby on rails is neat but can be a pain.
Name:
Anonymous2009-02-01 5:08
You can do this in many ways, but it dumbs down to implementing a templating system(or something simpler). This can be done client-side or server-side. For client-side, it can be done using some Javascript which generates your pages based on a template, but it will break for those without javascript support, it will also make your page unindexably by search engines. For server-side, you can use almost real programming languages which will output the final (X)HTML page(maybe including dynamically generated images, stylesheets and other things) via CGI or some httpd module. You could easily use anything you'd want for it: PHP, Perl, Haskell, C/C++, Ruby, OCAML, Scheme, LISP, C#/ASP.net, Java, VBScript and so on... For dynamic content, it tends to be popular to use some sort of database too such as MySQL or PostgreSQL,however some people use local files for simpler storage(such as this BBS). Regardless if you can use just about anything to do it, unless you have your own dedicated server, most cheap hosting solutions tend to have limited support with only PHP/MySQL(and maybe some perl) and some CGI stuff. Coding this in PHP is easy as fuck, since it's what it was designed to be used for, but don't expect to learn "real" programming by using PHP.
Name:
Anonymous2009-02-01 10:00
why would anyone use anything other than php for web dev if php was made for web dev?
Name:
Anonymous2009-02-01 10:13
why would anyone uuse anything other than perl for text processing if perl was made for text processing?
Name:
Anonymous2009-02-01 10:16
why would anyone use anything other than Lisp for list processing if Lisp was made for list processing?
Name:
Anonymous2009-02-01 10:41
why would anyone use anything other than French for communicating French people if French was made to communicate with French people?