Ruby and GUI’s have been on the forefront of my brain lately because I’ve been playing around with fun ways to program with Ruby. I am honestly bored of command line programs, and for good reason: the command line isn’t pretty enough for me. Since I’ve had problems installing Shoes and Hackety Hack on my version of Ubuntu, I asked one of my friends who uses Ruby frequently if there were other GUI options. There are options, but he referred to them as a bit of a mess to implement and pointed out that javascript and the web make for better uses of, what I would call, “fun Ruby.” Better yet, when you program for the web, everyone can use your program without worrying about what platform they are on.
So, I gave this a little thought. I started getting jealous and even a little frustrated at Python programmers and their connectedness with GUI’s and their pride in Python’s support for GUI’s. Apparently, Ruby has similar support, but it’s not nearly as widely embraced amongst Rubyists as it is in the Python community. (True? False? opinions?) Admittedly, I think I should have just learned visual basic and got my GUI fix 10 years ago. (I don’t particularly want to learn Python, and there are issues with it’s syntax that have turned me off pretty heavily.)
So, I have decided that the best course of action, given my new fixation on Sinatra, is to begin a jquery/javascript and Ruby project. Although I’ve been making websites for about 10 years, they have generally been informative, usually static, very low level applications of HTML, CSS, and bits and pieces of PHP. I have used javascript for fun little menus now and again, but honestly I’m a total copy/paster when it comes to js. I started recently on some javascript tutorials, but was then quickly reprimanded: SKIP TO JQUERY, says everyone. Unless you really wanna become a pro in javascript, it sounds like jquery is a nice shortcut to the overwhelming syntax (especially coming from Ruby!) and implementations of javascript. I can’t quite figure out a consistency of why and how something does what in javascript. But, if I can figure out what I want the code to do, I’m pretty sure I can figure out how to use jquery to get the job done. We’ll see.
I am going to begin working on a blog that is purely in javascript, using jquery, and also uses Sinatra. I’m going to use sqlite for the DB. Did I mention I have very little experience with DB’s, too?
Okay, this project, honestly, seems a little over my head to me right now. But once complete, I think I will have experience with all of these pieces I need to make a pretty, fun, and useful application. Something every programmer craves– right?!
Updates to follow. Thanks to Julio for helping me come up with the idea on how to practice messing with all of the components I’m craving: Ruby, Sinatra, Javascript/Jquery, Sqlite, ERB, CSS… wee! This brings up another point about how multilingual and implementation exposure at the early stages of learning a programming language can be so incredibly integral to understanding how to best utilize a programming language like Ruby… but that’s for another post! Cheers!
Wow, is wanting to write GUIs a girl thing? I too have been having a problem with finding a GUI solution under Ruby. I wrote a few little programs under Shoes but got discouraged after _why disappeared because I figured the project would be abandoned. I too asked my dear Ruby hacker friend if there were any other options and I got the same reply as you. I too have been jealous of Python programmers and their more supported GUI options, though I won’t go THERE because said Ruby hacker friend would be appalled. I suppose web apps are the future, so moving to Sinatra/Rails + JS is probably the best choice anyway.
What resources did you use to get acquainted with Sinatra? Were there any tutorials that you found helpful, or did you just plow through the project’s documentation? I am new to web programming myself and I have been struggling with the decision of whether I want to start with the big framework with more documentation and more overhead (Rails) versus the small framework that has less overhead but has less documentation. (Sinatra) I’d like to know what you think since you seem to be in the same boat as I am.
As for the C book.. was it a copy of K & R? I have a copy of it myself and I like it, though I haven’t finished the whole book. I’d love to be a C hacker someday, but as they say, one thing at a time.
I actually found the Sinatra peepcode extremely useful. http://peepcode.com/products/sinatra
also, have you heard of devchix? http://www.devchix.com/ Their google group is awesome, with tons of interesting threads on diff languages. Lots of the girls on there are very awesome Ruby developers. I learn a lot just from reading the correspondence, actually.
And yes, it was the K&R. I don’t necessarily hate it anymore. It was just a rough start for me.
Cheers!
Buy:Actos.Retin-A.Mega Hoodia.Valtrex.Prevacid.100% Pure Okinawan Coral Calcium.Nexium.Zovirax.Petcam (Metacam) Oral Suspension.Arimidex.Human Growth Hormone.Synthroid.Accutane.Zyban.Lumigan.Prednisolone….