didn’t know wherever to post the idea sorry if its inside the wrong forums.
I want to know which you assume is more used currently.
Cause: I am in a CGI class and the other day the teacher enquired me if most people had any requests and I asked why i was using an outdated language as an alternative to PHP. He explained that CGI appeared to be old but wasn’t outdated understanding that 70% of websites that try a server/client scripting dialect (CGI, PHP, ASP) work with CGI. He explained that since our statement was away from line i was mandated to write a YOU page essay showing or disproving the statement i had made in their class. So help would be appreciated. if you desire to explain your reasons that will help also. I decided to begin this poll because possible not find the knowledge i needed over the internet. All the pages relating to come across is a heated debate which is better now which is often used more. That is not what i will be looking for so if that may be kept out of this poll i would appreciate it.
Many thanks,
Fizban
I used to be under the feeling that CGI is simply a module for PERL and is particularly not a scripting language in a right.
POST found this connection.
http: //www. mediacollege. com/internet/perl/perl-vs-php. html
PHP is a great deal more popular, its THE programming language of preference. If someone is building an online site 8/10 they will probably consider between PHP and also ASP. net. Another 2 times they will consider Rails, Django, Coldfusion, Perl for example etc.
However because doing so is popular doesn’t mean it truly is the best. Not by just a long shot. If you provide Rails or Django your go you are likely to be left thinking php can be kinda lame.
From an recruitment perspective I don’t believe that Perl/CGI is excessive on the ‘must have’ skills as compared to PHP, AJAX, ASP. net, Rails, Python..
Well the class is actually called Perl/CGI. Just didn’t experience like typing the full conversation out.
Fizban
I believe you’ll find the difference is your environment.
If you’re a website construtor, you’ll pretty a great deal be using
PHP (and most likely with MySQL) for all of your programming.
If you’re a programmer inside a corporate world (intranet, or
systems), you will be using Perl, C++ and various languages.
The principle point is, once you learn any of those languages, you
can pick-up any in the others rather easily. I think that
taking a programming language course (of any kind) may be a good
quest.
My personal opinion will be to learn C++ (or Turbo C++) very first.
I believe C++ is therefore strict, structured, and also the editors (like Borland)
are so excellent, that it definitely teaches the " essential core" of legitimate.
Perl is quite powerful, especially along with string and file/data manipulation.
PHP is pretty much the " standard" now with the internet (as with web pages).
As you will discover with looking from online scripts, there are a number room for bad
scripting, awful habits, and sloppiness. I am guilty of poor code myself… any far
cry from my times of using C++.
So your teacher needs to do a little research himself. He needs to realize
that the favored programming language is dependant on the environment
wherever it’s used.
.
I’m undecided if 70% with servers ‘use’ CGI but I’d agree that 70% regarding servers have CGI on the market. All in almost all – learn approximately you can. Agreeing by using MLSEIM, if you know any language that’s based away from C you’ll without difficulty pickup other languages such as PHP, Javascript, ASP. NET (C#) and this sort of. If you’re focus is on knowing web programming PHP and a certain amount of ASP is you are best bet. PHP is actually pretty simple overrall along with ASP is also. However ASP may be a framework and may actually use a thing ridiculous like 30 different languages C# and VBScript being typically the most popular.
ASP is highly within the corporate universe though. I’ve had a stint in the corporate world and then for me there’s not a way I’d ever want to return! Web Developers shouldn’t ought to wear a suit everyday to work neither should they pay attention to executives drone on about how exactly SEO goals are important and not understand anything about SEO. It drove myself mad!! lol
I work in the corporate environment. That backend is Espresso. We are contemplating a competitor’s site and portion of it is performed in CGI. Supposedly that code is not touched in SOMETHING LIKE 20 years. And I’m possibly not saying Java is a very important thing, in fact, the way to accepted to become " on the out" but CGI… it really is past " about the" and just plain " out. "
If you’re going to be working which includes a big app in which handles immense costs of data that they are sorted and torn in two from quickly, there’s a good bet it’s going to be in CGI. That Wells Fargo web site, for example, and I believe many other deposit sites will use CGI so it fits the bill very much more.
Certainly, you can do the identical thing in a lot more common web languages like PHP or perhaps Java or whichever, but in conditions of speed plus processing power for this kind of large scale app with a great deal of data, CGI will beat out everything else.
I’m not in to the whole speed discussion for languages, I don’t really care an excess of. But you almost certainly would see a difference should you took that CGI banking app and converted it into PHP and even Java… It would start chugging your servers would explode.
I don’t generally see the point to learning CGI unless you know C++ or another language like that, and I don’t necessarily agree with learning C++ right off the bat, but if which is what interests you then do it now. I’m certainly possibly not here to whomp on C++ or CGI.
Im… So I assume there’s some misunderstandings over what CGI is. CGI represents Common Gateway Software, and is not just a programming language. CGI is in fact a way of using a program from a web server. What language is tell you CGI depends on what the programmer wishes.
PHP can the truth is be run as a CGI executable, and last I checked I’m sure that was the particular preferred deployment strategy together with Apache 2 simply because mod_php didn’t play nice with Apache’s default knack of using threads for you to distribute load around several handlers.
Usually when people apply CGI they signify Perl’, which is actually run most usually in CGI mode. However, perl can even be run as the module in Apache (mod_perl) and perhaps at the same time an ISAPI module with IIS (I do not know this for sure). Many of these (CGI, ISAPI, Apache modules) are options for using a programming language from the context of an internet server.
Something like Java uses an entirely different approach called an application server. These are transactional systems that are designed to run a number applications in a highly concurrent fashion as well as manage interactions in between the applications and external web expertise and databases when needed. Often most are placed behind load balancers and what brand new that may take the form of traditional online servers like Apache.
In the western world large sites implementing CGIs… I would venture to say that the CGI kind of using things is at least partly dated. CGI itself will be slow and inefficient because doing so needs to start up for every ask for. There are some solutions to this, like FastCGI and various better CGI implementations; nonetheless, proxying to chronic processes is arguably much better, if less simple to deploy.
Note also that certain other use of CGIs is employing a compiled language for instance C or C++ to help develop web uses. Since C as well as C++ typically produce executables, these are then used by using CGI, with the executable being run every time the site is provided with a hit and being in charge of returning the content that this user will receive.
Hope that satisfied things up a little. The long as well as the short of it truly is that CGI’ is most likely still used considerably on the internet today, but the important question you’re probably looking to ask is can be Perl used your lot’. To that your answer is nonetheless yes’, but its use appears to be declining in love of languages for instance PHP (for the get a straightforward start’ crowd), Espresso (for the become super-safe’ and nobody-got-fired-for-using-Java’ crowd), in addition to Ruby/Python (for the actual let’s work rapidly because we’re ninja coders’ crowd). Even though I’m obviously generalizing at those language-crowd analogies.