39,755 reputation
562135
bio website slott-softwarearchitect.blogs…
location Norfolk, VA
age 57
visits member for 3 years, 8 months
seen Jan 18 '13 at 17:19

Software Architect, aspiring writer. Programmer for well over 30 years, about 70% of my working life.

Blog: S.Lott-Software Architect.

Books: Building Skills.

Technorati: SLott.

LinkedIn: Profile.

Ohloh: s_lott.


Feb
20
comment In javascript and other languages which lack a compiler, is unit testing a good method to ensure correct syntax and variable naming?
Yes. Your experience demonstrates this. Why do you ask? What more would you like to know?
Feb
20
comment What is a good non-technical example of a cumulative error?
"made a cumulative error". A matter of opinion. The Orthodox church doesn't agree that this is an "error". They celebrate their holidays under the old Julian calendar. And. It can be called the result of a flawed approximation, instead of a measurement error. It's possible for this example to dissolve into dispute.
Feb
20
comment Why was dependency injection pattern not included in the Gang of four?
@Falcon: I'm not sure the question expected that kind of depth. The question was superficial (and a bit of a complaint). Strategy is a feature of numerous design patterns.
Feb
20
comment What is a good non-technical example of a cumulative error?
It's as real-world as it gets. When you report to your manager, it gets filtered and simplified. They report to their manager and on up the food chain. At the top of the organization, none of what you said has been received. It can't be any more real world than this. And it's non-technical.
Feb
20
comment What is a good non-technical example of a cumulative error?
The "Telephone game" is precisely the concept. What more "fully" are you asking for? Why "concept of it without knowing about the specifics."? What's wrong with specifics?
Feb
20
comment Adding conditional toggles into methods for running tests
"spend huge amounts of time keeping your mock setups in sync with changes to the systems they're mocking" is rare. When it does happen, it's an architecture smell. Something is too volatile and should be replaced with something less volatile. Nothing to do with testing. Or mocks. Everything to do with architecture choices overall. It may be discovered by test fragility.
Feb
20
comment Software testing for developer
I'm glad you're happy. I can't see how the accepted answer addresses the question. But. As long as you're happy, that's all that matters. I still think the question could be improved. But that's just me, I guess. Cheers.
Feb
20
comment Why was dependency injection pattern not included in the Gang of four?
"i would have even asked a question". You can still ask.
Feb
20
comment Why was dependency injection pattern not included in the Gang of four?
Everything that gets repeated forms a pattern of repetition. All design elements (that aren't unique, crazy ideas) are "patterns".
Feb
20
comment Adding conditional toggles into methods for running tests
"adding extra checks throughout the codebase for testing" is not inelegant. It's flat-out wrong. It perverts the notion of testing, since you're not testing the real application but some fake version.
Feb
20
comment Software testing for developer
I don't get what "basics" you're looking for. You keep answering your own question. What more do you want to know?
Feb
20
comment Backquoted symbols, good or bad?
en.wikipedia.org/wiki/Immutable_object. "Some languages do this automatically: for example, Python automatically interns short strings". This probably varies by implementation.
Feb
19
comment Calculate statistics for web application
Step 1. Define more precisely what you're worried about. If you run such a query once each day, then the cost is miniscule. You can waste more time trying to optimize it than you would actually save. Step 2. Are you asking about "precomputing" your statistics? That is, incrementing some bunch of counters for each access? Updating a bunch of count rows might be more costly than a query. Step 3. Measure. Try both and compare.
Feb
19
comment When to refactor
Essentially, you're asking the same thing as this: programmers.stackexchange.com/questions/6268/…. Except your threshold for taking action is lower, since the cost and risk are lower, right?
Feb
19
comment Which websites have open sourced their code base such as reddit?
Are you looking for this? wiki.python.org/moin/Applications
Feb
19
comment Software testing for developer
Prototypes don't go into production. There are no "silly mistakes" that matter. And. Why would not not test the prototype? I don't get what "basics" you're looking for. You've already enumerated them. Test everything. Every time. Except when it doesn't matter. What else do you think there is?
Feb
19
comment What is the advantage of implementing a composite design pattern?
Or a "Shoal of Tuna". But. It's a "Hover of Trout".
Feb
18
comment What is the advantage of implementing a composite design pattern?
It's not different. That's why I don't understand the question. A hierarchy is a composite object. Can you clarify what you're asking by -- perhaps -- getting rid of the "Fish" example. Can you ask about "collection-like" things? A composite object is a collection.
Feb
18
comment What is the advantage of implementing a composite design pattern?
Since all hierarchies (i.e., XML Document Tags, File System Directory Trees) are composites, it's not clear what the question is. Clearly, composite objects (like XML documents and file directories) are everywhere. Are you asking for more examples of composite data items?
Feb
18
comment Is there a pattern that will help with this data structure
If "A" has multiple parents of class "B", doesn't that simply mean that "A" has a List<B> in it? Is that what you're looking for?