I just set up VS Code for debugging (I was previously using Netbeans). I also set up auto formatting and linting using rubocop. I should have been using this a long time ago. My project shows almost 16K warnings.
It was very educational but there are a few cops that don’t make sense to me. Specifically rules for length of modules, classes, and methods.
Seriously I can’t draw this door in a method of only ten lines. May be I should have a separate method to draw each part of the door? But then I can’t even draw it on a class or module of only 100 lines.
What is the proper way to do this? I realize I should probably have a class with properties describing the door, and then have a
draw_doormethod rather rather than passing all the properties to the method.
How can I make my code more manageable?
@medeek How do you handle this? I’m sure you have some long… calculations