From: Sean Ob Date: 2009-11-19T04:59:45+09:00 Subject: Re: Ruby/tk Help Please Marnen Laibow-Koser wrote: > Sean Ob wrote: >> No, not homework, i've graduated, i'm just trying to learn more about >> web development > > Then you're barking up the wrong tree with Ruby/Tk. That's meant for > desktop app development. Web development is totally different (and > easier!), and Tk has nothing to do with it; rather, you'll want to use a > Web framework. Rails is by far the most popular Ruby Web framework, > although there are others; you could even get along without a framework, > although I don't recommend it. > Sorry, i meant software development, my mind is focused on web right now because i'm trying to find a list of ruby methods that allow the program to interact with a web browser. >> and how to actually get programs i write to interact >> with real world applications. > What do you mean? when i was in school i learned about a lot of different code and what the code could do however it was things like, create a hash table, write a program to compute square root, write a size method, write a queue method, etc... all of the building blocks yes, but never anything on how to put this knowledge to use in a real program that actually does something outside of the terminal. this is my first time actually working with a gui. > Then you're really not ready to think about them yet. Read Programming > Ruby. Read the Rails guides if you're planning to use Rails. Try > something simple first. The pieces will fall into place as you actually > create stuff. > Do you mean the 'pickaxe' book? someone else told me that so i checked it out from the library and it had a lot of information but it also had a lot of bad (in my unexperienced opinion) explainations for how and why the code returned what it did it gives you a simple example such as def recur(a,b) ________a=c ________b.times(c = yield a) ________c end recur(2,4){|x| puts x} but then doesn't explain in much detail what is going on before jumping into a super complex example with even less explanation. Also, there is nothing about tk in the book, which is what i'm mostly interested in because i think creating gui's would be pretty cool if i could get good at it. > Bonus tip: do all development test-first (investigate RSpec and > Cucumber) -- no exceptions. It feels slower at first, but it will save > you a lot of trouble. > I don't know what you mean by this? -- Posted via http://www.ruby-forum.com/.