
This Week In Dev
Chris Carter
June 28, 2012
[Enter food-related obligatory dev-newsletter pun here].
TinyPNG (via Lee)
Advanced lossy compression for PNG images that preserves full alpha transparency.
PlaceKitten (via Alan)
Technically submitted by Alan, but credit goes partially to Matt P for submitting this two weeks ago.
Quote from last time this was submitted: "Stock images of kittens, sizeable to whatever size you can need. Useful when mocking up a site. Like the lorem ipsum, but with images."
Flowchart: How to Retinafy Your Website (via Ben)
With Retina screens all around us, it’s time to take the plunge and retinafy your website or webapp.
Turing Centenary Speech (New Aesthetic) (via Ben)
Self explanatory really - have a read.
ActiveRecord Niceness (via Joerg)
Here's a thing I never knew about ActiveRecord, and not sure when it slipped in: So - imagine you have the following setup:
class Contact < ActiveRecord::Base
has_many :addresses
end
class Address < ActiveRecord::Base
belongs_to :contact
end
Then, contact.address_ids gives you an array of ids of all your addresses.
SQL Binding (via Jolyon)
I was convinced writing sql (or sequel) to use bind variables must be better than hardcoding from a performance perspective but my confidence was shaken when reading about prepared statements. Mind you, from a sql injection and readability perspective, I think binding remains preferable.
Destroy All Software (via Attila)
Most of us like RailsCasts, right? OK, screencasts are great to demonstrate and teach people about programming. Now, it became clear to me that not everybody knows about the website in subject. It features short (10-15 mins long) very focused technical screencasts, most of the time related to Ruby (although sometimes it covers Python and other related techness as well). Some of the most interesting things DAS covered in the past:
- How to implement RSpec from scratch
- How and why to avoid nil
- Pretty git logs
- etc.
The catalog contains about 70 screencasts as of now. All I can say is that it became one of my favourite sources to learn more about software architecture, more specifically about how to do advanced things in Ruby. This guy is extremely clever, very opinionated yet reasonable. Very good material, definitely worths the subscription. (Yeah it's not free but I think it's reasonably priced.)
You should also watch this lightning talk by the same guy if you haven't seen it yet, very entertaining.
Rails 4.0 Sneak Peek: Queueing (via Attila)
JQuery 2.0 (via Robert P)
JQuery 2.0 is coming early 2013. One of the highlights ahead is that they will remove all support for IE6/7/8 browsers.
jQuery Vector Maps using SVG (via Robert P)
Not as great as GMaps, but much lighter and it actually looks all right. Supports Explorer 6-8 using VML.
Repo.js (via Robert P)
If you ever wanted to include github repos on your site...
Pow 0.4.0 with xip.io support (via Attila)
Did anybody try this out? I would love to know if anybody has done something with this.
iOS 6 Beta Updates (via Attila)
If you have installed the beta on your phone as soon as Apple made it available to the iOS devs, you may want to update your software on your phone. Funnily enough iTunes won't do this for you (I guess it does not intend to handle beta upgrades) but your phone can upgrade itself. Go to Settings -> General -> Software Update
and voila! Just a heads up.