Computer Science Canada Top X reasons to use language Y |
Author: | wtd [ Wed Sep 29, 2004 6:26 pm ] | ||||
Post subject: | Top X reasons to use language Y | ||||
I know there are more than a few languages in use here, so I though I'd create a place to sum up the reasons why whatever language you're a fan of should interest everyone else. Since I don't think anyone else here is an Objective Caml fan yet...
|
Author: | JHanson90 [ Wed Sep 29, 2004 9:02 pm ] |
Post subject: | Re: Top X reasons to use language Y |
wtd wrote: Since I don't think anyone else here is an Objective Caml fan yet...
Hey well O-Caml is next on my list after Ruby |
Author: | wtd [ Wed Sep 29, 2004 9:02 pm ] |
Post subject: | Re: Top X reasons to use language Y |
JHanson90 wrote: wtd wrote: Since I don't think anyone else here is an Objective Caml fan yet...
Hey well O-Caml is next on my list after Ruby Good. |
Author: | wtd [ Fri Oct 01, 2004 4:54 pm ] |
Post subject: | |
Now share with us your impressions of Ruby, and its strengths. |
Author: | Tony [ Fri Oct 01, 2004 6:16 pm ] |
Post subject: | |
among the most obvious : Ruby has a preaty name |
Author: | wtd [ Fri Oct 01, 2004 8:10 pm ] |
Post subject: | |
tony wrote: among the most obvious : Ruby has a preaty name
No wonder there isn't more enthusiasm about O'Caml here... it's hard to see past the "Irish land mammal that spits" thing. |
Author: | JHanson90 [ Fri Oct 01, 2004 8:18 pm ] |
Post subject: | |
wtd wrote: Now share with us your impressions of Ruby, and its strengths.
I'm not excellent at summarizing things, but one thing I really like is how it is so simple yet so powerful. Everything is an object, and you never have to deal with all those darn exceptions that other languages have. Every string, integer, float, and any other data type is an object. With most other languages, you would need to call in seperate methods or functions to return some of the values you're looking for. With Ruby's "everything is an object," the methods you're looking for are built right into the data type. For the length of JHanson90, just type "JHanson90".length. You wanna get rid of the last letter, type "JHanson90".chop. So easy, doesn't require extra fluff, and allows you to get much more done in less time. For a language like C++, you have to really study and know every darn thing about it before you can begin to create some nice programs. But you don't need to do that with Ruby. Once you learn how things are done one way, it doesn't take much effort to figure out how everything else is done Sure, Java's OO design is good, but what beginner to programming would start with Java? Ruby is totally ideal for beginners because it teaches you what OOP really is without forcing you to learn some extensive language like C++ or Java. Also, I really like everything that Ruby can do. There's eRuby for the simple embedding of Ruby code into text documents, or you can build a big and powerful website without using PHP, if you're lucky to find a Ruby-friendly host. My conclusion is that Ruby gets the job done in an organized, elegant, and easy way that any beginner can figure out and any programmer can love. |
Author: | wtd [ Fri Oct 01, 2004 8:21 pm ] |
Post subject: | |
Rootr.com is reasonably Ruby-friendly. They're a bit behind, as their servers use Ruby 1.6.8 rather than 1.8.2, but unless you want to use Ruby on Rails, you should find it adequate. |
Author: | JHanson90 [ Sat Oct 02, 2004 6:31 pm ] |
Post subject: | |
wtd wrote: Rootr.com is reasonably Ruby-friendly. They're a bit behind, as their servers use Ruby 1.6.8 rather than 1.8.2, but unless you want to use Ruby on Rails, you should find it adequate.
That host is almost exactly what I'm looking for.... except for the price. (You mean rootr.net, btw.) It seems reasonable, though. For a minimum of 9.95 per month, I get Perl, Python, Ruby, and PostgreSQL, plus all its other features. That's pretty good. The web space is ok, and its other features are fine. Do you know of its reliability and speed? |
Author: | wtd [ Sat Oct 02, 2004 6:38 pm ] |
Post subject: | |
Unfortunately they aren't as fast as they used to be. The servers are quite reliable (OpenBSD rocks), but they aren't the fastest things on Earth. Their tech support is also much less useful than it was of old. Used to be they'd get back to within the hour. Now it can take as much as a week. |
Author: | wtd [ Tue Oct 05, 2004 8:40 pm ] |
Post subject: | |
Eiffel
Any questions? |
Author: | JHanson90 [ Tue Oct 05, 2004 11:55 pm ] |
Post subject: | |
- Strongly typed: why is that a good thing? Or is it? - You say only one looping construct, so that means that I can't iterate through each element in the array, the same way you would with .each in Ruby or foreach in PHP? Just a for loop for incrementing a key? EiffelStudio seems to be the only thing that will compile Eiffel code, but like I don't know how it works. It doesn't let me actually open any file, and then editing the file is a whole other matter. Sure I can edit any file with Vim, but how do I go about compiling the .Es without EiffelStudio forcing me to start a "New Project"? |
Author: | wtd [ Wed Oct 06, 2004 12:07 am ] | ||||||||
Post subject: | |||||||||
JHanson90 wrote: - Strongly typed: why is that a good thing? Or is it?
It is a good thing. It means if I define a procedure like so:
If I try to give "foo" a floating point number, the program simply won't compile. Ruby has a different solution for the same problem, and it's a good solution, but so is Eiffel's. JHanson90 wrote: - You say only one looping construct, so that means that I can't iterate through each element in the array, the same way you would with .each in Ruby or foreach in PHP? Just a for loop for incrementing a key?
Eiffel's array class does provide iterators.
JHanson90 wrote: EiffelStudio seems to be the only thing that will compile Eiffel code, but like I don't know how it works. It doesn't let me actually open any file, and then editing the file is a whole other matter. Sure I can edit any file with Vim, but how do I go about compiling the .Es without EiffelStudio forcing me to start a "New Project"?
You should try the freely available SmartEiffel. It's a purely commandline compiler, and the syntax is similar to GCC.
|