Rails migrations are great way to manage repeatable database changes across environments, but they’re not without their complications. Sometimes a regular old SQL statement is all you really need to do the job, but mixing the two sometimes doesn’t work so well.
The last great unexplored region of git is the .git directory. Once you start to dig, however, you’ll find some interesting trinkets. One I’ve discovered lately is the ‘exclude’ file, which lets you hide files from git without anyone knowing about it.
CoffeeScript introduces some fancy new operators and syntax enhancements, but one of the most misunderstood additions is the “fat arrow” (=>
) operator. The JavaScript function
keyword was replaced with the “thin arrow” (->
), but the fat arrow serves as the function
keyword and binds the function to the current context.
Even the most ardent CoffeeScript critic might have to admit that the language provides some syntax improvements. One of the most useful features is array comprehensions. Quite simply, a comprehension allows you to easily transform one list into another.
There exists two types of developers: those who have written Ruby and those who would like to punch those who have written Ruby in the face.
Michael Joseph Kramer is a passionate software developer focusing on quality, testing, and agile practices. Michael has nearly 20 years of experience creating applications on a wide variety of platforms, and he has worked as both an IT professional and a consultant.
He is currently a Software Engineer at a car insurance startup, specializing in Ruby, JavaScript, Mobile Development, and Agile Practices. The opinions here are his own.
He lives in Columbus, Ohio, and is always happy to talk about college football, Vim, and whisky.