Open anapaulagomes opened 7 years ago
Just trying to understand before digging into code...
Answering the questions:
self
on parameter list; the project is quite in the beginning but the idea is to have an abstract implementation to any language; but current, we have methods to "clean" the method list: https://github.com/anapaulagomes/looong/blob/d384a03f74a51bd6fe8c4275dbf50d721e343be2/looong/extractor.py#L41By the way, I'll write more about it on README. Thanks!
- I'm not sure if this problem is recurrent in Python but in languages like Java (the language that I was programming at the time I began this little project) methods with long parameter list pointing to a problem with OO principles. One of the approach to solve is creating objects with the parameters that appear more together. Makes sense?
From the README, it wasn't clear that this library should be used as a tool to other languages, not just Python. Having this in mind, I think there are other conditions I should be considering. I still don't know to proceed considering that newly presented context.
I'll just reply about the other bullet points later.
The idea is making this configurable. But this is an MVP, so we should just think about Python. But I don't see any trouble because in the end the analysis will be made on top of a list of words.
After finding the top 10 methods with long parameter list smell, we should suggest which objects could be created according to the parameters who appear together. For instance:
Goal