Reputation
4,258
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
9 23
Newest
 c#
Impact
~83k people reached

2d
comment Should every class I write adhere to an interface?
Everyone! Write down the answer's 2nd & 3rd sentences. Laminate it. Put it in your wallet. Reference often.
2d
comment How to avoid a crazy amount of interfaces in UI with dependency injection?
All I'm saying is, "it depends." Too often I see maxims taken quite literally.
May
2
answered How to avoid a crazy amount of interfaces in UI with dependency injection?
May
2
comment Why does the relational model for a database matter?
Why does a good relational schema improve a database? Data integrity. How one gets there is through normalization, in part. And performance is a result of 40 years of database engine improvements. sorry R.H. and Phillip but pedanticosity has gotten hold.
May
2
comment Why does the relational model for a database matter?
"But I take the general point that you could write a tome on it if you were so inclined." It's already been written. An Introduction to Database Systems by C.J. Date. He invented SQL and Edgar Codd invented the relational model.
Apr
29
comment Maintaining a Unique id within List in two different iterations
What Mattais said. Why would you tell me that you are 4 minutes away from "destinationZ" and not tell me who you are? If you must ID a train based on it's destination, well, why not make the destination the dictionary key? And read up on the Dictionary class. All that convoluted code can be replaced with simple index referencing.
Apr
29
comment When the system metaphor does not work
This sounds like an attempt at a Unified Field Theory of Semantics.
Apr
23
comment How to write correct loops?
Very. Excellent. Answer. And I'd add that this inclusive/exclusive index convention is also motivated by the value of myArray.Length or myList.Count - which is always one more than the zero-based "rightmost" index. ... The length of the explanation belies the practical and simple application of these explicit coding heuristics. The TL;DR crowd is missing out.
Apr
21
revised Breaking the contract: throw exception or do nothing?
deleted 19 characters in body
Apr
21
revised Breaking the contract: throw exception or do nothing?
added 180 characters in body
Apr
21
answered Breaking the contract: throw exception or do nothing?
Apr
21
comment Modelling a complex schedule of work
Since workers are obviously trusted with keys and may keep keys over night and for as long as necessary - as long as an exchange is not required - why not make a set of keys for each worker that they keep permanently? Alternatively, create a set of keys for each worker for all places they go for a given time period, say, a week. Keys are duplicated as needed to make a week-set for every worker. All workers exchange keys once a week.
Apr
15
comment Should an object be able to represent itself across components?
upvote. Yes, make a class. An interface is the fundamental problem. The secondary problem is overthinking the problem; which is caused by the first problem.
Apr
11
comment What are 'good' cases for subtype overloads
A classic example of don't store calculation results violation. If crimeFightingIndex is a function of the cop count, well, make it a function of the cop count.
Apr
11
answered Proper design for models
Apr
10
comment How can I promote the use of the Builder pattern in my team?
How about promoting refactoring. Then eventually you'll get there.
Apr
10
comment How can I promote the use of the Builder pattern in my team?
by turning the creation of an object into a process, you can enforce complex logical constraints. BAM. And all that this implies about complexity when it is organized into smaller, discrete, simpler steps.
Apr
10
comment How can I promote the use of the Builder pattern in my team?
The rationale was that this solution follows the KISS principle, which mine violates. No, it follows the LAZY principle.
Apr
9
comment How can I progress from a software developer to a software manager or team leader?
The Psychology of Computer Programming by Gerald Weinberg
Apr
6
comment Using nested private class to hold data from csv file
it would be better if this class would be moved to another file.. The loyal opposition disagrees. Files and file content is incidental to class design. Design is the important thing. Simply, I agree with your assessment: ... I chose another approach. And that approach would be object oriented programming.