LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-18-2010, 07:26 AM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
Easy to learn server-side language?


Coming from a C and C++ background, with a little SQL at university, I was wanting to move to web development and implement an idea of mine for evaluating movies. In a nutshell, the idea is this: produce a score for each movie by only taking into account opinions of people of your age and psychological profile, as derived from a questionaire. Or a score derived from the opinions they have given about other movies, the more match there is with your opinions about those movies, the higher the coefficient for their opinion in the production of the movie score.

What's the easiest way to implement this, what language is the easiest to learn?

Last edited by Ulysses_; 10-18-2010 at 07:38 AM.
 
Old 10-18-2010, 07:39 AM   #2
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
I recommend Python. Here's a resource on Web framework for Python for reference.
 
Old 10-18-2010, 07:47 AM   #3
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
That sounds like LAMP -- Linux-Apache-MySQL-PHP (any throw in a little HTML for flavor).

Do a good data base design (so, learn some more about SQL) and you're 99% of the way there. You use PHP between your web page and your data base (so get good a query writing, even more about SQL).

A hint? You do not need to build your own movie data base -- you can use the Internet Movie Data Base (http://www.imdb.com) as a look-up -- you get all kinds of information from there.

Hope this helps some.
 
1 members found this post helpful.
Old 10-18-2010, 08:22 AM   #4
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
That movie site was the inspiration, because of its fundamental flaw: all opinion givers contribute equally to the score of a movie. Which means that if lots of teenagers like a crap movie and vote for it, it will go high in the ratings. Cultural factors as well might raise the score of an average movie, eg lots of Britons who vote at that site value English humour.

It's a long shot, but is it possible to show imdb.com pages with the score modified without copying the entire page to my server? I know a frame can contain content from another site, but can a frame be just a number? Or rather, everything but the number?

Last edited by Ulysses_; 10-18-2010 at 08:30 AM.
 
Old 10-18-2010, 11:04 AM   #5
Flyte
LQ Newbie
 
Registered: Dec 2007
Distribution: Fedora, CentOS, Debian
Posts: 23

Rep: Reputation: 2
+1 for LAMP.

From my limited experience with Python and my few years of experience with PHP I'd say go for PHP but I'm clearly biased. However, I learned PHP from knowing nothing about programming, so I can say that it's easy to learn.

Also, someone correct me if I'm wrong (as if I needed to ask!) but PHP is syntactically more similar to C than Python.
 
Old 10-18-2010, 06:28 PM   #6
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Can php be used on the client side too? The reason I'm asking, I hope people can access each other's opinions without going to the central server. The central server would be just for meeting each other, a bit like trackers in p2p filesharing.
 
Old 10-19-2010, 07:01 AM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
A couple of things -- you can extract information from IMDB into your own data base tables. For example, take a look at Tellico (http://tellico-project.org/), a collection manager for KDE (books, movies, music, etc.). Tellico searches Amazon.com, Internet Movie Data Base, Library of Congress, ISBNdb.com, AnimeNfo.com, arXiv.org, Google Scholar, Discogs Audio Search, MusicBraiz and others to retrieve information for a given book, movie, CD, etc. Tellico maintains multiple files (one for each collection) rather than a LAMP model, but the search-and-extract idea is something that may be worth a look-see (and you can just ignore things like IMDB ratings, eh?).

"PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML." (http://www.php.net/). So, yeah, it's usable in both directions, client and server, but the idea is that you present a web page that permits users to do what they and you wish (including communications back and forth; e.g., "send a messages to blah") under your control -- nothing installed or running on "their" computer save the browser (think Amazon.com here, PHP has been what they use).

A well-designed data base with efficient queries isn't going to bring your server to its knees. MySQL (and other RDBMS') are pretty good at getting stuff quickly and efficiently. PHP is merely the mechanism that serves as the go-between from user browser to data base and back again.

The trick, if you will, is to do an efficient data base design -- no redundancy, ever. Separate distinct data into separate tables, tie them together with an index key or keys and trust the data base "engine" to be able to put stuff in and get stuff out (which relational data base management systems are darned good at doing). If I was going to do a data base for movies, I'd have a table that contains the index key, the title, the production year and the release year. I'd have another table that would contain the index key and the director. I'd have another with the index key and the producer(s). I'd have another with the index key, the actor(s) and their role(s) and so on. Each table would have one row for one item -- so, multiple rows for producers and for actors (like, don't try to make a row to contain 20 actors, have 20 rows (or have two, or have five...). Same thing with user comments -- a table for individual users (with a login and password), and a table for zero or more comments by each user. Keep in mind that a table can have zero or more rows -- no entry, no display, multiple rows, display row by row until you run out.

The nice thing about HTML and PHP is that you have a simple and elegant way of entering a query and displaying the result of that query that does not rely on what the user has available save a browser.

Might be worth a look.

Hope this helps some.
 
Old 10-19-2010, 11:38 AM   #8
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Coming from a C and C++ background, you will find PHP to be very easy to learn. To me it seems to be a combination of C and PERL. It has most of the syntax of C, with the lack of strict data types and some of the string handling functions of PERL.
 
  


Reply



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
Linux server-side language comparisons? beckettisdogg Linux - Newbie 1 08-17-2009 11:26 PM
Need a language that is efficient, readable, easy to use and learn H_TeXMeX_H Programming 50 02-19-2008 12:55 PM
using C library in server side scripting language RohanShrivastav Programming 1 12-19-2005 08:21 PM
How does a client side scripting language get executed ?? tuxfood Linux - Software 3 10-06-2005 08:26 PM
What does it take to create a client side scripting language like JavaScript? tuxfood Linux - General 1 10-04-2005 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:23 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