Table of Contents Forums Dictionary Recommended Reading Marketplace Giftshop What I Ate Michael's Blog
Latest Post on Michael's Blog: Fall Television Season 2018 Grid
New Features

Introducing the 2007 Cooking For Engineers


by Michael Chu
Normal view
Next »
« Prev
After about six months of working (off and on), I've decided to roll out a brand new interface on a brand new platform for Cooking For Engineers. The bulk of the pages have been converted to the new look and rewritten in Ruby on Rails. There are still a number of ancillary pages that will continue to run in PHP (including the forums) because I'm not sure it's worth my time rewriting those. I'm sure you guys would much rather I spend my time tinkering in the kitchen and writing articles instead.

If the background of this article is grey, then you're still looking at the old site. If the background of this article is yellow, congratulations! Your DNS has been updated with the new server IP address. For those still viewing the old site, please be patient - we've moved machines and that info needs to propagate across the internet. This takes as little as a few hours to accomplish, but some ISP's don't bother checking the updated tables for up to 6 days (ahem, Comcast).

If you're on the new site, please be aware that it is brand new code, so there will probably be bugs everywhere. If you see a bug, please e-mail me at: cooking@cookingforengineers.com.

Thanks!
Next »
« Prev
Written by Michael Chu
Published on May 13, 2007 at 11:55 PM
12 comments on Introducing the 2007 Cooking For Engineers:(Post a comment)

On May 14, 2007 at 07:14 AM, Michael Chu said...
If you can see this comment, then you're on the new site! Welcome!


On May 14, 2007 at 09:10 AM, KnightWolfJK (guest) said...
Subject: Looking good...
Kudos on the new layout. I especially like the main page.


On May 14, 2007 at 10:21 AM, Scott (guest) said...
Looks great!


On May 14, 2007 at 02:48 PM, CD (guest) said...
Subject: Looking Good
We appreciate your efforts and enjoy the site. Thank you from the bottoms of our sauce pans.


On May 14, 2007 at 04:44 PM, opqdan said...
Can't see the new site at home yet (comcast), but I can see it from work, and it looks good.

I like the style, especially the recipe files across the top. Only problem, is that sometimes the title will take up more than a single line (eg "Strawberry Glazed Angel Food \n Cake") and wrap, causing the div (I assume), to have a greater height than the rest, and it just looks off. I don't know what you would do instead, maybe snip off the end of the title?

Overall, it's great, and I like that you decided Ruby on Rails. How long did it take you to get it all up and running (hours)?


On May 15, 2007 at 12:31 AM, Michael Chu said...
opqdan wrote:
Overall, it's great, and I like that you decided Ruby on Rails. How long did it take you to get it all up and running (hours)?
I probably spent about 30 hours on it during Christmas week last year. Then a couple weekends over the last several months - so probably no more than 60 hours. A LOT of that time was spent recreating some of the functions I used in the php version (like image height/width) and tinkering with the reformat. In general, the HTML takes the longest for me. About 10 hours of that time was messing with database stuff. A lot of administration code isn't done yet, and there seems to be some funny stuff going on with some of the php integration. Last night, it took about six hours to switch over the DNS (as I forgot that if I moved servers I'd lose mail capability, so I had to learn how to setup SMTP services) and fix all the little bugs that arose that didn't show up earlier in testing.


On May 16, 2007 at 02:31 AM, blessedmomma said...
Subject: off topic
I like that you spell grey with an "e" like I do. (British spelling I think) I've always been chided for it.
Still love the site.


On May 16, 2007 at 09:34 AM, Sam (guest) said...
Subject: New Look
Great new look to go with the great recipes.


On May 26, 2007 at 06:48 PM, efmoya said...
Subject: Ruby on Rails
Michael,

Would you please go into some reasons why you used Ruby on Rails instead of, say, Java or PHP(again) to upgrade your site.

Thanks,
Ephraim F. Moya


On May 29, 2007 at 05:40 AM, Michael Chu said...
Subject: Re: Ruby on Rails
efmoya wrote:
Would you please go into some reasons why you used Ruby on Rails instead of, say, Java or PHP(again) to upgrade your site.


Sure. Mainly I used Ruby on Rails because I've been writing on the framework for the last year because Fanpop was developed on Ruby on Rails. In that time I learned a lot about the issues dealing with running a site on lighttpd as well as Rails and also devised many fixes for the issues we encountered. Because of this, I felt that if I was to rewrite Cooking For Engineers, I would do it in Ruby on Rails running on top of lighttpd with mysql since my knowledge of that particular stack was fairly intimate. Any new problems arising on Cooking For Engineers could help me in making Fanpop more robust/successful and vice versa.

In addition, after using Ruby on Rails for the last year, I felt that the language (Ruby) was extremely concise and I could spend a minimal amount of work from thought/design to implementation. That meant, in the future, I could build new features faster and more modular than I had been doing before.

The first Cooking For Engineers site was build with php and as much as I found php easy to learn, it was a bit clumsy to work with (especially since at the time I didn't know you could do classes in php and wrote everything in a couple flat files with only a couple included files containing my functions). With Ruby on Rails, I didn't have to figure out how to write OOP code, it's thrust upon you (and so simple too!).

Not choosing Java was pretty easy - I haven't seriously written anything in Java for about 8 years and have always felt it was too clumsy and verbose. After using ruby for a couple weeks, there was no way I would conceive of using Java - mainly due to laziness. It's so easy in ruby. :)

Also, the existence of ActiveRecord gem for ruby (a primary component of Rails) is an amazing bonus. The ability to treat your database records as objects and manipulate the data as methods/properties is an extremely powerful abstraction. In addition, Rails' caching support is relatively straightforward and more or less easy to implement.


On June 09, 2007 at 11:27 PM, ChemMe said...
I'm having a slight problem with the menu on Mozilla 1.7.13 illistrated below.
[img:ac447df8af]http://img184.imageshack.us/img184/8245/problemdf6.th.jpg[/im...af]


On July 10, 2007 at 08:44 AM, Yvonne H (guest) said...
Subject: Hi, and thanks!
I discovered your site through my husband's IET magazine in the UK. Great layout and the recipes read brilliantly, though the chocolate truffles could well be my downfall.

I particularly like your step by step illustrations and the ingredients table at the bottom of the recipe pages. Thanks for all your hard work - please keep it up!

About CfE Contact User Agreement Privacy Policy FAQ's In the Press Write for CfE