Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #16  
Old January 26th, 2006, 02:17 PM
xlordt's Avatar
xlordt xlordt is offline
Only the strong survives!!.
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Feb 2003
Location: A World of wonder.
Posts: 5,543 xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)xlordt User rank is Major (30000 - 40000 Reputation Level)  Folding Points: 108894 Folding Title: Super Ultimate Folder - Level 1Folding Points: 108894 Folding Title: Super Ultimate Folder - Level 1Folding Points: 108894 Folding Title: Super Ultimate Folder - Level 1Folding Points: 108894 Folding Title: Super Ultimate Folder - Level 1Folding Points: 108894 Folding Title: Super Ultimate Folder - Level 1Folding Points: 108894 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Weeks 1 Day 22 h 41 m 58 sec
Reputation Power: 378
Send a message via ICQ to xlordt Send a message via AIM to xlordt Send a message via MSN to xlordt Send a message via Yahoo to xlordt Send a message via Google Talk to xlordt Send a message via Skype to xlordt
Facebook
nm i dont know what im posting.. im just sleeping.. going home now!!

Reply With Quote
  #17  
Old January 26th, 2006, 02:18 PM
Conundrum's Avatar
Conundrum Conundrum is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2004
Posts: 1,108 Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 12 h 46 m 55 sec
Reputation Power: 123
Quote:
Originally Posted by LinuxPenguin
no, the text to be output it's

$class->output->write("blah") or something similar for catalyst (i can't remember the exact names)

in ror:

puts "blah"

just the simple ruby print. Why is there a need to be convoluted in catalyst?
Are you printing from the controller? I almost never do that. Do you do that ... a lot?
__________________
Dev411 | Grokbase | Compare CPAN Modules

Reply With Quote
  #18  
Old January 26th, 2006, 02:19 PM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 23 m 58 sec
Reputation Power: 1008
i thought you had to do that in catalyst?

*shrugs*

Reply With Quote
  #19  
Old January 26th, 2006, 02:24 PM
Conundrum's Avatar
Conundrum Conundrum is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2004
Posts: 1,108 Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 12 h 46 m 55 sec
Reputation Power: 123
I have the vast majority of my output handled by a view using TT templates similar to RHTML pages. The only time I print from the controller is when doing very small / simple AJAX responses such as auto_complete. Even if I was using RoR, I'd want to avoid printing from the controller since the output is supposed to be managed by the view in MVC.
Comments on this post
SimonGreenhill agrees!

Last edited by Conundrum : January 26th, 2006 at 02:30 PM.

Reply With Quote
  #20  
Old January 28th, 2006, 10:43 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
I'm not a Perl fan in the least and for the most part it seems like a hack over a hack over a hack so the perly option isn't really for me. I personally find Ruby to be very clear and concise, and more flexible and standardized than Python in a lot of ways, which seems to get uglier all the time.

I don't think it's even worth going into detail comparing Ruby to PHP there's just no competition, Ruby wins .

It's text manipulation is equal to perls though it's has already been mentioned that perls libs make it far faster to develop anything substantial, not surprising if all the work is done for you and you're just plugging bits together – I'm not comparing RoR etc. I haven't used them .

That said they are impressive frameworks; since they're all pretty much in the same class as to what they can do though It really comes down to the language you choose.

Personally: another win for Ruby is that it's feature set is quite compatible with my favorite language [Lisp] so that also makes it all the more attractive in my eyes .

My $2,

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #21  
Old January 28th, 2006, 11:58 AM
Conundrum's Avatar
Conundrum Conundrum is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2004
Posts: 1,108 Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level)Conundrum User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 12 h 46 m 55 sec
Reputation Power: 123
Quote:
Originally Posted by netytan
I'm not a Perl fan in the least and for the most part it seems like a hack over a hack over a hack so the perly option isn't really for me. I personally find Ruby to be very clear and concise, and more flexible and standardized than Python in a lot of ways, which seems to get uglier all the time.
Some of Perl's advantages and disadvantages stem from it's pioneering role as a popular scripting language, at least in the set of scripting languages that are commonly compared. Because it was popular earlier than the rest, it experimented with a lot of features, some were good and others were mistakes. It has that baggage. Python and Ruby can look at Perl's experiences and avoid those mistakes. Of course, there are always new mistakes to be made.

