Forum: Ruby Beginner with project in mind

Posted by Dan Le (70th)
on 2012-11-14 10:40
Attachment: workout_spreadsheet.xls (334 KB)
Hi, I've recently started learning ruby and have a project in mind.

The project is basically a system to keep track of my workouts at the
gym, it also should calculate(based on a few starting inputs from user)
the required weights for the exercises, and then these shall be used.

When the users returns from the gym they can input the reps they
performed and then this will be saved, and can be opened to view at any
time.

It will start with a login system. so more than one person can use it.

I'm currently using a spreadsheet(attached) which performs exactly what
I want to do for the ruby project so you can get more of an idea of what
I'm talking about

How should I go about starting this?

Thanks for any help.

Edit: also is Ruby the best language for this type of project?
Posted by Jan E. (jacques1)
on 2012-11-14 12:26
Hi,

is this supposed to be a web application? Or an offline tool?

In any case you'll need to read up on databases. For a web application
I'd suggest PostgreSQL. Many hosters also have MySQL preinstalled. For
an offline program you can either use the full-featured PostgreSQL or
the lightweight SQLite (which uses small embedded databases).

For a web app you'll also need knowledge of HTML, CSS and probably
JavaScript. For an offline app you'll need to learn a GUI framework like
GTK 2 (a plaintext tool on the console wouldn't really make sense in 
this case).

http://ruby-gnome2.sourceforge.jp/

Yes, Ruby is a good language for this, but you could do it with pretty
much any language.
Posted by Dan Le (70th)
on 2012-11-14 12:28
Jan E. wrote in post #1084408:
> Hi,
>
> is this supposed to be a web application? Or an offline tool?
>
> In any case you'll need to read up on databases. For a web application
> I'd suggest PostgreSQL. Many hosters also have MySQL preinstalled. For
> an offline program you can either use the full-featured PostgreSQL or
> the lightweight SQLite (which uses small embedded databases).
>
> For a web app you'll also need knowledge of HTML, CSS and probably
> JavaScript. For an offline app you'll need to learn a GUI framework like
> GTK 2:
>
> http://ruby-gnome2.sourceforge.jp/
>
> Yes, Ruby is a good language for this, but you could do it with pretty
> much any language.

Thanks for the reply, It will be an offline tool, with the possibility 
of making it a web application later.
Posted by Damián M. González (igorjorobus)
on 2012-11-14 13:56
I'm developing a begginer project, like you will be. Take a look at this
website: https://www.ruby-toolbox.com/categories/GUI_Frameworks , it
shows you the options you have for a GUI framework, right now I'm
working with FXRuby because I'm developing on and for Windows. I
researched about the topic before and I've found that altought in the
website of the frameworks you'll see that most of them are compatible in
multiple OS I've seen in forums that is not like that, so depending for
which system you will desing: chose the framework. I've chosen FXRuby
because seems the easiest for me, and now, after 3 months, I don't says
the contrary. So if you want some advice related to FXRuby(or meaby
after a time you can teach me something about it) just send me a
personal message.
Posted by Joel Pearson (virtuoso)
on 2012-11-14 14:10
It is actually possible to use an excel back-end, or a CSV to store the 
data, but you'll want a database for anything large.
The Ruby install on Windows comes with TCL\Tk, which I use for GUI 
applications, and it's quite a useful and flexible system. That's worth 
a look as well.

http://www.ruby-doc.org/docs/ProgrammingRuby/html/...
Posted by Dan Le (70th)
on 2012-11-14 14:40
Thanks for the help, I can get started now !
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.