I changed
code from script- to class-based & now all my tests are broken. I guess this = why proletariats hate object orientation. *hides*
-
-
If you use a refactoring approach you can keep working code as you gradually change. First struct->class, then each function->method 1 by 1.
-
I think you need to explain this a little more. Sorry!
-
instead of changing to your desired structure in 1 go, find a path of *tiny* changes to get there, fix tests after each. Known to be safer.
-
Ah, gotcha and thanks. So thankfully it's not that much code so it was only a single class that needed to be made and now I have converted
-
the tests and am adding new ones. So far all work.

-
I think what I have learned from all this is that converting to class is very useful and I should have gone OO earlier. I have actually kept
-
the script way — just for fun. Although I might delete it just to keep the repo tidy.
End of conversation
New conversation -
-
-
It's thankfully easy.
-
So your computer is safe for now ;)
End of conversation
New conversation -
-
There is no script, there is only OO.
-
ComOOnism.
-
Only zOOl can save you. Just give in.
- End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

