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.
Hello
I usually do my coding in C and rarely C++
I also know some Jave and made a program or two in Perl but I still prefer C to any of them
The question is Shall I learn a scripting language some day, or C is enough.
And if yes that what is the best to learn.
I know that there is no specific answers for "What is the best" questions.
But at least I want to get your opinions and recommendations if any.
Thanks pals.
Same here. I like C, and also know some C++, Java and PHP.
I'm getting into python little by little. I think it's worth learning python as well.
Or perl, but I decided to do python.
And, if you don't know it already, some shell scripting (bash comes to mind) can be very useful.
I'm going to be learning Python soon. I've worked with PERL before, though it is very rusty. I'd suggest you at least learn the basics of BASH scripting, or whatever your shell of choice is.
FYI: Perl is not spaghetti programming; that's down to the programmer. You can write unreadable stuff in any lang... you should see some of the 'C' code I've had to deal with
Ummm,
So what do you recommend to learn. I dun care if it is easy or hard to learn. But i want a clean and powerful scripting language to use.
BTW, what's the pros for scripts to copiled programs (C for example).
I can say portability, but what else ??
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379
Rep:
Yes scripting plays very important role in coding. You can use them to directly call from code do job that need 1000 line code in C/C++ and it works. I find python and Bash very useful and use them extensively them in C++, some time in QT.
In terms of programming speed, languages such as Perl take care of the fiddly bits like not writing off the end of an array/string in C.
Basically, it's at a slightly higher level, although you can do bit-twiddling if you want.
You usually get to the runnable stage quicker.
Perl is actually "compiled" in memory, then run so it's pretty quick.
(Technically it's an excutable env, rather than a standalone exe. Standalones can be generated, but most people don't bother.)
Bash with a mixture of perl is IMO by far the ultimate combination when it comes to scripting. I am not the best programmer myself (hardly as you can see from some of my previous posts), but i try and learn a lot. My friends, however, are very proficient in these and i have seen some amazing stuff come out of a fairly complicated bash script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.