|
Nah ... no dilithium!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I can neither confirm nor deny the presence of dilithium onboard the carriers. I can confirm the presence of deuterium oxide, but not the amount of deuterium oxide.
|
|
|
|
|
|
YES! UNIT TESTS.
And Integration Tests! If it's spaghetti code to start with then it probably has some pretty heavy dependencies on other classes, too. Don't mock or stub out those other classes. It's the only way to be sure.
Once you've stepped through every line of code and you have 80% + coverage of the class YOU will be THE expert.
Refactor the code with no logical changes on one change set. No bug fixes or enhancements allowed. Add lots of comments as you figure out why some line of code was added that seems counter-intuitive! Add a unit test to cover that line so that if anyone ever changes it or inverts the logic your test will catch it.
After the refactor, knock yourself out. You are now the SME.
|
|
|
|
|
So you need two developers to agree on some code to send it on, toward production?
How often that happened?
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
|
|
|
|
|
Kornfeld Eliyahu Peter wrote: How often that happened? Probably oftener than being agree with management
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I have some disagreements with management, but never about code!
All I need is a co-worker to block my code, because 'I would do it otherwise'...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
|
|
|
|
|
|
Refactoring code is generally seen as fairly high risk when there is a lot of code to change.
Do you use unit tests much where you work?
I would write some unit tests for the current code then refactor to prove that the unit tests are not broken.
Of course - the proof of not having broken anything will only be as good as your unit tests.
Good luck!
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
I think you may have started another "colour of the bike shed thread".
The premise being that in complicated decisions like approval for changes to a Nuclear reactor - everyone thinks its so complex they approve because someone else will have checked before them. But when choosing which colour to paint the bike shed - everyone wants to leave their mark - and so there can be no agreement on the best colour.
DO a google search - I'm sure the original discussion is described better than mine
|
|
|
|
|
That sounds like a variation of the Two Dances One Liquor pattern to me.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
If your bathtub has become boring and uninteresting: Go take a bath in it![^]
Edit: You can also use the tub as a tank![^]
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.
modified 20-Aug-18 4:41am.
|
|
|
|
|
Some people has WAAAAAY too much time on their hands!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
|
|
|
|
|
In reality we would lead a boring life if it were not for such wacky projects.
The big question is, where is this reality place and what must I do to never end up there?
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.
|
|
|
|
|
Call me "Old Fashioned", but the way to make a bathtub more fun is to invite an attractive young lady to help you scrub. Preferably . . . (if you don't get it you never will; go build a sub).
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
A backwards state contains Chicago and it surrounds Atlanta; it's just confused not wrong, but the result's a tie! (8)
LIGATURE
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
modified 20-Aug-18 8:04am.
|
|
|
|
|
Standoff ?
All I saw was "tie! (8)" not the rest.
... such stuff as dreams are made on
|
|
|
|
|
Nope!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Phew! I didnt want to do it anyway : )
... such stuff as dreams are made on
|
|
|
|
|
Bootlace ?
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Nope!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
On the right track ?
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
Not really. Difficult to say without giving it away here!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Hogchain ?
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
I didn't even know that was a word until you used it, so "nope".
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|