2017 © Pedro Peláez
 

project the-troll-inception

The Troll Inception - Reality Objective Solution.

image

edouardkombo/the-troll-inception

The Troll Inception - Reality Objective Solution.

  • Tuesday, January 21, 2014
  • by edouardkombo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

The Troll Inception - Objective Reality Php Solution

Welcome to The Troll Inception (TTI) project, it is not a framework, but a solution behind a framework., (*1)

The Troll Inception is an objective reality php "solution" NOT A FRAMEWORK, based over the CSS (Code Similar Situations) principle, and a personal notion of object, all thought by Edouard Kombo. Because you don't have to learn a framework, but only good development practices, TTI is not a framework, but a concentration of good practices made extremely intuitive and playful!, (*2)

The initiative behind TTI was to rethink the notion of object based from the CABIN principle (http://le-code-vulgarise.blogspot.fr/2014/01/principe-cabin-pour-la-construction-d.html). We truly believe a true object is only an interface, implemented by an abstracted shape you can concretely use. That's all! That means, a concrete class that doesn't have a contract with an abstract class and an interface, can't be considered as real object, but rather as a trait, or "lost son", or anything else, but not as object., (*3)

Based from this notion, we developed two powerfull collection of generic classes that is a standard base for true objects, and, that can be used in any of your projects to fully respect SOLID and GRASP principles., (*4)

"InterfaceFactory" and "AbstractFactory" collection of classes, are the heart of The Troll Inception solution. AbstractFactory is a collection of abstracted classes that have very single responsibilities implemented by specifics and generic interfaces grouped in the InterfaceFactory., (*5)

Together, they offer powerfull possibilities and constraints for better closed development practices in your applications development., (*6)

Coupled with the CSS principle (http://le-code-vulgarise.blogspot.fr/2014/01/what-is-css-principle.html) and the Objective Reality (http://le-code-vulgarise.blogspot.fr/2014/01/what-is-objective-reality-design-pattern.html), TTI offers you a new generation of framework that can involve agile development., (*7)

1) What is Objective Reality design pattern?

Objective Reality is the fact of coding real and funny situations, in an objective and professional goal. It is a design pattern based over the CSS (Code Similar Situations) principle, that has also been thought by Edouard Kombo., (*8)

With Objective Reality design pattern, you begin playing with fun rules. You play to win somthing, earn a reward. This reward can litteraly improve agile development by estimating more easily the technical debt, your project will create., (*9)

More explanations and examples here: http://le-code-vulgarise.blogspot.fr/2014/01/what-is-objective-reality-design-pattern.html, (*10)

2) What is CSS Principle?

It is extremely important not to confuse the CSS (Cascading Style Sheet) language, with CSS (Code Similar Situations) principle. The theory is, if we can connect the code and the developer by its creativity, then we will no more learn, we will start playing with the code forever., (*11)

WHY DO CSS PRINCIPLE USEFUL? Because it is hard in very short development process to understand how to apply all necessary design patterns. Because it is hard to fully capture in seconds, a complex code from someone else, or even from ourself, some weeks or months later. Because too much complex code doesn't connect you with your passion, and makes you code bad. Because it is hard for beginners and more experienced developers to intuitively appropriate themselves an architecture. Because it is funnier to code something you can play with, and that will be easier for others, to intuitively understand and play with it too., (*12)

WHAT DO CSS PRINCIPLE RECOMMEND? It recommends to URA (Understand, retain, apply) something, by inspiring yourself from a similar situation we've already seen or lived in real life (story telling, concrete experience, game, cartoon, movie...)., (*13)

HOW DO CSS PRINCIPLE SOLVE THOSE PROBLEMS? Instead of simply coding instructions and objects, when you play with them, then you emotionnaly connect with your application and your job gets funnier, more pleasant and intuitively accessible by other developpers., (*14)

More explanations here: http://le-code-vulgarise.blogspot.fr/2014/01/what-is-css-principle.html., (*15)

3) The Troll Inception STORY (CSS and Objective Reality implementation)

You play Roar, a troll cave, lost in the Breeze forest by his stupidity. To survive, he has to conquer and dominate this forest. Roar has several tools at its disposal, like a torch, a map, an eagle that will guide him to the best routes he can teleport to, via the magical portal, an ancestral passort, and an architect that help him build each territory it conquers. The goal is to reach all routes and respond to affirm your territory. When Roar responds, he may beat the asian spirit of the forest, "Foucking Law". Foucking Law has one powerful wild beast, CodeCeption, which will test Roar as many times possible, like a ghost. Everytime Roar responds successfully to Foucking Law, he wins 5 Chicken points., (*16)

These points will help you estimate more precisely the technical debt a project will introduce., (*17)

How do this concretely apply? You start to play with objective reality in the heart of your application, just by renaming variables as living objects or characters of the story telling. This way, all the application you are designing, is easily printable in your subconscious mind. You are playing with it, and it is now easier for other developers to play with it too., (*18)

4) ILN file extension

ILN is the acronym of "Intuitive Language Notation" and, is a language used for object configuration. It is similar as YAML but less advanced., (*19)

More explanations here: http://le-code-vulgarise.blogspot.fr/2014/01/iln-intuitive-language-notation.html., (*20)

5) Installing the Troll Inception

When it comes to installing the Troll Inception, you have the following options., (*21)

As The Troll Inception uses [Composer][2] to manage its dependencies, the recommended way to create a new project is to use it., (*22)

If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:, (*23)

curl -s http://getcomposer.org/installer | php

Then, use the create-project command to generate a new TTI application:, (*24)

php composer.phar create-project edouardkombo/the-troll-inception=dev-master path/to/install

Composer will install TTI and all its dependencies under the path/to/install directory., (*25)

Download an Archive File

To quickly test TTI, you can also download an [archive][3] and unpack it somewhere under your web server root directory., (*26)

The archive comes without vendors. To download them, first download composer (see above) and run the following command:, (*27)

php composer.phar install

6) Browsing the Demo Application

Congratulations! You're now ready to use The Troll Inception., (*28)

To see a real-live TTI page in action, access the following page:, (*29)

http://localhost

7) Getting started with TTI

This distribution is meant to be the starting point for your TTI applications, but it also contains some sample code that you can learn from and play with., (*30)

We will provide soon a nice and complete documentation. But you can already play with it and reads the api., (*31)

To access to the api, simply go to:, (*32)

http://www.breezeframework/tti/sandbox 

What's inside?

The Troll Inception is configured with the following defaults:, (*33)

  • Aura Router;, (*34)

  • Interface Factory;, (*35)

  • Abstract factory;, (*36)

  • Parser Strategy for ILN (Intuitive Language Notation) files., (*37)

  • Http Strategy;, (*38)

  • Dependency Strategy;, (*39)

  • Event Strategy;, (*40)

  • Cache and Db Utils;, (*41)

The Troll Inception also includes some useful dependencies to help you code better:, (*42)

  • CodeCeption as unit testing framework;, (*43)

  • PhpMd;, (*44)

  • Php-CodeSniffer;, (*45)

  • Php-loc;, (*46)

  • Twig;, (*47)

  • Php_error, (*48)

All libraries and bundles included in the Troll Inception are released under the MIT or BSD license., (*49)

Enjoy!, (*50)

The Versions