DEV Community

Discussion on: Help Me Refactor dev.to's Markdown Service!

Collapse
 
nhh profile image
Niklas

Why do you use classes here? As i understand there is no reason to instantiate the MarkdownFixer. A module could be a more meaningful solution. What do you think? 😁

Collapse
 
nhh profile image
Niklas

Another more dry approach:

Collapse
 
nhh profile image
Niklas

What do you think about this: :)