The funny issue about open-source software, is that teenagers have no problem making it work, while aged IT vets remain at odds with it. Makes one wonder.
olddog
@olddog
Best posts made by olddog
Latest posts made by olddog
-
RE: Open Source the new name for crappy software
-
RE: Basic question: Is this code a "WTF"?
The best reason to have isolated the functions ( as you have in your first version ) is the order in which you have isolated them. At some point in the future the order may become important. By isolating them you have given yourself some flexibility. Things always seem to change from the initial plan... It could turn out that Price is dependent upon Stock and Location at some point in the future. It could turn out that Stock is dependent upon Location, or otherwise.
Although it looks more elegant to test all conditions in a single if()... it is also more restricted.
By isolating the functions you have achieved a more robust solution. Where at some point, one function could fail but the other two might still prove true. You could handle that with isolated functions.
Throwing all the functions into a single if() is an optimization that you would perform once the development process is done, and nothing is bound to change. However, again it's only for elegance.
-
RE: Career Question
@Ringo said:
I am a 31 year old accountant (soon to be 32!), and I was curious as to anyone's thoughts of a career change into programming at such an ancient age. I have been told that an "accounting aptitude" is virtually synonymous with a "programming aptitude" and I would have to agree with this insofar as my limited, self-taught, programming experience is concerned. How feasible is this, really?
What would you like to build (create) as a programmer?
-
RE: Name your new programming language
@R.Flowers said:
I think a really hip-sounding name for a program language would be Spank. Is it an acronym? I'm not sure yet.
How about variations on cheeses?
- C<FONT color=#ffa500>#</FONT>EDDAR
- Feta (really, good as it is)
- Swish ( = Swiss)
- Brie
Too 'cheesy?' How about languages derived from fictional detectives?
- Holmes
- Marple
- Hercule and/or Poirot
- Hammer
- Magnum (I'm really starting to like these)
- Shaft
Come on.... you're missing the obvious.....
DaVinci ( code )
-
RE: If Only
truely, the most elegent is
onclick() // mention RiX0R
{
changeState(!state)
}however this might allow the testing for multiple positions
onclick(pos)
{
changeState(++state mod pos)
}