๐Ÿš‚ This week in Rails ๐Ÿš‚: Learn How These 37 Rails Contributors Improved The Entire Framework In Just One Week

Posted by chancancode, August 21, 2015 @ 11:18 pm in News

Good News Everyone, This Week In Rails has been acquired by BuzzFeed!

Just kidding. This is Godfrey here. Itโ€™s been a while since I get to write one of these myself and Iโ€™m very happy to be back. Without further ado, letโ€™s dive right into it!

โค๏ธ Code of Conduct

The Rails team is committed to fostering a welcoming community for everyone. With the help of our community, we have added an official Code of Conduct for the project this week.

๐Ÿ˜ฑ 37 Programmers Contributed To Rails And You Wonโ€™t Believe What Happened Next

Well, their pull requests were merged and they are immortalized on the Rails Contributors website. And oh, everyone please send a warm welcome to the 10 first-time contributors this week!

๐Ÿ“ฆ Releases ๐Ÿ“ฆ

๐Ÿ“ข Sprockets Has Hit Version 3.3.3, What Does That Really Mean For The Rest Of Us?

According to @schneems who is responsible for the release, this is supposed to fix an issue for those of you โ€œwho share a cache in different directories between deploysโ€, which includes Heroku deployments.

๐Ÿ’Ž New Stuff ๐Ÿ’Ž

๐Ÿ’พ MySQL Finally Gets A Native JSON Data Type โ€“ But Is It Too Late To Save California?

MySQL has recently added a native JSON data type (perhaps inspired by its more popular cousin, PostgreSQL). Thanks to this patch, you will be ready to take advantage of that feature in Rails 5.

๐Ÿ‘Œ Fixed ๐Ÿ‘Œ

๐ŸŽ‚ The One Weird Trick That Lets You Write To Files Atomically

Concurrency is hard, but Rails might have finally cracked the nut. You might not know that Active Support offers a way to write to a file atomically with File.atomic_write.

Even if you have heard about it, you probably didnโ€™t realize there is a subtle race condition in its implementation. Anyway, with this patch landing on master, those bugs will soon be behind us and we can all just sit back and enjoy the convenience it provides.

๐Ÿ‘ Improved ๐Ÿ‘

๐Ÿšจ Nobody Likes To Do Repeated Work โ€“ Here Is A Cache They Wonโ€™t Tell You About

It turns out that things do not run twice as fast when you double-cache them. Who would have thought? (I wish we all wrote great commit messages like this by the way!)

โœ‚๏ธ Testing Is Important, But Has Rails Gone Too Far?

Along those same lines, it turns out that testing the same thing twice doesnโ€™t provide much value either.

๐Ÿ™ˆ Wrapping Up ๐Ÿ™ˆ

Thatโ€™s all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!

Have you been thinking about writing for us, but youโ€™re scared of putting yourself out there? Donโ€™t worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.

You up for that? Tell Godfrey today.