Noah's Arkive

Cosmic Musings and ColdFusion

Noah's Arkive

Entries Tagged as Development

Test::WWW::Mechanize

November 21, 2013 · No Comments

Discovered a bug in Test::WWW::Mechanize, at least using the Catalyst framework.

ok($mech->put(),"returns true, though the RESTful PUT fails!");
$mech->put_ok($put, "returns false, though the RESTful PUT succeeds!?");

This bug really degrades the quality of TAP as any subsequent tests within a subtest are skipped on failure. Futher, the $mech->put() failure proscribes a work-around. More research for me, for sure.

No CommentsTags: Development · Perl · Testing

New OS, new language, new frameworks

November 16, 2013 · No Comments

Moved over to USDA/NASS (National Agricultural Statistical Services) from HHS/ASPE. From warm and fuzzy to hardcore development.

All at once I move from Windows (yeah!) to UNIX (cool) while learning PERL and the Catalyst restful framework. Its been three weeks of head-stuffing and often frustrating development. I fell exhausted at the end of every day.

I'm in a bullpen with a guru and two other developers, under the gun because of some supervisor's paranoia. The team seems confident of coming through on time; me, I have no idea.

I find my own task quite frustrating. When my tests fail I must determine whether my code is at fault, if the test is deprecated or if the test is dead in the water. The last I discovered after hours of trying Friday. I seems that a RESTful request by a test - as opposed to an HTTP request - fails authentication. Our geeks were unable to come up with a solution. Back to the forums and newsnets.

I just wish I could be more productive.

UNIX rocks! I've always been on Windows (I write this on Win8 from home) and a mouser. Now, using Ubuntu, terminal windows and Vim, I gotta keep the hands at home and away from the arrow keys. That education is coming along well, however, slowly. It takes time to develope muscle memory (and fix bad typing practices from years of using the dreaded mouse).

Especially using Vim, I still have to think. There are times I really get lost, inronically, when I complete a command automatically - :q! - without thinking, then try to remember what I've done!

So, just a ton of stuff to learn. I really hope I get a handle on all this soon.

No CommentsTags: Development

More proof of concept

May 04, 2013 ·

So...I've gathered all my application concepts and resources:

  • RESTful API
  • HTML5, CSS3
  • Backbone.js, Underscore.js, Backbone.localstoreage
  • jQuery, jQueryUI, jQueryMobile
  • JSON

Step one: Send data to a RESTful URI. The api cf template will route the request to appropriate cfc and method, serialize the data returned as JSON and return it to the client.

Step two: From a user event, do the same, this time through Backbone.Router. Display the data or error returned in some jQuery widget within a Backbone.template.

Tags: Development

My first page

April 13, 2013 ·

The first page of the OAP site is a detector: all HTML5 capable browsers pass to the OAP home page, all others to a page that warns users their browsers are not 5 compatible may not function properly.

No sympathy for  IE users...IE9 scores 42 out of a possible 500 points in compatibility ratings! I'll include links to FireFox and Chrome downloads. Let's hope few users see it.

Tags: Development