• Skip to main navigation
  • Skip to main content
  • Skip to footer

fatgeek.uk

Father, Husband, Coder, Cook

  • Home
  • About
  • Fiction
  • Skip to menu toggle button
  • Yelp
  • Facebook
  • Twitter
  • Instagram
  • Email
  • Back to top ↑

Category: Rails

fatgeek.uk

Web development frameworks and SQL ghettos.

Posted on: June 20, 2008 Last updated on: June 20, 2008 Written by: peterm Comments: 0
My platform of choice is Ruby on Rails. In an early project, I implemented some reports by coding special purpose sql statements embedded within model methods. This worked well, and allowed the reports to run reasonably speedily. As I continued…
Continue reading “Web development frameworks and SQL ghettos.”…

Rails to_xml, thar be dragons.

Posted on: April 30, 2008 Last updated on: April 30, 2008 Written by: peterm Comments: 0
Ok, so I have been using to_xml to handle generating xml serialised lists for a restful xml interface. I came across this interesting situation. If you are serialising a collection which is implemented as a set of subclasses using STI,…
Continue reading “Rails to_xml, thar be dragons.”…

Doctest, a ‘gateway drug’?

Posted on: April 14, 2008 Last updated on: April 14, 2008 Written by: peterm Comments: 0
I am quite a proponent of TDD/BDD, my framework of choice being RSPEC within Rails But, I also understand that for people unused to TDD, the upfront investment seems daunting. So, I was very interested to be told about… DOCTEST…
Continue reading “Doctest, a ‘gateway drug’?”…

Bug, Buuuug, *BUG*!!!! I KNEW it.

Posted on: October 22, 2007 Last updated on: October 22, 2007 Written by: peterm Comments: 0
I am a stalwart follower of the PEEPCODE screencasts. I particularly liked the series about RSPEC. But, in reviewing the code for it, and using the code subsequently, I found this little gem. class Hash def except(*keys) self.reject{|k, v| keys.include?(k…
Continue reading “Bug, Buuuug, *BUG*!!!! I KNEW it.”…

in_batches_of

Posted on: October 22, 2007 Last updated on: October 22, 2007 Written by: peterm Comments: 0
Rails is nice. Rails is REAL nice, but, you would expect me to say that, I am a rails developer. One thing that rails is not nice about is efficiency. It’s elegant, its compact, but, the simplest things can have…
Continue reading “in_batches_of”…

History Repeats?

Posted on: October 2, 2007 Last updated on: October 2, 2007 Written by: peterm Comments: 0
Oh, I hope not. I loved Java. Java it its YOUTH, when you could buy two books, the tutorial and the reference, and that was all you needed. Before Swing, before Beans, before it exploded into the publishers wet dream…
Continue reading “History Repeats?”…

Agile ain’t about FAST….

Posted on: September 6, 2007 Last updated on: September 6, 2007 Written by: peterm Comments: 0
… it’s about GOOD. Using Agile techniques, Rails for instance, or any of the other new frameworks popping up more quickly than mushrooms on a cowturn in a darkened room, and things like TDD, BDD, SPEC driven whatever, is NOT…
Continue reading “Agile ain’t about FAST….”…

A Peepshow anyone?

Posted on: September 6, 2007 Last updated on: September 6, 2007 Written by: peterm Comments: 0
Nudge Nudge, Wink Wink, Say NO MOWER! or so the old sketch goes. Well, here is a peepshow that even a mother could love. I am, of course, talking about the PEEPCODE screencasts. Wonderful episodes of skirt lifting, revealing the…
Continue reading “A Peepshow anyone?”…

Models make decisions, views and controllers ask PERMISSION

Posted on: September 6, 2007 Last updated on: September 6, 2007 Written by: peterm Comments: 0
Rails uses MVC. Its important to correctly partition what each section does. Views and Controllers should NEVER make decisions. Models should make decisions, and controllers and views should ask models for permission. For instance, if you have a a User…
Continue reading “Models make decisions, views and controllers ask PERMISSION”…

Users, RSPEC and Behaviour.

Posted on: August 28, 2007 Last updated on: August 28, 2007 Written by: peterm Comments: 0
The classic way in rails of implementing model behaviour control of controllers and views is to decorate your model classes with methods which expose behavioural information. For instance, for this message, we will consider an application which has users and…
Continue reading “Users, RSPEC and Behaviour.”…
1 2 Next page »

About This Site

These are just my personal ramblings on pretty much anything. Coding, Life, Family, Society, CATS.

  • APPLE
  • architecture
  • banks
  • bdd
  • Books
  • bug
  • cats
  • Coding
  • Cooking
  • crunch
  • dads
  • design
  • Diametrical Opinions
  • Django
  • dry
  • Family
  • funny
  • gas
  • geeks
  • ghetto
  • gougers
  • insightful
  • jruby
  • junkmail
  • kids
  • lego
  • Meta
  • metaweblog
  • MICROSOFT
  • moaning
  • money
  • Mr Angry
  • music
  • mvc
  • nigerian_scam
  • npower
  • ood
  • oop
  • OOXML
  • opensource
  • peepcode
  • physics
  • Projects
  • quotes
  • Rails
  • rants
  • Reviews
  • rspec
  • ruby
  • scam
  • sigint
  • simulation
  • society
  • south
  • sql
  • tdd
  • testing
  • tosh
  • travel
  • Uncategorized
  • web
  • xml
© 2025 fatgeek.uk | Using Reykjavik WordPress theme. | Back to top ↑
  • Yelp
  • Facebook
  • Twitter
  • Instagram
  • Email
  • Back to top ↑