Digital Disruption – iPhone Photography Awards 2014 Winners

December 10th, 2014 by Terrence Miao No comments »

http://www.ippawards.com/2014-winners/

Digital Disruption – iPhone Photography Awards 2014 Winners

http://www.ippawards.com/2014-winners/

Google+: View post on Google+

ScreenFly

December 10th, 2014 by Terrence Miao No comments »

ScreenFly

Embedded Link

Screenfly / Test Your Website at Different Screen Resolutions
Test your website on any screen size including desktops, tablets, televisions, and mobile phones.

Google+: View post on Google+

Latest Java Posse talked about client side programming, JavaScript, a lot of

December 10th, 2014 by Terrence Miao 1 comment »

And it's a fact now Ruby has been defected by JavaScript …

Embedded Link

The Java Posse : Java Posse #460
Syndication. Feedback Forums/Email. Ask a Question · JavaPosse Google Group · javaposse@gmail.com. Call us at: (408) 465-4626. Channels. iTunes Podcast · Follow JavaPosse on Twitter Follow us on twitter! Creative Commons License The Java Posse by The Java Posse is licensed under a Creative …

Google+: View post on Google+

AngularJS objects in a nutshell

December 10th, 2014 by Terrence Miao 2 comments »

· Ignore all the cache in the diagram. They are just for the improvement of the performance. AngularJS can run and  work without them.
· No matter it’s provider, service, factory, value, they are ALL objects in the traditional MVC Service Layer. The subtle difference is like difference between procedure and function. They are initialised when inject into other objects.
· ALL objects in service layer can be decorated, similar to Template Pattern used a lot in Spring modules.
· Controller, Directive (Custom Tag?), Filter are ALL objects and SAME concept in the traditional MVC Control Layer. They are required to be initiated when they are invoked (sounds like lazy loading?)
· ALL objects in Service and Control layers are injectable (as SAME as Spring).
· ALL objects in Service and Control layers are Singleton (as SAME as default Spring bean type is Singleton).
· You can’t use DI in constant (don’t know how to do DI in a static final “constant” in Spring).
 
Honestly to say, I don’t see AngularJS has any breakthrough architecture design than the “OLD” Spring MVC and Spring IoC.
 
Read more:
- http://www.mikeobrien.net/blog/angular-consts-values-services-factories-and-providers-oh-my/
- http://blog.xebia.com/2013/09/01/differences-between-providers-in-angularjs/

AngularJS Diagram

Google+: View post on Google+

Microservices is nothing new than Domain Driven Development, Event Driven SOA, good…

December 10th, 2014 by Terrence Miao 2 comments »

Microservices is nothing new than Domain Driven Development, Event Driven SOA, good old application architecture design principles like Separation of Concerns, Loose Coupling, Single Point of Failure, and regarding application testing as equal in importance to application development and emphasizing testing discipline should reach first class citizenship on equal footing with development.

Actually, Microservices is like bottle will a new label, but still filled with the old wine … …

Embedded Link

The 7 Deadly Sins of Microservices | Open Source Software Development Consultancy in London
Undeniably, there is a growing interest in microservices as we see more organisations, big and small, evaluating and implementing this emerging approach. Despite its apparent novelty, most concepts and principles underpinning microservices are not exactly new – they are simply proven and …

Google+: View post on Google+

AngularJS Objects in a nutshell

December 9th, 2014 by Terrence Miao No comments »

· Ignore all the cache in the diagram. They are just for the performance improvement. AngularJS can run and  work without them.
· No matter it’s Provider, or Service, Factory, Value, they are ALL kind of objects can be found in the traditional MVC Service Layer. The "subtle" difference is like difference between procedure and function. They are initialised when they are injected into other objects.
· ALL objects in service layer can be decorated, similar to Template Pattern used a lot in Spring modules.
· Controller, Directive (Custom Tag?), Filter are ALL objects and SAME concept in the traditional MVC Control Layer. They are required to be initiated when they are invoked (sounds like lazy loading?)
· ALL objects in Service and Control layers are injectable (as SAME as Spring).
· ALL objects in Service and Control layers are Singleton (as SAME as default Spring bean type is Singleton).
· You can’t use DI in constant or decorate a constant (don’t know how to do DI in a static final “constant” in Spring).
 
Honestly to say, I don’t see AngularJS has any breakthrough architecture design than the “OLD” Spring MVC and Spring IoC.
 
Read more:

· http://www.mikeobrien.net/blog/angular-consts-values-services-factories-and-providers-oh-my/

· http://blog.xebia.com/2013/09/01/differences-between-providers-in-angularjs/

AngularJS Diagram

Google+: View post on Google+

If you can't explain it simply, you don't understand it well enough.

December 5th, 2014 by Terrence Miao No comments »

If you can't explain it simply, you don't understand it well enough.

Albert Einstein

If you can’t explain it simply, you don’t understand it well enough.

Google+: View post on Google+

In AngularJS:

December 2nd, 2014 by Terrence Miao No comments »

A constant can be injected everywhere. A constant can not be intercepted by a decorator, that means that the value of a constant can never be changed.
A value is nothing more than a simple injectable value. The value can be a string, number but also a function. Value differs from constant in that value can not be injected into configurations, but it can be intercepted by decorators.
A service is an injectable constructor. A service is a singleton and will only be created once by AngularJS. Services are a great way for communicating between controllers like sharing data.
A factory is an injectable function. A factory is a lot like a service in the sense that it is a singleton and dependencies can be specified in the function. The difference between a factory and a service is that a factory injects a plain function so AngularJS will call the function and a service injects a constructor. A constructor creates a new object so new is called on a service and with a factory you can let the function return anything you want. A factory is a provider with only a $get method.
A decorator can modify or encapsulate other providers. There is one exception and that a constant cannot be decorated.
A provider is actually a configurable factory. The provider accepts an object or a constructor.

Embedded Link

demisx/angularjs-providers-explained.md
AngularJS Providers: Constant/Value/Service/Factory/Decorator/Provider – Gist is a simple way to share snippets of text and code with others.

Google+: View post on Google+