由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Refactoring long class step by step (2)
相关主题
二爷说的node beats Ruby其实很清楚啊你身边有这样的人吗?--- code stylist
Re: java inner class - 初学者问 (转载)写Java程序不用IDE,那心灵得多强大啊
C++的GUI是用qt做的吗?FP的教材是怎么误导人的
jvm十大web framework对PyCharm屈服了……
qt 即将推出LGPL版本Python 如何自动import multiple files
关于程序必须支持win and linux, 可不可以用class而不是#ifdef WIN32 ?郁闷
Refactoring long class step by step (1)Scripting language的几个问题
C++ IDE under LinuxThe Web development skills crisis ZZ
相关话题的讨论汇总
话题: step话题: classes话题: class话题: long
进入Programming版参与讨论
1 (共1页)
g*****g
发帖数: 34805
1
6. Many god classes pack everything together, but it's better to
keep them in different function groups. We often see GUI classes
doing that. It's nothing wrong when the class is short and everything
in a page of two (couple of hundred lines), but when it's getting
bigger, time to apply MVC pattern. For other long classes that
have no obvious pattern to apply, check the instance variables, you'll
see some variables are used intensively in some functions, and rarely in
others. That's a good smell
1 (共1页)
进入Programming版参与讨论
相关主题
The Web development skills crisis ZZqt 即将推出LGPL版本
any lexer/parser enthusiasts here?关于程序必须支持win and linux, 可不可以用class而不是#ifdef WIN32 ?
编程语言选择问题Refactoring long class step by step (1)
觉得自己写的代码很不professionalC++ IDE under Linux
二爷说的node beats Ruby其实很清楚啊你身边有这样的人吗?--- code stylist
Re: java inner class - 初学者问 (转载)写Java程序不用IDE,那心灵得多强大啊
C++的GUI是用qt做的吗?FP的教材是怎么误导人的
jvm十大web framework对PyCharm屈服了……
相关话题的讨论汇总
话题: step话题: classes话题: class话题: long