Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
8
Newest
 Excavator
Impact
~2k people reached

Jan
20
comment Why use partial classes?
This also addresses the problem of keeping class files small (in terms of lines of code) while still allowing proper encapsulation of code that belongs in an inner class.
Jul
24
comment Is a long XSLT file a code smell?
Apart from my immediate research needs I would also hope that the question (+answers) acts as a reference source for others (and future me!).
Jul
24
comment Is a long XSLT file a code smell?
I asked the question because I'm unfamiliar with XSLT and conventions around it's use. I been seeing large and, what look to me to be, monolithic XSLT files in codebases that were otherwise relatively well structured. Hence I was wondering if (A) I was misreading the situation (i.e. they are actually well structured XSLTs), or (B) maybe there was something about the technology that was causing lack of good structure.
Jul
24
comment Is a long XSLT file a code smell?
@Snowman - It's generally beneficial to decompose a large monolithic piece of logic into easily understood and hence maintainable sub-units. Each sub-unit can then have its own set of unit tests, and there can be well defined and strictly imposed interfaces between the sub-units, thus restricting the possibility of unexpected use cases invoking undefined behaviour. This approach is independent of program size - i.e. if your project fundamentally requires lots of logic then 'make it concise' doesn't work at the project level, but it does work at the component level.
Jul
23
awarded  Excavator
Jul
23
revised Is a long XSLT file a code smell?
typo
Jul
23
revised Is Razor or XSLT better for my project?
Added links to Razor and XSLT wikipedia pages.
Jul
23
asked Is a long XSLT file a code smell?
Jul
23
suggested approved edit on Is Razor or XSLT better for my project?
Jul
22
comment Is cyclomatic complexity density a good software quality metric?
"but those false alarms are worth investigating" - Good points. You can hone in on outliers identified by any number of metrics, and you'll find auto-generated code and other 'oddities', but that still leaves you with a majority of code that isn't an outlier in any metric but might be good or bad. I do still think that very large classes and functions are correlated with poor code, they /might/ be high quality and bug free, and smaller classes/functions may be bug heavy, but I believe LoC works as a reasonably good prior estimate of quality.
Jul
21
revised Is cyclomatic complexity density a good software quality metric?
typo
Jul
21
asked Is cyclomatic complexity density a good software quality metric?
Mar
18
awarded  Editor
Mar
2
comment What are the most important concepts to understand for “fluency in developer English”?
Network Dictionary @ The Internet Acrhive
Feb
24
asked Do you plan to rewrite?
Jan
16
awarded  Popular Question
Dec
12
awarded  Teacher
Nov
7
comment What are useful metrics for source code?
Using SLOC as a productivity metric is just dumb and will probably never give good results. Using SLOC as a quality metric indicating maintainability and number of defects is more sane, with all the caveats already discussed on this question.
Nov
4
comment Software architecture map to aid cross team communication?
The # of teams changes but about 6 on average. Each team works on one area of the system, and the tasks within each team are ordered logically and team members decide amongst themselves which task to do next (based on skill set, priorities, etc.). Tracking is with little cards on whiteboards and a daily 15 min stand-up meeting/discussion.
Nov
4
comment Software architecture map to aid cross team communication?
@SteveEvers Nice idea. I suspect most of the map could be generated automatically also, using some bespoke code to identify the dependencies. That code would likely require updating from time to time, but there would be an incentive to do that if it was seen to be working well.