DEV Community

Discussion on: How do you get familiar with a new codebase?

Collapse
 
atsmith813 profile image
Alex Smith

Agreed - reading tests is one of my first steps. It helps that (hopefully) they're written with both a positive assumption (i.e. passing valid arguments) and negative assumptions (i.e. passing invalid arguments). It's quick to get a sense of what the code is supposed to do.

There was a time where I went deep in the rabbit hole in the specs of the codebase...turned out the specs were way out of date πŸ™ˆ

At risk of going on a slight tangent, do you use rg with VIM? I've read mixed reviews about switching away from silver searcher with VIM which has made me hesitant about switching at all πŸ€”

Collapse
 
rhymes profile image
rhymes

I use rg in the terminal. My editor of choice is Sublime Text 3 (its builtin search is a bit slow)