MerbCamp: Day 1, first half
Ezra’s Keynote – Talks about the original pastie of Merb and what it is now. Goes through the core pieces of Merb and the reason why everything is separated. Modularity is one of the key features of Merb, remove what you don’t need, add in what you do. This philosophy helps to keep merb fast and get out of your way, no code is faster than no code. Also talks about how competition is good, but it’s not about saying “my framework can kick your framework’s ass”. Merb 1.0RC is also going to be dropping tomorrow and once any of the bugs are worked out the full release will be pushed. Merb-stack is going to be a more rails approach to merb. The merb-stack will include things like jquery and datamapper with it. I believe it is still in the works but this should be a good jump start for noobs to merb. Nanite is a new project that Ezra is working on that looks like it is going to be really promising, basically it helps balance the load between the frontend processes and the running applications which will help with scaling.
Merb plumbing (routes) – Saw some really cool routing examples, very excited about this. A couple key points.
- You can have optional parameters
- You can do lookups in your route and then direct to an action such as login without even hitting the controller. Saves overhead.
- Added a way to define routes for subdomains
- Lots of nesting and blocks
MerbSlices – This is going to be amazing. Basically it is a mini merb app within an application. For instance with a CMS you could throw in a slice for your Press Room that handles everything specific to that. We should be able to get to the point where we can have our main application and then throw in 10 slices to complete our application. The main app will coordinate everything between the different slices. With slices you can clone over the assets(images/javascript/css) and define routes for any slice so if you have a slice for your press room then you could define a route that is /press and the slice would actually exists in /merb.root/slices/press_slice
Testing Merb Apps – Katz talked about how we need to be doing testing based on what the url in question should return. Not through a certain helper or controller but more based on if we ping /users/do_login we should get back a User object.
MerbAuth – This is going to be a very much used slice. Basically with this slice in place it integrates all of the login functionality you would normally have to program for each application. Once it is put in place you can do things like session.authenticated?, session.abandon, and session.authenticate
I’ll post more links from within each talk when I get a chance. back to more merbcamp.
