DEV Community

Discussion on: Getting started with a project written by another developer

Collapse
 
ferbs profile image
Jeff Ferber

Using and/or adding automated tests is the most productive thing you can do. If there are no tests yet (an unfortunately common case) adding the first might be an expensive initial investment but generally proves out to be the best possible use of time.

Also, rather than reading the code as text, interact with it using a debugger. Configuring a debugger in your IDE isn't pleasant but usually not too hard if the src runs on your local system. (It can get painful if running remotely or in a Docker container but even so worth a try, look for articles.)

Collapse
 
rhymes profile image
rhymes

I always start from tests and putting breakpoints in random places and see how i can hit them :)

Collapse
 
ferbs profile image
Jeff Ferber

Nice. It's weird but setting up an IDE's debugger seems to have exceptionally high mental activation energy. Am guilty myself--didn't touch it for years. And when my wife started learning to code, she wasn't shy about telling me where to shove my debugger. :) For non-html projects, I've noticed too that only a small portion of even fairly senior coders set it up.