[SOLVED] What topics do I need to study for *web* client server programming - Web service?
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.
What topics do I need to study for *web* client server programming - Web service?
I know about client server programming through sockets in C/C++.
What topics do I need to study for website related client server programming?
- The database which we'll be using will be either MySQL or Postgress.
- The platform will be Linux.
- I don't know which language should be preferred here.
I just don't know where to start.
Please guide.
Last edited by Aquarius_Girl; 10-07-2012 at 10:24 PM.
Reason: Added a keyword in title according to Dugan's post.
For CGI applications using Linux, you can use any language that can read/write stdio, can access the Linux environment, and can access it's own commandline arguments. This accommodates HTTP GET & POST requests, and Apache and most other web servers. If you are already familiar with C/C++, you can use that, although compiled languages are less traditional than scripting languages.
If you are going to be building full-fledged applications, you may wish to consider some kind of application-building framework, such as Ruby-On-Rails, Django, and numerous others. These will provide a lot of working code, as well as a well designed structure upon which to build. Most will assume the use of one particular programming language, and which language(s) you prefer will influence which framework is best suited to you.
If you are planning to write your own web server or even browser, then don't. There are already enough of those available and the selection covers the spectrum of needs quite well. Many open-source packages exist, and the use of these as a basis for study or extension would be a good idea.
No matter what aspect of website creation you will be doing, it is almost certainly useful to understand HTTP & HTML, if not in detail, then at least in general. It may also be useful to understand some HTML-related subjects such as CSS, Javascript, XML, and perhaps Java as it relates to client-side applets.
Enjoy the buzzword soup.
First, what exactly is "website related client server programming"? I assume you're asking how to write a website. So...
"The Platform will be Linux"? So any web framework that can be hosted on Linux will be acceptable? You can't go wrong with Django (a Python web framework).
Ruby on Rails is another popular option.
To "start", visit their homepages and go through the tutorials you find there.
And do not, under any circumstances, even consider PHP.
First, what exactly is "website related client server programming"? I assume you're asking how to write a website. So...
Actually, I have been told that there will be a website which will act
like a server and another website will act like a client. The client
website will ask for a data from the server website.
Quote:
Originally Posted by dugan
"The Platform will be Linux"? So any web framework that can be hosted on Linux will be acceptable? You can't go wrong with Django (a Python web framework).
Thanks, will study about Django. We'll prefer something with GPL 2 license
probably. This thing will be probably sold.
Quote:
Originally Posted by dugan
Ruby on Rails is another popular option.
Which is considered easier among them?
Quote:
Originally Posted by dugan
And do not, under any circumstances, even consider PHP.
Is that a non-so-correct answer? What was your point in linking that here?
Quote:
Originally Posted by theNbomr
For CGI applications using Linux, you can use any language that can read/write stdio, can access the Linux environment, and can access it's own commandline arguments. This accommodates HTTP GET & POST requests, and Apache and most other web servers. If you are already familiar with C/C++, you can use that, although compiled languages are less traditional than scripting languages.
I am not familiar with any other scripting language that PHP and Python.
Will using C/C++ be problematic?
Quote:
Originally Posted by theNbomr
If you are going to be building full-fledged applications, you may wish to consider some kind of application-building framework, such as Ruby-On-Rails, Django, and numerous others. These will provide a lot of working code, as well as a well designed structure upon which to build. Most will assume the use of one particular programming language, and which language(s) you prefer will influence which framework is best suited to you.
Many thanks for the info.
Quote:
Originally Posted by theNbomr
If you are planning to write your own web server or even browser, then don't.
I don't know whether that server website will be already existing or I'll
have to write one - I'll find out.
Quote:
Originally Posted by theNbomr
No matter what aspect of website creation you will be doing, it is almost certainly useful to understand HTTP & HTML, if not in detail, then at least in general. It may also be useful to understand some HTML-related subjects such as CSS, Javascript, XML, and perhaps Java as it relates to client-side applets.
Lots of thanks to you for letting me know the keywords.
Last edited by Aquarius_Girl; 10-07-2012 at 10:21 PM.
Reason: Typo: Replaced I with Is
Actually, I have been told that there will be a website which will act like a server and another website will act like a client. The client website will ask for a data from the server website.
I see.
The "website the acts as a server" will actually be a web service. A web service is usually a set of URLs that return and take data in some serializable format such as JSON. I've had good experiences building them with Django and Tastypie. Node.js (which amboxer recommended) is a pretty trendy choice these days too.
The client website will use Ajax to consume the web service. Use jQuery for that.
Please start your own thread for such unrelated subjects, and don't hijack a thread started by someone else. Your subject line should have something to do with building 'something'; there doesn't seem to be a kernel-related aspect to what you've written here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.