Implement DRY principle in app/compile.py
#4
Labels
enhancement
New feature or request
good first issue
Good for newcomers
hacktoberfest
help wanted
Extra attention is needed
Summary
The code we use to compile/interpret code snippets have not followed
DRY
(Don't Repeat yourself) Principles that well . A more functional( or OOP based , functional preferred though) approach towards compiling a code sample ( optional ) and running a code sample would yield a better code reusability metrics.It should also help us cover more ground , i.e. support more languages.
Hints:
This can be achieved by breaking down compilation and running into two different functions followed by one function that will take in the language and code snippet, which would decide what needs to be done for the given language.
The text was updated successfully, but these errors were encountered: