Blog Archives

The Frontier Group takes home the WA Web Award for Innovation

Posted in Australian Web Industry Association, Awards, Featured

Adam, Levi and Matt with TFG's Web Award for Innovation

Last night The Frontier Group descended on the Western Australian component of the Australian Web Awards for a night of fun, drinks and a chance to recognise the outstanding work that the WA Web Industry produces every year. The quality of work seen was fantastic and we’re looking forward to the national awards at Web Directions later this month.

The Frontier Group managed to take home the Innovation award for the GOT APP website. GOT APP is a mobile application for finding the best venue for your night out or weekend, it shows you nearby bars and helps you find out when each bar is going to get busy.

GOT APP Website

You can download GOT APP free from the iOS App Store or Google Play right now and plan your next night out.

The Frontier Group would also like to congratulate our friends at Clever Starfish for taking home a couple of awards for the eCommerce and Non-Profit categories.

If you want to know more about how the night unfolded check out #awa2013 on Twitter.

My (new) favourite RSpec pattern

Posted in Agile Development, Code, Featured, Inside TFG, Ruby on Rails

I love the RSpec let syntax. I especially love using let blocks to declare everything on the planet. However, I was noticing a lot of duplication in my code so I knocked up the below pattern to deal with the issue:

Can’t see this Gist? View it on Github!

The pattern I’m referring to above is declaring and using the vehicle_attributes object to set attributes on an object. The benefits of this pattern is that I’m able to set specific attributes on an object on a per-context basis without having to re-write my call to the factory. The issue that caused me to start using this pattern was having a declaration at the top of the file that was getting overloaded with ‘common’ attributes. My vehicle declaration started to look like:

Can’t see this Gist? View it on Github!

Which worked well enough until I had 4 common attributes on vehicle and 3 other objects that were being created with multiple common attributes as well. My spec file was starting to get ugly.

Even worse, I was declaring vehicle multiple times within describe blocks for other methods.

So, by using the above pattern you can avoid a fair bit of duplication in your specs and keep everything neat and tidy.

Plus, it’ll reduce the amount of code you have to type which gives you more time to browse r/aww

Search Posts

Featured Posts

Categories

Archives

View more archives