Re: learning dragonfly or C...

看板DFBSD_kernel作者時間21年前 (2004/11/12 13:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串15/23 (看更多)
On Friday, 12. November 2004 01:28, Jonas Sundstr闣 wrote: > One part of programming that could use a lot more effort is writing > readable code, so that it actually makes sense to someone not familiar > with it. (Or one self, a week later.) Choosing descriptive names for > variables as opposed to names 1 or 2 chars long does a lot for > readability. (Not meant as criticism of any code shared here.) new non-random link: <http://mindprod.com/unmain.html> good stuff, take it with a grain of salt > BTW, do long/short variable names matter at all for performance in C > and C++? And what about function- and class method names? not for execution speed, a little bit for parsing speed (longer files), nothing more, i'd say. oh yes: for typing. ATemporaryIntegerValue vs t... maybe the linker needs more time to fix up references to functions with long names, but that's really negligible. cheers simon
文章代碼(AID): #11b4Er00 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #11b4Er00 (DFBSD_kernel)