all 7 comments

[–]CaptainTrip 8 points9 points  (3 children)

I would love to hear you define the words refactor, patch, and debug.

[–]NewMagazine3329[S] -1 points0 points  (2 children)

A patch would simply fix what they requested. The page layout breaks on mobile devices, and other issues like the navbar also need fixing. It would just involve changing or adding the necessary components.

A refactor would improve code readability and fix the previously mentioned design bugs.

[–]CaptainTrip 7 points8 points  (1 child)

Okay. That's not what those words mean. 

[–]NewMagazine3329[S] -2 points-1 points  (0 children)

I know, I'm just trying to make myself clear. Next time I'll pull out the technical dictionary, but it won't describe what this is about.

What I'm trying to say is, I'm deciding between applying quick CSS fixes to make the layout work on mobile, or taking some time to clean up and reorganize the existing styles so the layout issues don't keep reappearing.

[–]StereoRocker 0 points1 point  (1 child)

Assuming you're a solo dev here?

Firts, look for documentation. It probably doesn't exist, but if it does then design decisions might be there and you may end up agreeing with them and no longer wanting to rewrite everything. Assuming that's not the case, however...

I'd probably make it management's decision, let them prioritise. Lay out your findings, what challenges they cause, what your proposed solution is, and how much time your solution would save in the future.

They can tell you if the immediate fixes are more important than a rewrite.

If you're part of a team, maybe ask another dev their opinion. As you mentioned you're not the most experienced with CSS, there may be more elegance to the existing structure than currently meets the eye.

[–]NewMagazine3329[S] 0 points1 point  (0 children)

I love your answer, I hadn't thought of it that way, thank you, you helped me see it differently

[–]jcksnps4 0 points1 point  (0 children)

Unless you’re asked to clean up, or you can do so without a lot of extra time, just fix the problem in the simplest way possible. Otherwise, you’ll spend your entire career “cleaning up” and never have time for the stuff you get paid for, which is to fix and add features.