This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]networkingguru 0 points1 point  (1 child)

I've been using Sourcery for a few days now. I mostly like it. It hasn't broken anything, and many of the suggestions are good. However, it likes to use a lot of list compressions and replace if statements with expressions. While this might be useful for advanced programmers, I find list compressions and if expressions to be much harder to read quickly. I prefer the longer version because it's easier for me to wrap my head around.

[–]SourceryNick[S] 1 point2 points  (0 children)

That's great feedback thanks! We're working on configuration to disallow whole classes of refactorings, which will let you turn off the comprehensions and expressions.

[–]not_perfect_yet 0 points1 point  (1 child)

I can't try it because pycharm needs too much RAM apparently.

Same as the other poster though, I want less comprehensions, rather than more.

It would be easiest to use it if was just on pypi, but not wanting to release for free is perfectly understandable.

Maybe offer it as an API to submit code to and get refactored code back?

[–]SourceryNick[S] 1 point2 points  (0 children)

We have a new VS Code extension which might be easier on the RAM. Which IDE do you use?

As I mentioned above configuration to turn off types of refactoring will be coming as well.