3 ms·
the biggest leap in productivity i've experienced is after i tried parinfer (https://shaunlebron.github.io/parinfer/ https://shaunlebron.github.io/parinfer/). s
by keymone 10y ago
the biggest leap in productivity i've experienced is after i tried parinfer (https://shaunlebron.github.io/parinfer/ https://shaunlebron.github.io/parinfer/). seriously, just find the plugin for your editor, it is amazing, the cognitive load of balancing is simply gone.
- harperlee 10y agoI agree with this. I believe failing to recommend parinfer to a newbie doesn't make sense in any case, as it binds a very common issue for newcomers (the parentheses management) with something that is very intuitive, indentation with meaning, which in my opinion is part of the huge success of python.
- susi22 10y agoI used parinfer for a 1-2 months. Then I quit and switched back. Wayyyy too many silent errors that get introduced and you don't notice them until runtime. Especially if you edit code that other people wrote. I've also seen at least 4 people in the chats/forums that had errors because of parinfer. So no, I won't recommend it to a beginner.
- harperlee 10y agoOk, that's a fair point. If you open code indented somewhere else, there might be changes. In my experience, as my IDE (Intellij Idea) highlights lines that are changes for git, these errors are trivially detected. But perhaps for a newbie, this could be confusing? In any case I still think it is a net win.
- markc 10y agoCoded Clojure for years, including w/ Paredit and I find Parinfer extremely frustrating as it fights my edits and sometimes creates syntax errors - in the Atom Parinfer in indent mode anyway. Maybe other implementations are better? Or do I just have to "unlearn" a bunch before I can relax and let the magic flow? Cuz as it is, Parinfer makes me nuts.
- juskrey 10y agoSame here. Final formatting is the same, but parinfer significantly decreases options to reach it.
- keymone 10y agothe only issue i've seen with parinfer is that i can get confused when you have multiple forms within single line, it can sometimes inadvertently slurp the rightmost forms and i have to go and insert closing parens manually. that doesn't happen often though, otherwise it's been very smooth for me. i imagine that when one is fluent with paredit and structural editing, parinfer can feel like a step back, but for newbies it is the first thing i will always recommend.