Follow

As a full-time programmer for > 12 years, my favorite trick is still using search to navigate large codebases:

Search for a function name you remember vaguely, then in results:

foo();
foo() <— no semicolon! Implementation!
foo();

In C++, search for ::foo often works, too.

@uliwitness in languages with the function keyword, "n foo" also tends to work pretty well!

@uliwitness Better, use ctags. You can configure a lot of editors to auto-run ctags, and then have a nice dropdown of names.

@mdhughes There are so many things I could configure and set up and keep updated and resolve conflicts in ... or I could just train workflows that work with the standard installs of those things and get work done ... it's always a trade-off between the two.

@uliwitness You only have to learn ctags once, and the config once per editor.

xkcd.com/1205/
I'd say 50/day, 5 seconds each, means it's worth spending 5 days on ctags! (it won't take 5 days)

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!

We adhere to an adapted version of the TootCat Code of Conduct and follow the Toot Café list of blocked instances. Ash is the admin and is supported by Fuzzface, Brian!, and Daniel Glus as moderators.

Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!