News for hackers. Stuff that matters.
Re:What I Wish I Had Known About Developing C/C++ From Linux... by jballanc on Tuesday April 21, 2009 @09:55PM (#573373)
In Vim, install ack, then put "set grepprg=ack" in your .vimrc. Then, open your project in Vim, do a ":grep <your-symbol-here>", and use ":cn", ":cnf", ":cp", ":cpf", ":cr", etc. to move about. Combined with strong knowledge of setting marks and using ":s/" substitutions, and I often wonder how people who use IDEs do refactorings! ;-)
Re:What I Wish I Had Known About Developing C/C++ From Linux... by miloshh on Tuesday April 21, 2009 @10:08PM (#573390)
I think you misunderstood what refactoring means in an IDE. Suppose you want to rename a method. There might be many other methods of the same name in different classes, local variables of that name in other methods, or even classes with that same name in differen packages. Eclipse automatically does all of this for you.

I honestly don't understand how regexps and strong bookmarking skills could help you - the editor needs true knowledge of the language to carry out this task.

Re:What I Wish I Had Known About Developing C/C++ From Linux... by kingkongrevenge on Tuesday April 21, 2009 @11:48PM (#573480)
I doubt it's realistically possible for this to work reliably with C++. How could the parser deal with a predeclared type pointer in a header file that is resolved at link time? How about unions?