"I like WPF because it helps me build nice user interface. What I can’t bear is its huge program size. A simple ‘Hello World' takes up 4M disk size!"
True that a 4M hello world is big. True until you stop building “Hello Worlds” to your customers. What customers need usually is not a “Hello World”, they need you to simplify their very complicated business logic, they need your program to be safe and robust, they need nice-looking and easy-to-use UI, they need much more!
As you start adding features you customers asked for, you realized that there’s much provided in the 4M – there’s support for data accessing, imaging, user interface and threading; thread safety and network safety is taken care of; just everything is very handy! When the features are complete you found the program size has grown from 4M to 4.5M.
You come to think of before when you were using C, yes, the program had grown from 4K to 45M!
本文探讨了WPF应用程序的大文件尺寸问题,指出虽然简单的“Hello World”程序可能占用4MB的空间,但随着业务功能的增加,这些初始体积中包含的数据访问、图像处理、用户界面和多线程等功能支持变得非常实用。文章通过对比C语言程序的增长情况,进一步说明了WPF框架带来的便利。
440

被折叠的 条评论
为什么被折叠?



