Wednesday, November 02, 2011

Chinese problem

My younger brother has this question:

請問繁體版windows可否 使用簡體版軟件而又正常見到簡體字呢?方法如何?因為我見到的是古怪字.

Well, I kind of know the answer.  But the problem is my brother doesn't know too much English, so I have to translate everything in Chinese.  Here's my reply:

在「控制面版(Control Panel)」中找「改變顯示語文(Change Display Laguage)」

在「改變顯示語文」中找「管理(Administrative)」頁

在最下面「non-unicode軟件使用語文(Lamguage for non-Unicode programs)」的選項中選「中文(簡體) (Chinese (Simplified)」

重新開機

從此,非國際化的軟件便會用簡體顯示。

註:我沒有中文視窗,以上介面的指示是我自己用中文意譯,希望你能意會。


Seriously, the translation process is pretty painful. But it's my brother, and I can't avoid him.  So I did the best I can.

Tuesday, November 01, 2011

Messy ViewModel

In good old days, it's the code behind that has everything dumped into it and causing the corresponding application hard to maintain.  Now in the MVVM world, it's the ViewModel that can become a dumpster.  It takes some serious effort to manage it so that the application code can stay maintainable.  Small things like organize the code in tidy way, use good naming, group code using "#region", put in decent remake ... all these can make a huge difference on the maintainability and eventually scalability of your code.

The rule of thumb of ViewModel is that if the code is bigger than couple hundreds of lines, something is seriously wrong.