|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
||||
|
||||
|
nm i dont know what im posting.. im just sleeping.. going home now!!
![]()
__________________
IE QUOTE | PHP Manual | Google | C/C++ Compiler | Linux Tutorials | General Stuff Game Dev |
|
#17
|
||||
|
||||
|
Quote:
|
|
#18
|
||||
|
||||
|
i thought you had to do that in catalyst?
*shrugs*
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#19
|
||||
|
||||
|
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.
Last edited by Conundrum : January 26th, 2006 at 02:30 PM. |
|
#20
|
||||
|
||||
|
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. |
|
#21
|
||||||
|
||||||
|
Quote:
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:
Quote:
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:
![]() Last edited by Conundrum : January 28th, 2006 at 02:26 PM. |
|
#22
|
||||
|
||||
|
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. |
|
#23
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Ruby vs Other scripting languages |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|