Im 19 year old. Since 2005 i have been using PHP as my preferred tool
to develop. Year after year, i try to learn other programing languages
to not limit myself. This year i decided to started with Ruby... and
here im i started like 2 weeks ago reading 3 hours per day and im really
happy.
But...i have some questions...
- What kind of databases support Ruby (without plugins or frameworks) ?
- Its better to use a framework ? in php not often i used a
framework...last year i started using code-igniter.... but I felt that
it offered nothing i could not do. Is RoR a better way to develop things
?
I know that in huge teams...the frameworks make the difference in time.
Thanks!
I apologize for mistakes in the text above..im not a native speaker.
- What kind of databases support Ruby (without plugins or frameworks) ?
Ruby, as in, in the standard library? None, as far as I know. But
there are gems available for every major one (MySQL, PostreSQL,
SQLite, ...).
- Its better to use a framework ? in php not often i used a
framework...last year i started using code-igniter.... but I felt that
it offered nothing i could not do. Is RoR a better way to develop things
?
I know that in huge teams...the frameworks make the difference in time.
I assume you're talking about websites. Ruby is quite unlike PHP in
this aspect, and developing without *some* kind of framework is pretty
tough (it's tough to even connect Ruby to Apache in the way you can do
with PHP, there are no WWW-specific functions like setcookie() or
header() in PHP in standard library).
You don't need RoR, though. There exist a few easy to use,
lightweight frameworks - I'd recommend looking into Sinatra or
Camping.
- Its better to use a framework ? in php not often i used a
framework...last year i started using code-igniter.... but I felt that
it offered nothing i could not do. Is RoR a better way to develop things
?
I know that in huge teams...the frameworks make the difference in time.
I assume you're talking about websites. Ruby is quite unlike PHP in
this aspect, and developing without *some* kind of framework is pretty
tough (it's tough to even connect Ruby to Apache in the way you can do
with PHP, there are no WWW-specific functions like setcookie() or
header() in PHP in standard library).
You don't need RoR, though. There exist a few easy to use,
lightweight frameworks - I'd recommend looking into Sinatra or
Camping.
Ohh awsome i'll reading about sinatra
Can i make you another questions?
- If Ruby is unlike PHP...why they promote it like "the evolution". Or
is that Ruby still "under construction"?
- How Ruby developers store data without a native solution for it? Plain
text ?
- If Ruby is unlike PHP...why they promote it like "the evolution". Or
is that Ruby still "under construction"?
Who is "they"? Do you have a reference? I can only speculate but PHP
got object orientation quite late while Ruby was pure OO from the
beginning while still be used in similar areas as PHP. That might be
a reason.
- How Ruby developers store data without a native solution for it? Plain
text ?
Well, that certainly depends on the use case, what kind of data needs
to be stored, how much of it and how often. There's of course plain
text as you guessed, Marshal, PStore (basically Marshal with
transactions built around), YAML, JSON, CSV (not all supported out of
the box but gems can be installed pretty easily).
Kind regards
robert
···
On Sun, May 6, 2012 at 8:51 PM, cristian d. <lists@ruby-forum.com> wrote:
Unlike in PHP, in Ruby it's trivial to install additional libraries
(called "gems"). For example to get a library providing access to
MySQL database, all you need to do is type "gem install mysql2" into
the console and wait for a while. To get a library providing image
manipulation, all you need to do is type "gem install RMagick".
In PHP, as far as I know, it would require basically recompiling the
entire interpreter - am I right?
-- Matma Rex
···
2012/5/6 cristian d. <lists@ruby-forum.com>:
- How Ruby developers store data without a native solution for it? Plain
text ?