ֱˣô죿

һɵĶӣ

ԱXXֲˣҽ˵ϣֻ֮һѸΪãLeadûзǸXX磬ÿ춼XXָˣøɻˣѽ漣ڷˣXXˣһ仰ָˣ

Ĭķʽӳ仯ÿһԱܹʦĿᾭ⡣⣬ͬвͬӦ֮΢һι仯ۣ

@ߟ: <ҵΨһϣij·> Great!!

Ӧ仯 @װ⬵ ĴģŻģͣӦı仯@ߟ ΪģõֶΡҽһ䣬ӦáԼ仯дλDZӦ

Ʒת (IoC)

ʲôǡأٸӣ

û빺һ̨ͨPCֻħ磬֪ʲô壬ʲôڴ棬ʲôCPUòܱ빺塢CPUڴʵΪPCܹDzҵ׼ûġͻѡȨûƵȨͻƿµõ㡣

ҪPCܹDZ˭棿Ȼֱӵdz̡ûPCܹı̾ͻֱԿͻͻ˵ҪAϷʵֹAͻ˵ҪBϷʵֹB PCܹı̾ͱøǿƣûһ󶼱PC̸ܹ̿ûϸĽƷȨԶԼСITҵáƷ͡ĿӽֲͬĹ˾áơӽʵϣؼȨdz̻ڿͻȨڿͻƷĿ˱ȻƣڱӦͻ΢Ȩڳ̣ƷĿиĻȨ͸ߵ

ȻƻͻܲͨȨáһҪԼкǿƻƵĹ˾һ棬̽׳ӪҲһַWintel(Windows+Intel)Լڵ׳AndroidӪڴࡣг̲PCҵ׼˵ҵPCû壬ûԿΪûҪЩôҪôƻһһijΪһµı׼Ҫôʽ

̸ġϾеĿƷת (Inversion of Control, IoC)˼롣IoCÿһԱ߼Ҫ˽Ҫ˼롣SpringȿܵУ֪IoCijԱ˶IoCͣͨע (Dependency Injection)ʵֽ档ʵϣIoCӦòǿܵĻԭڷǼIoCҲ޴ڣܴᵽIoCڻͨˡ

һģʽǡûΪ㣬ΪġģʽᳫûзƵƺʵ֣磬TDDʽ͡IoCʽ˽Ȼ෴IoCһ֡ԸԸҪ棩Ϊ㣬ԼܹΪġģʽûһ̨ԣͨһģʽƵ-CPU-ڴ-衱PCܹأºѡIoCʽûŵļܹΪģԼƣûƵԼֶ֤ΣdzĿꡣҪ仯ƣڱͱʹõڶģʽ

ǵ͸ֿ͹ֻ沨˵İšûҪӵȨأȻdzԱ㶮IoCܷԼأYesyou can!

ظ

õģʵDzпġҽЦ ijȢţѡ̸ŮһǧԪǰѷװһŮ˺ܶ޻װ1/2ڶŮ˺ܶװ3/4Ů˺ܶù߳䡣 գѡزǸ