Code, Strings, and Keys

    • About Thomas Powell
    • Account
    • It’s been [0] days since [program] last updated
    • Login
    • Password Reset
    • Pianist / Accompanist / Music Director Resume
    • Reading List 2025
    • Register
    • Running Gear – Shoes, Treadmill, and Bandages
    • Site Map
Illustration of a bird flying.
  • Call up JIRA tasks from zsh using .oh-my-zsh

    Using the JIRA oh-my-zsh plugin to jump to an issue number in the browser.

    May 5, 2014
  • When Bad Things Happen to Good Web Clients (aka Why Did You Send Me a HTTP 400 Error?)

    I initially thought that I hadn’t gotten much out of REST API Design Rulebook, mainly because the prescriptions mentioned in the book don’t overlap well with common practice in Rails (or what Rails easily supports). However, one thing that I developed greater appreciation for was proper use of HTTP status codes. Namely, that HTTP 4xx…

    May 2, 2014
  • rspec before(:all) is tempting but stubs don’t play nicely with it.

    I was looking at an rspec test with multiple expectations in the same example. before(:all) do SpecialClient.any_instance.stub(:login).and_return { true } end # # MUCH SPACE # # WOW # it “does stuff successfully” do # preceding code, including controller action expect(result.valid?).to be_true expect(response.body).to match /All is happy/ expect(response.code).to eq “200” end I wanted to add…

    May 1, 2014
←Previous Page
1 … 78 79 80 81 82 … 317
Next Page→

Code, Strings, and Keys

Proudly powered by WordPress