CUSEC 2016 - How to Read Unfamiliar Code by Josh Matthews
Ғылым және технология
Reading code is a skill, and one that is often neglected in formal computer science instruction. We learn how to read and write syntax, and sometimes even recognize design patterns, but diving into a new codebase can feel intimidating. Never fear - there are lots of tricks and strategies to make our job easier! We'll cover both mental and digital tools, and walk through a case study of exploring a large codebase for the first time.
Пікірлер: 17
- Start from some unique signals for your starting jumping point. Search and reduce your target files. - It's inefficient to read from top to bottom. Use commit history to target a smaller scope. - Write down what you read, even if that doesn't make sense at the moment. BFS instead of DFS. Build a priority queue to focus on things that matters. - The relationship to other part of the program. Run some snippet, isolate the code, use breakpoint, use logs. Get call stacks and understand the relations. - Link things you don't know to things you know, and follow things that you are able to understand in short period of time. This gives you more jumping points. - List things you need to understand, things you already know, and jumping points that are highly helpful. - Repeat keyword search and read if necessary.
This is an incredible talk. A lot of the things that are described here I've felt a strong need for clarity on in my programming. For those that stumble on to this, do not underestimate how essential these tips are. The feeling of overwhelm, discouragement, wasting time, etc. can feel brutal in a coding environment.
Super talk, very professional and to-the-point while also being quite interesting. The enthusiasm is inspiring.
This is extremely helpful. Thank you
Thank you. very helpful.
next time film the presentation itself, not the presenter...
@gongfei
4 жыл бұрын
The first search result from googling "How to Read Unfamiliar Code by Josh Matthews" ---- www.joshmatthews.net/cusec16/unfamiliar.html so. everytime, I'd google before complaining it.
can someone share the link for lindsay cooper and area steuart blogpost mentioned in the vides, I can not find it?
@hwangroman
4 жыл бұрын
Here is a link to Aria Stewart talk about reading code: kzread.info/dash/bejne/X3-bt5esqKrapbA.html I was also trying to find Lindsay Cooper blog post, but couldn't.
nice video, it will be better if we can see the presenter screen.
Modern code is too complex for an average human to parse. Good talk on this titled (I think) "the mess we are in".
so it's basically a puzzle !
@iruga7379
2 жыл бұрын
Thats a good analogy and i love game puzzles.
Ummmmmm no slides on a code reading video? Cmon….
Cause an error and get call stack. Do it repeatedly till you get a good overview which can be recreated as a directed graph. This talk is a mess: just throw a lot of ideas at people and see what sticks, something should stick for everyone ;).