Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 101
  1. Move ActiveRecord Scopes into Separate Files

    Ruby on Rails models tend to grow and grow.

  2. 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.

  3. Debugging: Behavior & Purpose

    To resolve a bug, a developer must know the behavior and the purpose of the program at hand.

  4. Happy Refactoring by Keeping ApplicationController to a Minimum

    Extending ActionController::Base once, in ApplicationController, is a great Ruby on Rails practice.

  5. Defining mruby Methods with C

    You can use C code to prepare methods for mruby scripts.

  6. 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.

  7. "Hello World" with mruby

    mruby is an implementation of Ruby that’s designed to be lightweight & integrated with C.

  8. Why (I Think) We're Leaving Batman.js

    Sadly, PCO is getting out of the batman.js game.

  9. Render Scope in AngularJS and Batman.js

    Batman.js and AngularJS both create hierarchical view scopes, but their implementations are very different.

  10. Being the Judge

    I was just pondering whether a person ought to have children or not.

  11. Computed Properties: Batman.js and Ember.js

    Batman.js is a front-end MVC framework with an unrivaled implementation of key-value observing.

  12. Event Handlers in Batman.js

    In batman.js, event handlers respond to user interactions like “click” and “submit”.

  13. Batman.js and Devise

    Using batman.js with Devise is pretty straightforward.

  14. 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.

  15. Batman.js Accessors as Methods

    Batman.js is a CoffeeScript front-end MVC framework.

  16. Build a Blog with Batman.js

    In this whirlwind tutorial, we’ll build a blog with batman.js and Firebase.

  17. Client-Side Image Preview with Batman.js

    Implementing image preview is breeze thanks to batman.js observers and JavaScript APIs.

  18. 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.

  19. Jasmine-Friendly Batman.js Accessor Stubs

    Batman.Object accessors are the bread and butter of batman.js.

  20. 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.

  21. Getting to Know Batman.Set

    Batman.Set is the array-like enumerable of batman.js.

  22. Sending JSON Instead of Form Data with Batman.RestStorage

    By default, Batman.Request sends data as HTTP form data.

  23. 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.

  24. Automatic Source Tracking in Batman.js

    In batman.js, properties automatically track their sources.

  25. 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.

  26. Is Batman.js Just for Ruby on Rails?

    You can use batman.js with any backend!

  27. Prevent and allowAndFire for asynchronous operations on a Batman.Set

    Batman.js’s prevent and allowAndFire make it easy...

  28. Property Caching in Batman.js

    Batman.js objects (Batman.Object instances) have properties defined with @accessor.

  29. 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.

  30. 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.

  31. Loading Child Records from Embedded IDs in Batman.js

    Batman.js provides a powerful model associations inspired by Ruby on Rails.

  32. Tips for Batman.RestStorage and Batman.RailsStorage

    Just a few things I’ve picked up about Batman.RestStorage and Batman.RailsStorage.

  33. Christian Life as a Lazy Enumerable

    Living a day at a time sounds a bit like lazy enumeration.

  34. 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.

  35. Dynamically-Generated Headers for ActiveResource Requests

    Need to add a header to an ActiveResource request?

  36. Debugging Keypaths in Batman.js Views

    Debugging can be tedious, especially when cntl-R is your only resort for trying new options.

  37. 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.

  38. 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.

  39. 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

  40. 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.

  41. 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?

  42. 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.

  43. 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.

  44. Rspec should_receive stubs methods

    I learned this the hard way, so I thought I’d share.

  45. Roadtrip part 3

    Valerie and I are on the way from Charlottesville, VA, to Carlsbad, CA.

  46. Roadtrip Part 2

    Valerie and I are on the way from Charlottesville, VA, to Carlsbad, CA.

  47. Roadtrip part 1

    Valerie and I are on the way from Charlottesville, VA, to Carlsbad, CA.

  48. 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

  49. 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!

  50. 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.