40,206 reputation
565139
bio website slott-softwarearchitect.blogs…
location Norfolk, VA
age 58
visits member for 4 years, 1 month
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
17
comment Using a try-finally (without catch) vs enum-state validation
The Exception already is a categorization/organization. I don't see the value in replacing an unambiguous exception with a return value that can easily be confused with "normal" or "non-exceptional" return values. Return values should always be non-exceptional. My opinion is not very developed: it's very simple. Don't transform an exception into a numeric code. It was already a perfectly good data object which serves all the perfectly good use cases we can imagine.
Feb
17
comment Using a try-finally (without catch) vs enum-state validation
@MihalisBagos: All I can do is suggest that Microsoft's approach is not embraced by every programming language. In languages without exceptions, returning a value is essential. C is the most notable example. In languages with exceptions, returning "code values" to indicate errors is a terrible design. It leads to (sometimes) cumbersome if statements instead of (sometimes) simpler exception handling. The answer ("How to you choose...") is simple. Don't. I think saying this adds to the conversation. You're free to ignore this answer, however.
Feb
17
comment Why is it evil to run selects from a prod server?
@FrustratedWithFormsDesigner: Clearly. "Ben is trying to prevent the potential from". However. ""your reason is logically invalid" has yet to work for me as an argument". Which means debating the potential doesn't seem to be working. I'm attempting to offer an alternative to endless debate.
Feb
17
comment Why is it evil to run selects from a prod server?
@Ben: The "potential" doesn't appear to carry much weight with the people you're failing to convince with logic. Perhaps you should stop talking about "potential" -- since that's not working -- and measure "actual". Actual slowdowns may be a place to start.
Feb
17
comment Why is it evil to run selects from a prod server?
@Ben: ""your reason is logically invalid" has yet to work for me as an argument" can't work to win an argument. Is the production server broken? You say "the following are not working". Is this true? Is something actually broken? If so, you don't need logic. You have something which is broken. That's all the evidence that's required.
Feb
17
comment Why are several popular programming languages influenced by C?
@NemanjaTrifunovic: The subtlety remains this one fact. The French occupied more of the US than the British. The US had to purchase giant swaths of land from the French. yet. Except in Louisiana, the dominant language was English. That's the subtlety. There's no simple explanation for English being the dominant language in the US. This parallels my point about C. There's no simple explanation for the prevalence of C. Yes. There were French defeats. There were also English defeats. It's not simple.
Feb
17
comment Why are several popular programming languages influenced by C?
@DanNeely: Excellent point. The history is subtle. Fort Dusquense, 1754, defeat for the Brits. Eventually, the fort did fall. But it was solidly French territory from there down to Louisiana. Where they still speak French. Yet, English predominates. The history of C is similarly subtle.
Feb
17
comment Why are several popular programming languages influenced by C?
@NemanjaTrifunovic: "was won by British"? That's the subtlety. I don't think they "drove" the French out of Canada. I think other forces were at work to shift the balance of power. The military history is pretty clear: the British lost a lot of fights. Yet. The language won out. C's history is similarly complex and difficult to interpret.
Feb
17
comment Why are several popular programming languages influenced by C?
"Although you may find it hard to believe"? I find that a bit insulting. My point is that history is complex and involves a lot of complex forces. I can find one (small) example where the forces are not obvious. How does that lead me to have trouble believing in historical facts? The history of the C language is equally complex, with lots of hidden forces and nuances. Would I have trouble believing that, too?
Feb
17
comment Why are several popular programming languages influenced by C?
@DeadMG: I'm not talking about the world. I'm talking about the US in the 1700's where the French had the British hemmed into a small area along the coast. I'm talking about the British losing military engagements in this theater only. The French clearly controlled most of what became he US. Yet. The US wound up speaking English. Not French. The same analysis applies to C. It's a complex history with lots of influencing factors. There's no trivial, pat answer.
Feb
17
comment Why are several popular programming languages influenced by C?
@maple_shaft: In the 1700's, the French and English fought throughout the world (including the US). In US schools, it's called the "French and Indian Wars", but the indigenous tribes where more mercenary forces than anything else. The French won every single encounter. I would dispute the power of Great Britain. However. The English language came to dominate in spite of the English military losses. History is a peculiar thing.
Feb
17
comment Is MySQL viable for small-medium business applications
@Bill: Solution? Your question is entirely about licensing terms and conditions. Oracle can explain the licensing terms and conditions that apply to you.
Feb
17
comment Is MySQL viable for small-medium business applications
Have you considered contacting Oracle and asking your questions directly to them? They would know more about MySQL product licensing than anyone else.
Feb
16
comment Best method of communication between your app and your website? PHP, Web service, etc
@edc598: Please don't add comments to your question. To clarify a question, it's best to update the question to be complete and consistent.
Feb
16
comment In Scrum, should tasks such as development environment set-up and capability development be managed as subtasks within actual user stories?
@Cocowalla: While you're free to make these decisions, they're not part of the first user story. They're outside the user stories. Perhaps influenced by them. But it's all got be done before the first sprint of user stories. Maybe a sprint zero or some other kind of overhead.
Feb
15
comment What's a generation in Software Development?
"Generation 1.2 or 2.6"? Can you provide some context for where you've seen this? A quote or a link or a reference?
Feb
14
comment How can you effectively use web services in an enterprise environment if you can't use transactions?
Two transactions is not necessarily two-phase commit. You have two separate transactions in two separate databases A and B? And your application makes sure that A commits before B? And if A commits even if B eventually fails, then, what? How does this "work"? Can you be precise in your question? Please don't add a lot of comments. Please update the question to clarify what you actually have working.
Feb
14
comment Best way to handle class relationship
@yas: You can't "generalize" this. There's no "general" answer, since it varies from framework to framework and it varies based on what needs to be optimized. There can never be a generalized "best" answer to questions like this. There are too many degrees of freedom and too many things which can be optimized.
Feb
14
comment Software testing for developer
"For example, there are cases when TDD is not applicable"? Really? Can you explain this? "I need to do simple smoke testing of my code every time it is deployed/changed"? Why not simply run all the tests? Why only run a "smoke test"? "check manually"? Why would you do that when you have automated unit testing? This question is quite difficult to understand. Can you explain what you want to know?
Feb
14
comment Best way to handle class relationship
"which is the best choice?" Define "best" in some measurable way. They all work. What are you trying to optimize? In tools like the Django web framework, your option 2 comes closest to the way it works. In that framework, best is defined by the framework. What are your criteria for "best"?