Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Move ActiveRecord Scopes into Separate Files
Ruby on Rails models tend to grow and grow.
-
Building up vs Building out
While adding a big feature to PCO Check-Ins, I was struck with this way of describing my approach to adding complexity to the system.
-
Debugging: Behavior & Purpose
To resolve a bug, a developer must know the behavior and the purpose of the program at hand.
-
Happy Refactoring by Keeping ApplicationController to a Minimum
Extending ActionController::Base once, in ApplicationController, is a great Ruby on Rails practice.
-
Defining mruby Methods with C
You can use C code to prepare methods for mruby scripts.
-
Response to "Why Kids Sext"
The cover article of the November 2014 Atlantic Monthly told the story of sexting and police involvement in Louisa County, VA.
-
"Hello World" with mruby
mruby is an implementation of Ruby that’s designed to be lightweight & integrated with C.
-
Why (I Think) We're Leaving Batman.js
Sadly, PCO is getting out of the batman.js game.
-
Render Scope in AngularJS and Batman.js
Batman.js and AngularJS both create hierarchical view scopes, but their implementations are very different.
-
Being the Judge
I was just pondering whether a person ought to have children or not.
-
Computed Properties: Batman.js and Ember.js
Batman.js is a front-end MVC framework with an unrivaled implementation of key-value observing.
-
Event Handlers in Batman.js
In batman.js, event handlers respond to user interactions like “click” and “submit”.
-
Batman.js and Devise
Using batman.js with Devise is pretty straightforward.
-
Model Transactions in Batman.js
Model::transaction provides a deep-copied, “shadow-realm” version of a record which is great for rendering into edit forms.
-
Batman.js Accessors as Methods
Batman.js is a CoffeeScript front-end MVC framework.
-
Build a Blog with Batman.js
In this whirlwind tutorial, we’ll build a blog with batman.js and Firebase.
-
Client-Side Image Preview with Batman.js
Implementing image preview is breeze thanks to batman.js observers and JavaScript APIs.
-
Has Many Through in Batman.js
Batman.js doesn’t support hasManyThrough out of the box, but it can be implemented fairly easily with Set::mappedTo.
-
Jasmine-Friendly Batman.js Accessor Stubs
Batman.Object accessors are the bread and butter of batman.js.
-
Integrate Batman.js and Leaflet with a Custom View
batman.js views are one of the best ways to integrate other JS libraries with batman.js data structures like Batman.Object and Batman.Set.
-
Getting to Know Batman.Set
Batman.Set is the array-like enumerable of batman.js.
-
Sending JSON Instead of Form Data with Batman.RestStorage
By default, Batman.Request sends data as HTTP form data.
-
Batman.js Controller Testing with Jasmine
You can use jasmine to test batman.js controllers by looking them up from the controller directory, then executing actions with executeAction.
-
Automatic Source Tracking in Batman.js
In batman.js, properties automatically track their sources.
-
Introducing the Batman.js MVC Cookbook
The “Batman.js MVC Cookbook” is a collection of annotated code snippets for getting things done with batman.js.
-
Is Batman.js Just for Ruby on Rails?
You can use batman.js with any backend!
-
Prevent and allowAndFire for asynchronous operations on a Batman.Set
Batman.js’s prevent and allowAndFire make it easy...
-
Property Caching in Batman.js
Batman.js objects (Batman.Object instances) have properties defined with @accessor.
-
Using Gulp.js to build Batman.js apps without Rails
If the batman-rails gem isn’t an option, gulp.js is a good candidate for compiling batman.js apps for production.
-
Batman.Model Lifecycle Callbacks
A Batman.Model has a lifecycle object that fires events on the record when it’s being dirtied, cleaned, loaded, saved or destroyed.
-
Loading Child Records from Embedded IDs in Batman.js
Batman.js provides a powerful model associations inspired by Ruby on Rails.
-
Tips for Batman.RestStorage and Batman.RailsStorage
Just a few things I’ve picked up about Batman.RestStorage and Batman.RailsStorage.
-
Christian Life as a Lazy Enumerable
Living a day at a time sounds a bit like lazy enumeration.
-
Reload HTML for Batman.Views
When working on HTML for Batman.Views, it can be annoying to refresh and navigate back to wherever you were.
-
Dynamically-Generated Headers for ActiveResource Requests
Need to add a header to an ActiveResource request?
-
Debugging Keypaths in Batman.js Views
Debugging can be tedious, especially when cntl-R is your only resort for trying new options.
-
Batman.js testing with Karma and Jasmine
Here’s how I set up Karma & Jasmine to test a Batman.js app on Ruby on Rails.
-
Slim Templates with Batman.js and the Rails Asset Pipeline
You can use Slim (or Haml) to serve your Batman.js templates in the Rails Asset Pipeline. 1.
-
Dynamic Navigation View with Batman.js
Creating a dynamic, context-based navigation menu is a breeze with batman.js and batman-rails thanks to Batman’s data-route view binding and the
-
Lessons Learned on Google App Engine
My involvement with a Google App Engine-based project is winding down, so I’ll share what I’ve learned.
-
Load Batman.js Models from Specific Urls
Batman.js’s REST Storage Adapter provides a clean interface for operating on records with vanilla REST urls – but what about when you need a lil’ something more?
-
Adding Batman.js to an Existing Rails App
I had an existing app, but I wanted to take the front end to the next level.
-
Convert country names and codes with Countrysaurus
Countrysaurus is an online tool for merging country codes into a CSV spreadsheet with country names in it.
-
Rspec should_receive stubs methods
I learned this the hard way, so I thought I’d share.
-
Roadtrip part 3
Valerie and I are on the way from Charlottesville, VA, to Carlsbad, CA.
-
Roadtrip Part 2
Valerie and I are on the way from Charlottesville, VA, to Carlsbad, CA.
-
Roadtrip part 1
Valerie and I are on the way from Charlottesville, VA, to Carlsbad, CA.
-
Using Command-Line Tools for Backends on Google App Engine
It took me quite a while to realize that my GAE backend wasn’t working because I had to use appcfg, not the
-
Enable filesystem writes in GAE dev_appserver
Google App Engine’s dev_appserver prevents filesystem writes because GAE has no filesystem – but sometimes you want to write anyways!
-
Handling Files in WebApp2 and Google App Engine
On Google App Engine, I had to display the user-submitted image, if there was one, else display a default image.