|
Style never makes up for lack of skill.
But why not have skill and style
|
|
|
|
|
Style should be only a matter of choice, point of view of the reader or writer. Saving the code should be style independent and be given by the grammar of the language. I have experienced "git" fundamentalists who have banned the use of high level XML editors (= even for web.config, etc.) because saving in a different style evokes file changes. So you must not use advanced XML tools, etc. In a word, you must be a stupid programmer. As long as IT focuses only on technology and business logic is a minor matter, we will still have to deal with 90 to 95 percent of the time with uselessness and not with useful programming. So we will come up with new languages and practices (like DevOps) and increase Babylon. After all, guessing what the program is doing (for all hell) is amazing fun, isn't it?
|
|
|
|
|
Super Lloyd wrote: Avoid excessive inheritance
Quote: A type is more than four levels deep in its inheritance hierarchy.
Wow. I have seen samples to teach about inheritance which already are 'excessive' by this definition.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Static code analysis gives you an indication where your code might not be optimal. It is not like they are carved in stone.
It's like going to a doctor; checking helps to prevent larger issues and doesn't cost much, but you are still allowed to ignore the warnings about your smoking-habits.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
This particular doctor costs more than it's worth by mindlessly applying rules which are so restrictive that even code samples are already 'excessive'. What would you say about a doctor who at the same time lectures you about eating too much and doing too much physical work? An apple and some bird seeds may be enough for a supermodel, an athlete would not come very far if he tried that.
As we know, computers do not really shine when it comes to good judgement and intelligently combining separate results. That's also why I see the current AI hysteria with horror. I would sooner let a trained monkey drive my car than a computer. This thing here is not quite as dangerous. It just wastes my time with countless irrelevant warnings and drowning out the relatively few ones that might be relevant.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Turn the rule on to not waste an hour of your life with code analysis.
You either write good code or you don't. Empower yourself, not the machine.
|
|
|
|
|
The frustrating bit is.. I spotted a few useful tips... but there is like 400 messages for one assembly, of which maybe 5 messages are useful. But in the end I search and find these messages like once a year... I am never gonna scan them all successfully on every compile or even once every day...
And then.. it's working less and less well to turn them on and off.. (between each edition of visual studio) but that might be because I have the Community edition at home. Going to check pro edition at work tomorrow! Would be good to know if professional works better.
|
|
|
|
|
Super Lloyd wrote: I told it to ignore rule 2208 Do you like to run around in a bathrobe all day ("Execute order 66!") or do you prefer something more colorful ("Implement General Order 24!")?
Every nerd who knows what I am talking about may drop a comment
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
I am gonna order 66 the godamn code analysis extensions!
|
|
|
|
|
Not General Order 24, just to be sure?
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
|
Order 66 is from Star Wars, General Order 24 from Star Trek. It may be unusual for the 'good guys', but in some situations you must show your muscles when someone does not want to listen to anything else. They would probably not have had to go all the way to the bitter end, but anything less would end any hope of avoiding it altogether. War is a messy business.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
I like your comments about wanting the freedom to change styles over time. In general we are getting sick of 'Nannyware' that keeps telling us what to do or not to do.
|
|
|
|
|
Thanks man, glad the feeling is shared!
And indeed I have heard less complaint about consistent style those last few years...
|
|
|
|
|
|
I already read the books!
|
|
|
|
|
So did I - then I watched Series one. Both telling the same story, both very good. But both doing it differently.
It is worth watching the TV series after reading the books - and I'd be damn sure it's worth doing the other way as well.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: "I'm free right now." Ooh, is that you Mr. Humphries?
|
|
|
|
|
Making the missus watch all the prior episodes with me in anticipation.
"Never attribute to malice that which can be explained by stupidity."
- Hanlon's Razor
|
|
|
|
|
Tried to get my prettier half to watch the first season. She dislikes having to use her higher brain functions to understand what is supposed to be simple escapism. Halfway into the first episode, she noped herself into the next room and found something else to do. Sigh.
|
|
|
|
|
Been waiting for that one for a long time.
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
Hmmm,
The project I am on at the moment has decided to write tests one way, the standard way is different.
This led to P.M. taking on my Boss for what appears to be a battle of wills...
Have other people experienced this, what is the correct office behaviour, despite my desire to get some pop corn and sit back and watch the fire works, I feel the desire to no longer be around I am looking for a test that requires some kit in another building...
|
|
|
|
|
If there is an accepted practice for testing your product, you should IMO follow the accepted practice. If this is merely a difference in preferences between the PM and your boss - let the popcorn flow!
In neither case should you get involved; there is a lot to lose, and very little to gain.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel is right: if you get involved, you will lose whichever way it ends up.
Go find another job to do - a useful one is good - until the dust settles!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|