Pages

Wednesday, November 23, 2011

Slim3: a Full-Stack MVC Framework

Certainly before you learn it you have to know about App Engine. What is it? Google will teach you, just visit this link: 

Ok! now what is slim3..
Slim3 is a low level API that easier to be learned than JDO or JPA. It is a kind plugin for eclipse. The concept of slim3 is MVC (model, view, controller). With slim3 we can access the data from the datastore more quickly than JDO/JPA. Why? Because slim3 does not use PersistenceManagerFactory/EntityManagerFactory which is known as a slow starter and avoids extra initializations carefully.
There are three parts of slim3 that i will try to explain:
  1. Slim3 datastore. Slim3 includes a data modeling features that make enforcing a schema easy. In slim3 datastore we can make a model (model is like bean i think) and it will create a meta data automatically. Models have two roles: Data Model and Service. A main role of Data Model is to store the data. A main role of Service is to perform a use case. Of course Data Model can have some logics for the data, too. Slim3 Datastore creates mapping logics between an entity and a model as the source code in the meta data of the model when compiling. With slim3 datastore you can so easy manage your datastore, update, delete, edit, and so on.
  2. Slim3 controller. I think if you have understand the MVC concept it would be easy to learned it. Slim3 controller is a thin framework of Servlet. Slim3 can find a controller that is like Servlet from the path automatically, so you don't need the manual configuration.
  3. Slim3 JSP. Slim3 provides JSP function, so that you can preview JSP template using HTML authoring tool like Dreamweaver.
First when you creating a slim3 project, it will generate package src and test. Then we have to create a controller and a test. That's it.. We have done a simple slim3 project!
For a complete direction how to create a slim3 project you can visit this link: https://sites.google.com/site/slim3appengine/getting-started/creating-a-blank-project


2 comments:

  1. wah infonya bagus sob..
    sangat bermanfaat & lengkap lagi..
    makasih ya :)
    salam kenal :)




    #Happy BLogging :D

    ReplyDelete