Hacker News new | ask | show | jobs
by mijoharas 4188 days ago
I often have the same problems as you (and I have to say, I constantly forget whether it's push/append too, even in my most commonly used languages).

My solution to the problem has been to setup my development environment to provide the requisite autocompletion and linting (I use emacs with the brilliant spacemacs package to be able to have "the one IDE for all languages").

It takes a bit of setting up for each language you use, but if you do the setup on an as-and-when basis it's not that bad (and "starter-packs" that have packages that work together are great)

2 comments

I don't dip into emacs often, but I do like that idea. I'm sure some vim ninjas have you-complete-me and such setups that handle basic language functionality, but I'm always too lazy to get it set up in a permanent manner.

Someday when I get sick of firing up python to quickly check that you append() to lists instead of push or add...

spacemacs looks amazing, thanks for that!
I have to say, it's the best editor experience that I've found by a long way. In addition the developer Sylvain is incredibly helpful.
If it weren't for the other comment, I wouldn't have realized that's spacemacs is some sort of vim(evil)+emacs beast... Installing now. :)