Thursday, December 26, 2013

Wonderful article on JS Delete

http://perfectionkills.com/understanding-delete/
Here’s a short summary of how deletion works in Javascript:
  • Variables and function declarations are properties of either Activation or Global objects.
  • Properties have attributes, one of which — DontDelete — is responsible for whether a property can be deleted.
  • Variable and function declarations in Global and Function code always create properties with DontDelete.
  • Function arguments are also properties of Activation object and are created with DontDelete.
  • Variable and function declarations in Eval code always create properties without DontDelete.
  • New properties are always created with empty attributes (and so without DontDelete).
  • Host objects are allowed to react to deletion however they want.

Tuesday, December 17, 2013

Analysis vs. Design: What’s the Difference?

http://www.omg.org/news/meetings/workshops/presentations/eai_2001/tutorial_monday/tockey_tutorial/2-Analysis_vs_Design.pdf

Requirements 

  • Unambiguous 
    • Interpretable in only one way 
  • Testable 
    • Compliance (or, non-compliance) can be clearly demonstrated
  • Binding 
    • The customer is willing to pay for it and is unwilling to not have it 
Every requirement that is still necessary in spite of “perfect technology” is an essential requirement.



Requirements about speed, cost, and capacity go into the design bucket

Requirements about reliability (MTBF, MTTR) go into the design bucket

Requirements about I/O mechanisms and presentations go into the design bucket

Requirements about computer languages go into the design bucket
Requirements about archiving go into the design bucket

Requirements about the customer's business policy / business process go into the essential bucket

UML for Analysis


UML for Design


Benefits

Reduce apparent complexity: one large problem becomes two smaller ones 
  • Understand the customer’s business policy / business process 
  • Figure out how to automate that business policy / process with the available technology 
Isolate areas of expertise
Apply the principles of coupling and cohesion at the highest level of the software architecture 
  • More robust, less fragile systems 
  • Enable separate evolution of the business policy / business process and the implementation technology

Responsive Web Design - Study Memo

Articles

http://alistapart.com/article/responsive-web-design
http://blog.teamtreehouse.com/beginners-guide-to-responsive-web-design
http://alistapart.com/article/fluidgrids
http://www.javascriptkit.com/dhtmltutors/cssmediaqueries2.shtml

W3C

http://www.w3.org/TR/css3-mediaqueries/

Recommended Media Screen Width

  • 320px
  • 480px
  • 600px
  • 768px
  • 900px
  • 1200px
Use EM, relative unit, instead of PIXCEL for the font size. 

Use fluid grid for responsive website


Tools

css3-mediaqueries-js 
https://code.google.com/p/css3-mediaqueries-js/





Saturday, November 30, 2013

难怪港片不行了

今天看完了徐克的狄仁杰之通天帝国,实在是。。。差不忍睹!故事太牵强,情节发展太没逻辑。真不知道在看什么?还居然安排了一个潜规则的戏码,天后要我服侍大人,居然就是脱!!!晕倒。。。难道是演艺圈的潜规则太多,没有就不正常!虽然老狄同意出力,还是要弄个女人上保险!!!免得他不办事。 如果真办事,天后也需要弄个小三反腐!!!!

徐克的作品也沦落到这个水平了。。。缅怀我的年轻时光呀。。。看来我是真老了!

Outside world is wonderful!!!

Today just finish the study on the Require.js module concept and realize that my seeking is already implemented and my direction is right, to divide the whole website into modules (widgets) and load them when it is necessary. This idea emerged from 2 years ago for the mobile stock trading system. Although it is my first web/mobile project, my network system development experience make me more focus on the system data volume & network traffic. Because of the tight schedule, I didn't really fully implement it. Unit now, my own system, I decide to implement the dynamic loading feature, which the formal name should be Asynchronous Module Definition. After finish the JS/CSS/HTML loading based on the jQuery widget object, I happened to re-study the require.js. 

Then Shit!. That is what I need, asynchronous module loading, i18n... And all are nicely implemented, well organised.  After reading its history, I feel a little upset to find this nice tool late. 

Instead of struggling on why boss doesn't judge staff based on the performance, how could those guys be so shameless to take others credit or shifting the responsibility, these guys are who I am looking for. Suddenly recall my answer to my boss exist view question, 

Boss: "well, you can't work with peoples"
Me: "Well, how can I work with them?! like xxx incident, even black and white, they can lie!!!"

For sure, I can't work them. Because,

Outside world is so wonderful!  

Tuesday, November 26, 2013

终于通了!!!

DTStockAlert系统的模块终于都链接上可以通信了!。。。。终于看见一丝曙光!

Wednesday, November 20, 2013

Another HR Person

After the Monday lunch with the resigning HR manager from my ex-company, I wondering whether it is because of the HR person over professional that most company can't build up the environment like that taught in the management books.  Seems they lacks the basic sincerity. Maybe it is because their job, they have to deal with all kinds of peoples, you know, that is the area not always under the sun.

Most HR persons who I deal with before, not pleasant, one hand they will talk about the supportive, passion... all glory stuff; another hand, they they don't really believe it. 

Suddenly recall another HR person in my ex-company, is so "cool" and emotionless when she processes your request. But she will show you the warmest smile when talking about the company culture, working environment... 

So what happened this time? Shit, it is so fake!!!

I was touched when she insisted on farewell with me back when I was leaving this company 6 months ago. And really appreciate what she shared with me, 

  1. Listening to people is the key for teamwork & cooperation, which is lacked in this company. And it is far from easy like it sounds.
  2. Most HR persons works for their believing. The company culture must match with them, otherwise they will quit immediately. 
  3. She is strong mind and still believe she can improve the company culture. After all, she just join the company 1+ year
Woh! Wise and kind person! I like it. I even regret that I should know these persons earlier. It is such a big lost. But lucky, in the last minute, I still got chance to catch the wise.

So when recently I learn that she is leaving, I am so surprise!!!  my ex-company lose the talent again!? I can't help to invite her for lunch and hope she is all right. Then got all the following surprises. Are they same person?  

  1. Financial industry isn't her industry. She dislike this industry and can't settle on this industry. In October (after my leave 4 months), she finally make it out.
  2. This company main problem is decision process isn't clear, not professional, not like her previous companies, NTUC child care, NUS...
  3. This company is full of empathy although it may be a issue. And very strong teamwork! which may make your miss when you really get chance learn those big name company from inside, Apple, since they lack it
At beginning I was shock and can't get her points and slowly realize that I am so fool!. HR is just her job. Now I start to confirm my initial doubt on her sudden farewell invitation is true, she just worked for her boss to confirm whether my leave is because of that staff fire event and collect the comments on the company. 

But I am still inspired by "her wise" words, listening is the key for the teamwork and corporation. Like my favourite idiom, "No one can do anything to the person who keep lying.  It is just in the end, he/she can't believe others anymore". 

Such a pity job, HR is !