
front and back-end web development, Leeds, UK
Richard's Blog - Design, coding and life in Japan
Blog Archive: October 2009
Refactor not Rebuild your Web App!
Submitted by Richard on Thu, 10/29/2009 - 10:29Having been involved in large website/web app development, when there are frustrations in the present system it is always tempting to say lets rebuild it.
But let's rethink this. Of course sometimes there is code there that you are embarrassed to show others, of course it could look prettier on the outside and in. It is easier to write code than to read it - especially other developers.
But bear this in mind:
Tags:
Using :include in Rails ActiveRecord call doesnt create a joins query
Submitted by Richard on Tue, 10/27/2009 - 20:37I am currently writing an Rails app that uses quite a few database calls. I wanted to cut these calls down so I knew I would need to use the :include option in ActiveRecord. I was expecting from what Ryan Bates mentioned in one of his RailsCasts that a nice join would be created for me in one query.
Tags:
Meeting with the big guys! (Hitachi Systems)
Submitted by Richard on Fri, 10/23/2009 - 13:48With one of the contract clients I am working, I am dealing with a large lighting company called Daiko, we are going to put in place a stock availability function into our website to connect with Daiko's inventory data.
Tags:
Ruby Hash is not ordered
Submitted by Richard on Thu, 10/22/2009 - 09:48Just to let you know, I had a hash like below in a test
options_hash = {"把手タイプ"=>"バー把手(E)", "扉カラー"=>"ナディマスカット(NM)", "シンクの位置"=>"左シンクタイプ", "ガス種"=>"プロパンガス(LPG)"}
Tags:
Awesome ruby tricks..
Submitted by Richard on Wed, 10/21/2009 - 13:04Found this link yesterday... Awesome
21 Ruby Tricks You Should Be Using In Your Own Code
Tags:
Recent Blog Posts
- Testing controllers in Lithium 2nd Feb 12, 18:19
- Practical Internationalization in Lithium 31st Dec 11, 02:06
- Using OAuth in Lithium 30th Dec 11, 23:47
- How to add your own Tokens from CCK fields in Druapl 7 17th Jun 11, 04:49
- Weaving Lithium #li3 into a legacy PHP application incrementally 5th Oct 10, 11:54