The WegoWise Development Blog

Posts That Made Us Go Hmm

| Comments

Whenever one of the WegoWise developers reads an interesting article, they will usually post the link in our work chatroom. Here are a couple recent links that got us talking, or at least arguing, along with our thoughts about them.

Code Climate published a great list of security gotchas and tips.

Joe: The one that jumped out for me was about using \A and \Z as regex anchors instead of ^ and $ in order to validate strings that could contain newlines. Whoops. I've been using the wrong anchors for years!

Everyone on the team relies on Vim almost exclusively, so this angry and humorously truthful screed against the beloved editor was a fun read.

Joe: The author makes good points (Vimscript is terrible, you have to spend a lot of time tinkering with plugins before it's a good IDE) but he starts off by dismissing any benefits from not using the mouse. I dunno, it seems to help me stay focused by avoiding context-switching (shrug).

This is a similarly enjoyable read if your sacred cow is jQuery instead of Vim: The DOM isn’t slow, you are..

GitHub described an optimization aimed at reducing the number of objects on the heap in their RoR app.

Joe: The second half of the article is an esoteric discussion of the merits of "Judy arrays" but the first half explains why MRI's GC implementation leads to performance slowdowns (rather than just memory overhead) when there are too many uncollected objects.

GitHub had another good article about an optimization that involved replacing a low-level Ruby escaping function with a C library, resulting in a considerable performance boost.

Joe: Ruby is great, but when there's a big win to be gained from dropping down to compiled code we should take it.

Comments