My topic is Firebase + transport tycoon - mmo. There is the open TTD project. So I teoreticly could use free codes form this project (c++) and convert it to JS by emscripten. But my topic is firebase and the front end is not so import. Thats why I use only sheetengine to show how my application work throught firebase.
Wednesday, January 8, 2014
Wednesday, January 1, 2014
AngularJS + Firebase = AngularFire
I am using AngularJS for displaying data (except map data) from firebase.
There are alternatives of AngularJS. I decide for AngularJS because it´s provided by Google and also I agree with this comment:
"I am a developer on Angular, and I don't know enough about emeber.js so i may be biased.
Martin Wawrusch - Placing too much logic into HTML
It is true that placing logic into HTML is a bad idea, and we don't recommend that. But Angular only places bindings not the logic. We recommend placing logic in controllers. But bindings is information as well. That information has to live some place. There are three choices:
The code: this is essentially what jQuery does with CSS selectors. This has broven very problematic, since the HTML is very tightly coupled with the code and re-skinning an application becomes very difficult.
I personally think that AngularJS is unique in that it embraces HTML/CSS. It follows the spirit of what HTML is. Where as other frameworks diverge from HTML by providing their own API. The result is that AngularJs is most declarative out of all of the frameworks out there, and I believe that declarative is a good fit for UI, where as imperative (JS) is a good fit for logic.
AngularJS allows you to extend the HTML vocabulary, so hopefully any limitation you run into with angularJS can be easily overcome."
Firebase integrates AngularJS, Ember, etc...
I think combinate Firebase and these frameworks is awesome.
Combination Firebase and AngularJS equals angularFire - http://angularfire.com/
There are alternatives of AngularJS. I decide for AngularJS because it´s provided by Google and also I agree with this comment:
"I am a developer on Angular, and I don't know enough about emeber.js so i may be biased.
Martin Wawrusch - Placing too much logic into HTML
It is true that placing logic into HTML is a bad idea, and we don't recommend that. But Angular only places bindings not the logic. We recommend placing logic in controllers. But bindings is information as well. That information has to live some place. There are three choices:
The code: this is essentially what jQuery does with CSS selectors. This has broven very problematic, since the HTML is very tightly coupled with the code and re-skinning an application becomes very difficult.
- The HTML: This is what angular does. No, we are careful that you should not do anything but place connection information. Any logic should not go here as it will cause problems down the line. I think Angular does the binding rather well.
- Meta-data file: while i am not aware of anyone doing this, it would basically double the problem, since you would have to connect both the HTML location with model location in the code.
I personally think that AngularJS is unique in that it embraces HTML/CSS. It follows the spirit of what HTML is. Where as other frameworks diverge from HTML by providing their own API. The result is that AngularJs is most declarative out of all of the frameworks out there, and I believe that declarative is a good fit for UI, where as imperative (JS) is a good fit for logic.
AngularJS allows you to extend the HTML vocabulary, so hopefully any limitation you run into with angularJS can be easily overcome."
Firebase integrates AngularJS, Ember, etc...
I think combinate Firebase and these frameworks is awesome.
Combination Firebase and AngularJS equals angularFire - http://angularfire.com/
Subscribe to:
Posts (Atom)