Permalink
Browse files

getting build to work; added docinfo

  • Loading branch information...
1 parent 4889471 commit 4411b2d5dad93b899a51579d8766d3de793f63e2 Philip (flip) Kromer committed Jan 26, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 10-event_streams.asciidoc
  2. +1 −1 25f-glossary.asciidoc
@@ -62,7 +62,7 @@ It may look terrifying, but taken piece-by-piece it's not actually that bad. Re
That regular expression does almost all the heavy lifting, but isn't sufficient to properly extract the `requested_at` time. Wukong models provide a "security gate" for each field in the form of the `receive_(field name)` method. The setter method (`requested_at=`) applies a new value directly, but the `receive_requested_at` method is expected to appropriately validate and transform the given value. The default method performs simple 'do the right thing'-level type conversion, sufficient to (for example) faithfully load an object from a plain JSON hash. But for complicated cases you're invited to override it as we do here.
----
-include::/Users/flip/ics/book/big_data_for_chimps/code/serverlogs/models/logline--requested_at.rb[]
+include::code/serverlogs/models/logline--requested_at.rb[]
----
There's a general lesson here for data-parsing scripts. Don't try to be a hero and get everything done in one giant method. The giant regexp just coarsely separates the values; any further special handling happens in isolated methods.
View
@@ -23,7 +23,7 @@ Questions:
* "task process" or "job process" for child process?
-=== Storm+Trident Glossary ===
+**Storm+Trident Glossary**
Storm Execution

0 comments on commit 4411b2d

Please sign in to comment.