HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Programming/Scripts (http://www.howtoforge.com/forums/forumdisplay.php?f=7)
-   -   Which one is best perl or javascript? (http://www.howtoforge.com/forums/showthread.php?t=58947)

Damieen 3rd October 2012 12:15

Which one is best perl or javascript?
 
well guys, just need tour suggestions to make it clear for me, about the best scripting language between the two, Perl or Javascript. I just have to develop a website and there is the option for me using any one from the two. So, kindly tell about your opinion.:)

Damieen 8th October 2012 09:32

Hello friends, you have nothing for me to suggest about the best one or you have no idea about it. I may consider tutorials also but I think if you would have used, so better idea about it... please guys ??

till 8th October 2012 09:57

You can not really compare tehs elanguages as they are for different purposes. Javascript is mostly used as programming language in the web browser while Perl is a scripting langauge that is used on the server to generate pages or to create meintenance scripts for system administration.

Damieen 9th October 2012 09:28

Okay, this is the issue where I was missing to make the differences. Well, now you have made my concepts totally good regarding these two scripting languages, I can decide which one to choose... finally thanks for your great reply.

deli45 2nd November 2012 03:43

Quote:

Originally Posted by till (Post 286400)
You can not really compare tehs elanguages as they are for different purposes. Javascript is mostly used as programming language in the web browser while Perl is a scripting langauge that is used on the server to generate pages or to create meintenance scripts for system administration.

I agree! ;)

Fmartin 19th June 2013 13:05

Quote:

Originally Posted by till (Post 286400)
You can not really compare tehs elanguages as they are for different purposes. Javascript is mostly used as programming language in the web browser while Perl is a scripting langauge that is used on the server to generate pages or to create meintenance scripts for system administration.

I also think that we can't compare these languages because they are used in different ways and for different goals.

ethan12 28th July 2013 10:58

deli45 yeah very right and 100% agreed with you but javascript is not an easy language to learn although perl language easily understandable.

bobcharr 17th October 2013 11:07

Quote:

Originally Posted by ethan12 (Post 300375)
deli45 yeah very right and 100% agreed with you but javascript is not an easy language to learn although perl language easily understandable.

It's true, but as for me javascript offers more opportunities than perl.

AlisonCoco 18th October 2013 12:29

if you use programming language then javascript is the best one to be used for you otherwise perl would be the ideal one for you

RandomGuy 15th December 2013 04:23

As the previous posts already pointed out they are not comparable. One generates a page on the server, one is executed in your users browser once they downloaded the page. This might be beside the point but I am using java servlets and in my opinion using server side java and client side javascript is a good combination since the two are very similar which means you don't have to shift between "two worlds" all the time.
I don't quite agree about javascript beeing hard, in my opinion it is one of the easiest scripting languages that you could use. There are things that are complex, like understanding the scope of variable and closures but the generall language is rather easy to learn. I recommend that you use JQuery when working with client side javascript. It can save a huuuuuge amount of time and makes almost every aspect of javascript much easier. It is also very well documented and easy to learn.
To your question, I would suggest to use both. As I stated above one is server-sided one client-sided. I never did anything with perl so I don't know how hard it is to learn it. What I can tell you however is that you need client sided as well as server sided code in almost any case I can think of. If you need to save your users settings in a database you will need server sided technologies, if you want your web-page to have interactive features like sortable table or collapsible boxes you need client-sided scripts. You would have to explain what it is you are trying to do for a more accurate recommendation.


All times are GMT +2. The time now is 02:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.