Your are viewing a read-only archive of the old DiS boards. Please hit the Community button above to engage with the DiS !
does anyone program in perl?
how hard is it to learn?
actually, you might as well bundle in c with that too
Never really done perl myself (only one or two lectures, and I struggled with syntax), but have done a little C and C++, which isn't too bad so long as you learn it properly.
Two biggest gotchyas in C for me are remembering to handle memory allocation properly and the difference between pointers to variables and variables themselves. Would say that except for specific cases, I'd have thought C++ would be more valuable than standard C these days though.
basically, i'm thinking of learning it so i can create some models for work
Perl is pretty simple I used to dabble in it in my youth, I killed those brain cells with booze a long time ago though now.
It's like Java but better, in my experience.
I've only ever used Perl regular expressions in my PHP stuff. They're the sort of things you think you have totally understood and then you use them and get confused again.
If you're cool with the way classes, objects, etc. work then C and C++ are going to be fine. If that's new to you then you may take a while to get inside that way of programming.
and C# for desktop as it goes.
Don't confuse C (procedual, no classes or objects) with C++ (object oriented, uses classes and objects)
I probably haven't used it in 20 years so I'd forgotten how simple it can be. Though obviously you can program it much like C++. I seem to recall the Quake engine was all written in C with a class like structure even so, though my memory may be hazy.
It's so hot in here.
Feel it on my head
Fire fill me hot and red
Raging like a blood red sun
Fire feel my jeans undone
Yearning and I just can't wait
To give a helping hand to fate
To change this crazy world around
First we gotta cool down
Take me dancing naked in the rain
Feel it washing over me, oh, oh
Join me dancing naked in the rain
Cover me in ecstasy
C is alright as long as you get a decent book and learn the basic before trying to jump in at the deep end and what colinzeal said.
(for Perl, I mean).
You could also look at Python as well, check which is more appropriate for what you want to do. What kind of models do you want to make?
It's much more elegant and intuitive than either Perl or C. It might not be quite as fast as those, but unless you're trying to write something super-duper-optimised it's unlikely to matter.
I would generally recommend three levels of learning:
- PHP. Very easy to learn, very quick to develop and great for small-medium web apps. It's a good first language because you can dive in straight away.
- Python/RoR. Two relatively 'new' languages (yeah i know Rails is a framework before any pedants point that out) but very quickly gaining popularity and will continue to do so.
- C#/Java. Harder, but more robust for larger applications. I personally find Java to be a total buttfuck but YMMV.
Maybe Ruby on its own will do but personally I find it a nightmare to use with my background in stuff like PHP/C/C++
that's why i shouldn't skim threads. carry on.
Basing it partly as well on the replies he's received...
trying to do basically do some time series analysis across commodities and their derivatives, and was trying to get modelling going along it.
however, it might just be a hell of lot easier to use matlab
Should be fairly easy to get it running across some servers if you have the computing power at work as well. vo_ov
I just leanr it to do a couple of things then forget it again.
C is proper hack and slash..not object oriented and tidy like c++
It's too long in the past.
but to be honest, you're probably safer actually doing most things using C++, as you get the benefits of things like constructors and destructors to tidy up allocation and the like.