blog.zenspider.com Archives - 03 April 2013, Wednesday

The file this test came from is chock full of tests written just like this one. What exactly is it testing? The test name implies that it is testing remove_column when there is a multi-column index. Does the test ensure that remove_column

Related:

I can quickly think of 2 ways to detect that b is similar to a & c . The first is to apply some sort of tree-based distance algorithm to the diagonal matrix of all applicable nodes and reporting any combinations that have a distance under a certain threshold. Quite frankly, I’m hesita...

flog version 3.2.3 has been released! Published 2013-03-21 @ 15:43 Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in. Changes: 3.2.3 / 2013-03-21 1 bug fix: Don’t blow up if a path doesn’t exist or isn’t readable. re...

This is my eighth entry detailing my personal “productivity pr0n ”. I use my applescript menu a lot. I use it to clean up my messy windows, to go to bed, and to do my day to day task organization. I have several scripts for omnifocus that help me do basic planning: Omnifocus has a nic...

hoe version 3.5.2 has been released! Published 2013-03-18 @ 15:46 Hoe is a rake/rubygems helper for project Rakefiles. It helps you manage, maintain, and release your project and includes a dynamic plug-in system allowing for easy extensibility. Hoe ships with plug-ins for all your us...

ruby_parser version 3.1.2 has been released! Published 2013-03-18 @ 15:37 ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). RP’s output is the same as ParseTree’s output: s-expressions using ruby’s arrays and base types. A...

minitest version 4.7.0 has been released! Published 2013-03-18 @ 15:31 minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking. "I had a class with Jim Weirich on testing last week and we were allowed to choose our testing frameworks. Ki...

This is my tenth entry detailing my personal “productivity pr0n ”. I wrote a gem with the oh-so-original name of ‘omnifocus’ to help me interact with omnifocus in more sophisticated ways than omnifocus provides up front. Specifically, I wanted to be able to interact with bug trackers,...

makerakeworkwell version 1.0.2 has been released! Published 2013-02-16 @ 14:33 make/rake/work/well provides two simple modifications to rake that make working with file tasks cleaner, easier, and faster. Changes: 1.0.2 / 2013-02-16 1 minor enhancement: Now compatible with rake 0.9.x u...

I raised a fuss when Matz proposed adding the ability to define ! and != on a class. The idea that you can contradict simple logic was befuddling and seemed like a really bad design choice. Despite many of my other proposals getting shot down with “that might confuse a developer” or “...

Minitest added randomization back in 2008 (afaik, before anyone else, it even took rspec 4 years to follow suit) as an easy means of ensuring your tests were actually independent of each other. Parallelization will take that a step further and make sure you don’t have any dependencies...

I’m tired of the complications that tools like bundler and rvm inject into my system and my workflow. I don’t want 4 billion gems installed globally. I don’t want to have rake slow down for no good reason. I don’t want rvm to regress on undefined variables over and over and over (and ...

Now would be a good time to talk about what I want Siren Song to do. I want it to “sing” my code as I run it. I don’t entirely know what that means at this point, but it’s a good enough starting point to get my first test case written. That’s the whole point of a spike, right?

The conundrum. On one hand, a block is essentially an anonymous function, so the args should be treated like method arguments. On the other hand, block arguments are provided by evaluating the arguments to a yield, so they should be treated like multiple assignment.

This is my sixteenth entry detailing my personal “productivity pr0n ”. Finally! My secret weapon! My holy grail! My silver bullet! Or… something. autotest.el is available on my emacswiki page . All it does is run autotest inside of a special compile-mode/shell-mode combo that is speci...

Related:

Productivity is a very personal thing. What works for you might not work for me and vice-versa. That said, there’s nothing wrong with sharing what works for me in the hopes that I might help others or learn something new from you. GTD Phases I do some sort of GTD with my own little tw...

Related:

This was written by John Barnette on 2009-01-01 Be Confident Tests build confidence. Write ‘em. They’ll save your ass, and they’ll let you take a chainsaw to your code without being afraid of unintended consequences. Be Lazy Write tools. If it’s happened more than twice, don’t ever do...