SitePoint Sponsor |
|
User Tag List
Results 1 to 25 of 28
Thread: What was your first Ruby app?
-
Oct 2, 2005, 17:40 #1
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
What was your first Ruby app?
Besides the usual poking around in irb or copying examples, what is the first application you wrote using Ruby?
My first was a generator for PHP test script code! Basically many of my Model classes resembly TableDataGateways, and the tests I run for each method look similar with minor tweaks for parameters, etc. I wrote a Ruby shell script which would list the files in my models directory, allow you to choose one, then ready in the classes in the choosen script and present a list of the methods. When you selected the method it would write the basic test case for that method.
I have since refactored (in part due the the recoginition that if I needed a program to write a bunch of repetative test cases, then I have other problems) to the point where it is no longer needed, but that was my first baby steps.
What were yours?Jason Sweat ZCE - jsweat_php@yahoo.com
Book: PHP Patterns
Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
Detestable (adjective): software that isn't testable.
-
Oct 2, 2005, 17:50 #2
My first and pretty much only app with Ruby was playing around with Ruby on Rails. Once I couldn't figure out a way to map ROR to joined tables/views, I dropped it. PHP does everything I need - don't see any reason to use Ruby.
-
Oct 2, 2005, 18:07 #3
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
cookbook was my first.
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Oct 3, 2005, 05:53 #4
Originally Posted by samsm
The first one I tried writing by myself was a finance manager. Basically something to input bills, checks, etc. I got most of the logic stuff done in an afternoon and spent the rest of the weekend refactoring. It's not the most robust system in the world but I never intended for anyone other than me to use it
-
Oct 3, 2005, 07:49 #5
- Join Date
- Jul 2004
- Location
- Oklahoma
- Posts
- 119
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
My first were a group of shell scripts doing all sorts of little things. One script to keep my dyndns hostname updated correctly. Another that parsed the text of a schema dump generated by ASP and turned it into a semi-valid SQL file. Another to automate the process of migrating a bunch of existing CVS projects to SVN. I did all of these in an afternoon, and they're still running perfectly today. Probably not more than 200 lines of code across all of them.
While I've played with Rails a bit, I find that Ruby as a general scripting language is just excellent. I create more readable, easier to use scripts with it and for rarely run, quick parse scripts it's speed issues aren't even relevant.
-
Oct 3, 2005, 09:11 #6
Originally Posted by Commander Cobra
-
Oct 3, 2005, 12:53 #7
Originally Posted by Luke Redpath
-
Oct 3, 2005, 12:56 #8
Originally Posted by Commander Cobra
-
Oct 3, 2005, 12:56 #9
- Join Date
- Apr 2003
- Location
- London
- Posts
- 2,423
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Hi.
An adult content filter, unix pipe style. The bigger issue of the back end crunching to generate the look-up tables is my third app. It was this task that resulted in the performance thread I posted earlier.
My second was a Tk Suduko solver.
yours, MarcusMarcus Baker
Testing: SimpleTest, Cgreen, Fakemail
Other: Phemto dependency injector
Books: PHP in Action, 97 things
-
Oct 3, 2005, 12:59 #10
Originally Posted by vgarcia
-
Oct 3, 2005, 13:01 #11
Originally Posted by Commander Cobra
-
Oct 3, 2005, 13:04 #12
Originally Posted by vgarcia
I used to try every technology du jour, but found it's like treading water really really fast. Largely unproductive and unsatisfying.
-
Oct 3, 2005, 13:09 #13
Originally Posted by Commander Cobra
-
Oct 3, 2005, 13:15 #14
Originally Posted by vgarcia
-
Oct 3, 2005, 13:17 #15
- Join Date
- Mar 2004
- Location
- West Midlands, United Kingdom
- Posts
- 2,631
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I havnt used ruby yet but Im hoping to code my first app soon and with some of the resources in this forum I am sure it wont be that tricky but what first app should I code, Hmmmm!
-
Oct 3, 2005, 13:22 #16
Originally Posted by mark_W
-
Oct 3, 2005, 13:25 #17
- Join Date
- Mar 2004
- Location
- West Midlands, United Kingdom
- Posts
- 2,631
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by vgarcia
-
Oct 3, 2005, 14:30 #18
A blog is a pretty good "Hello World" type app for Rails. Don't try and reinvent the wheel though. Do it as an exercise, then move on
-
Oct 3, 2005, 15:29 #19
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by vgarcia
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Oct 3, 2005, 16:33 #20
- Join Date
- Jun 2003
- Location
- Iowa, USA
- Posts
- 3,749
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by lastcraft
Originally Posted by lastcraft
Jason Sweat ZCE - jsweat_php@yahoo.com
Book: PHP Patterns
Good Stuff: SimpleTest PHPUnit FireFox ADOdb YUI
Detestable (adjective): software that isn't testable.
-
Oct 7, 2005, 10:30 #21
- Join Date
- Oct 2005
- Posts
- 6
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
first two ruby apps
my first ruby program was a console script that would solve monoalphabetic simple substitution ciphers, (ie cryptoquotes in the newspaper). It counted tetragraphs (occurances of 4 letter combinations) in something like a novel, stored them in a hash, then would use the gathered statistics to score a ciphertext and make small changes in an attempt to improve the score. Fun first program to write, little slow. I rewrote the algorithm later on in java and there was a signifigant speed increase, but the code was moderately less obvious.
my second app was to teach myself how to write TK apps in ruby. It's a little GUI app that lets you search and replace using regular expressions. It has been very convenient for letting me see what is actually being matched by a regex while I'm crafting it. It also run's a little slow on large text files, but this has more to do with the way I'm pulling the data from the TKText object and setting up the TKTags to do the marking.
I've really enjoyed the language so far, and plan to keep using it for a variety of different tasks.
-
Oct 25, 2005, 06:55 #22
- Join Date
- Oct 2005
- Posts
- 4
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
My first app is about halfway done. It's a rails controller & model to provide user signup, login, and profile editing. It has email verification and password recovery built in as well. Using it as a good app to get a good understanding of everything and at the end have something that might be valuable to others.
fo64.com - For Otters, 64 doesn't mean anything...
-
Oct 25, 2005, 10:41 #23
- Join Date
- Jul 2002
- Location
- In the network.
- Posts
- 217
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
My first ruby program was a shell script that automatically queries and harvests contact info from Google for all possible phone numbers within a given area code and prefix and sorts it out into a CVS file.
-
Oct 30, 2005, 15:19 #24
- Join Date
- Jun 2003
- Location
- ether
- Posts
- 4,497
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
my first code with Ruby was "Hello World" & first with Rails was code that printed "Hello World" 5 times in different colours & fonts!!
ok, my first serious application was that cookbook from that OnLamp tut, that samsm have already linked to!!Its a pretty good tutorial for beginners!!
Our lives teach us who we are.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Me - Photo Blog - Personal Blog - Dev Blog
iG:Syntax Hiliter -- Colourize your code in WordPress!!
-
Nov 1, 2005, 16:55 #25
- Join Date
- Jan 2001
- Location
- Alkmaar, Netherlands
- Posts
- 710
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
mine was mijnantiek.nl
Bookmarks