I'm sorry to hear that Python is devolving, at least in your opinion. Checking out TurboGears and Python is on my list. Hopefully the same fate won't befall Ruby. After participating in this thread, I'm hoping that RoR apps with lots of puts statements in their controllers are the exception, not the rule. IMHO, that would defeat the entire purpose of RoR and MVC.
Quote:
Originally Posted by netytan
it's has already been mentioned that perls libs make it far faster to develop anything substantial, not surprising if all the work is done for you and you're just plugging bits together
Plugging bits together in Perl does get you a workable infrastructure with a lot of capability fast but that's just the beginning of the project, not the end. Pre-built and tested libraries let you concentrate on the substantial, value-add parts of the project instead of commodity technology that many apps already seem to have and take for granted. It helps level the playing field against established players that have developed their own proprietary libraries over time.
Quote:
Originally Posted by netytan
That said they are impressive frameworks; since they're all pretty much in the same class as to what they can do though It really comes down to the language you choose.
If that was true, I might be using Ruby and Ruby on Rails. Ruby on Rails is a very constrained environment and only lets you work in one way, "The Ruby Way." For an example, see my post on RoR and raw SQL. Basically The Ruby Way is incompatible with the PostgreSQL and Oracle ways, and I imagine the more advanced MySQL way. In one conversation, Ruby on Rails vs. Catalyst was compared to Duplo vs. Technic Lego. They both let you build apps but one gives you large building blocks with few options while the other gives you many different blocks and options. So while the major frameworks are impressive, they are not the same in their philosopy or capabilities. If it was just capabilities, I can imagine RoR catching up, but RoR's philosophy is to be constrained while Catalyst's philosophy is to be flexible. If I was choosing based solely on language, Ruby would be a strong contender, but the frameworks, however similar, are not designed to be equal as you suggest. I wish RoR was more flexible but perhaps it's targeted towards different users and projects, ones that don't need sophistication in their DB, etc.

This difference in philosophy is also partly due to the history of both languages. Ruby and Ruby on Rails are relatively new in terms of popularity so most people can be convinced to do things The Ruby Way. Perl has a large, existing community already building large apps using different components that Catalyst caters to. The nice thing is that we have a choice.

I can think of many projects where Ruby and Ruby on Rails would be ideal, they just don't happen to be the projects I work on, unfortunate as that is.
Quote:
Originally Posted by netytan
My $2,
We're only worth $2? How about some pounds sterling

Last edited by Conundrum : January 28th, 2006 at 02:26 PM.

Reply With Quote
  #22  
Old January 28th, 2006, 02:30 PM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,535 LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)LinuxPenguin User rank is General (90000 - 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 23 m 58 sec
Reputation Power: 1008
Heh, perl's main problem IMO is the @_ being overused

For function parameters, it should use variables and allow variable length arrays etc....

if ruby had CPAN, few would use perl. Rails is a bit limiting, something like catalyst is needed. Heh, maybe i should just get my universal interpreter working

Oh and you better watch currency exchange fees

Last edited by LinuxPenguin : January 28th, 2006 at 02:34 PM.

Reply With Quote
  #23  
Old January 31st, 2006, 04:31 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
from a programming language p.o.v (forgetting that python has better libraries, ignoring whatever web app framework is popular this week) some of the reasons I like ruby are it's coherence - it was conceived as OO through and through and has lispy/smalltalk-like features running through it, like lexical closures, blocks passed as params to methods, higher order functions and support for functional programming. Those language features are there to one degree or another in other languages but they are bolted on as syntactic sugar (even when they've been there from very early on), without that much conceptual committment. Python is a lot less consistent/coherent (beginners need to guess whether some methods will be a built-in or a method of some object) and that makes me feel less comfortable using it. As others have said, beginners should be strongly discouraged from using things like perl/php as they will definitely pick up bad habits straight away, in fact bad habits are 'best practice' some of the time.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Ruby vs Other scripting languages


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |