[Jifty-commit] r3091 - in jifty/trunk: .
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Apr 3 22:29:36 EDT 2007
Author: jesse
Date: Tue Apr 3 22:29:30 2007
New Revision: 3091
Modified:
jifty/trunk/ (props changed)
jifty/trunk/doc/talks/present-slides
jifty/trunk/doc/talks/yapc.asia.2007.txt
Log:
r54434 at pinglin-2: jesse | 2007-04-04 11:08:47 +0900
* tweaky
Modified: jifty/trunk/doc/talks/present-slides
==============================================================================
--- jifty/trunk/doc/talks/present-slides (original)
+++ jifty/trunk/doc/talks/present-slides Tue Apr 3 22:29:30 2007
@@ -75,6 +75,10 @@
}
if ( $key =~ /^(?: |\n|n)/ ) {
$counter++;
+ } elsif ( $key eq 'e' ) {
+ system("vim", $ARGV[0]);
+ load_slides();
+ next;
} elsif ( $key eq 'r' ) {
load_slides();
next;
Modified: jifty/trunk/doc/talks/yapc.asia.2007.txt
==============================================================================
--- jifty/trunk/doc/talks/yapc.asia.2007.txt (original)
+++ jifty/trunk/doc/talks/yapc.asia.2007.txt Tue Apr 3 22:29:30 2007
@@ -2,7 +2,7 @@
Domain Specific Languages in Perl
---
#title A bit about DSLs
-DSLs are 'little languages' for specific programming tasks
+DSLs are little languages for specific programming tasks
---
DSLs are easier to read
---
@@ -61,7 +61,7 @@
---
Never say that to a Perl Hacker
---
-#title agenda
+#title Agenda
We've made some DSLs
---
One for declaring database schema
@@ -261,17 +261,13 @@
We ended up with Jifty::DBI columns
---
#mode perl
-
use Jifty::DBI::Record schema {
-column
- auth_token => type is 'text',
+column auth_token => type is 'text',
render as 'Unrendered';
column score => type is 'int',
is immutable,
- default is '0',
- label is 'Score',
- since is '0.0.7';
+ label is 'Score';
column time_zone =>
label is 'Time zone',
@@ -285,14 +281,21 @@
#title
Take 1
---
-#title Take 1:
+#title Take 1
Jifty::DBI::Schema
---
+#title Take 1: Jifty::DBI::Schema
Our first DSL in Perl
---
-We beat the parser into submission using:
-- Clever function prototypes
-- Injection of functions
+We beat the parser into submission with a few tricks
+---
+Injection of functions
+---
+We saw that a moment ago
+---
+Clever function prototypes
+---
+Let's have a look at that
---
#mode perl
# The syntax we wanted
@@ -342,9 +345,10 @@
- Limited flexibility
- Needs new functions for every attribute
---
-#title Take 2:
+#title Take 2
Object::Declare
---
+#title Take 2: Object::Declare
#`mpg123 ~/katamari.mp3`
Katamari for Code
---
@@ -398,6 +402,7 @@
---
...and then your program gets control back
---
+#title Jifty::DBI::Schema - end
That's Jifty::DBI::Schema.
---
#title
@@ -593,6 +598,7 @@
---
Can anybody help me?
---
+#title Template::Declare - end
That's Template::Declare
---
#title
@@ -706,6 +712,7 @@
}
}
---
+#title Test::WWW::Declare - end
That's Test::WWW::Declare
---
#title Conclusion
More information about the Jifty-commit
mailing list