January  24th.  2012
Permalink

Rails 3.x Assets Pipeline Tip - Any file can be a manifest

posted 1 week ago

I’ve just started playing with Ruby and Rails, and one of the cool things I’ve been tinkering with is the new assets pipeline. It does a few neat things:

  • Compiles multiple JS/CSS files into a single file and minifies it
  • Evaluates things like Coffeescript or SASS/LESS
  • Allows you to logically store your assets whether they be images, JS or CSS files where they belong - be it with a vendor, plugin, or right in your app, but access them all off the root of /assets.
  • and more

The RailsGuide does a good job of going over the basics.

However, one thing that concerned me was that there didn’t seem to be a way to group things like JS files into separate compiled files. A good reason to want to do this, for example, would be if you had an admin section of your site with its own JS that you don’t want to pointlessly load on the front end.

The documentation lead me to believe that the application.js file was the singular manifest file. However, after poking through the sprockets code, I’ve learned that ANY file can be a manifest file, so you can pop an admin.js file in your app/assets/javascripts folder with

//= require_tree ./admin

This tells sprockets to compile all the js files in the admin directory into the admin.js file at the root. Then you can include that in your application via lazy loading or via

<%= javascript_include_tag “admin” %>

in your admin section layout.

September  28th.  2011
Permalink
This is exactly what happened to me
wallabri:

So Liam and I started watching Doctor Who…

This is exactly what happened to me

wallabri:

So Liam and I started watching Doctor Who…


January  4th.  2011
Permalink
August  19th.  2010
Permalink

Stop Making Massively Multiplayer Online Games

posted 1 year ago

Dear Aspiring MMO Game Developers,

Stop trying to make MMO games. You will not be successful. Even if you get a GREAT first couple months, players will drop off when they run out of content, get bored, and/or can’t convince their friends to quit Word of Warcraft.

You will never get a critical mass of subscribers to not only recoup the costs you wasted building the game and setting up infrastructure, but to fund the development of new content.

WoW was a fluke. It was in the right place at the right time, with a company and franchise behind it that most of the PC gaming world adored.

It doesn’t matter if your game is better. The graphics could be better, the gameplay could be better, there could be more variety, exciting combat, deep character building, and weapon crafting mechanics.

It doesn’t matter if you have a killer IP behind it. Star Wars, Star Trek, Warhammer 40K, Lord of the Rings, Dungeons and Dragons, etc - irrelevant.

It doesn’t matter if your subscription is cheaper. It doesn’t even matter if your game is FREE to play.

You won’t succeed because everyone who is into these sorts of games (eg masochists) are only playing WoW because that’s what their friends are playing.

This means that in order to succeed in this market, you need to “convert” entire guilds en-masse away from WoW - which isn’t going to happen; and even if you do, you’ll lose them as soon as Blizzard announces a new expansion.

How many of these titles need to fail, and how many dev studios need to close doors before the industry comes to realize this? Stop making them - please. Think of your families.

You’d have a far better chance at success with peer-to-peer, instanced, co-op multiplayer games like Borderlands, and Diablo which require no central server to maintain persistence, and won’t require you to charge a subscription to play.

August  10th.  2010
Permalink
Why the hell didn&#8217;t I think of this?
seanbonner:

Yo dawg, you saw this coming…

Why the hell didn’t I think of this?

seanbonner:

Yo dawg, you saw this coming…


July  16th.  2010
Permalink
June  11th.  2010
Permalink
June  9th.  2010
Permalink

HDH Invitational Starcraft II Beta Tournament

posted 1 year ago

Those who follow me on Twitter are likely very aware of the fact that I’m a big fan of Starcraft, or more specifically the recently closed Starcraft II beta.

Given that beta keys were in limited supply and I didn’t manage to get a key until about half-way through, I found there were several YouTubers casting high-definition replays with commentary of high-level play.

With the explosive popularity and enthusiasm around the Starcraft II beta, two of the better commentators, HDStarcraft and HuskyStarcraft managed to organize a global tournament with some of the best players in the young Starcraft II scene.

I’ve been following the tournament closely on YouTube and have found it extremely entertaining to watch. If you haven’t ever really gotten into Starcraft before, or are curious about the hype, this tournament is probably one of the best ways (outside of learning the game and playing yourself) to get a taste of what makes the game so entertaining to spectate and play.

I’ve included links to every match in the tournament after the cut. I haven’t included player names to avoid spoilers.

Read More

June  1st.  2010
Permalink
It&#8217;s funny because it&#8217;s true
(via runmonsters)

It’s funny because it’s true

(via runmonsters)


May  5th.  2010
Permalink

We require more vespene gas…

posted 1 year ago

It’s funny (sad) because it’s true

caitlinomg:

PatrickStarcraft 2! Did we really need to wait 12 years? Probably not, but it’s still totally awesome.

Caitlin: i lost my boyfriend to the starcraft 2 beta

Patrick: You better spawn more overlords, Cait.