JSJ 408: Reading Source Code with Carl Mungazi episode artwork

EPISODE · Nov 19, 2019 · 55 MIN

JSJ 408: Reading Source Code with Carl Mungazi

from JavaScript Jabber · host Charles M Wood

Carl Mungazi is a frontend developer at Limejump in London. He is a former journalist and switched to programming in 2016. Today the panel is discussing the benefits of reading source code. Carl began reading source code because he came into programming late and from a different field. His first project was with Mithril, and he read the source code and documentation to help him understand it. The panelists discuss how reading the source code has helped them and others to improve their coding. They compare reading and understanding source code to learning a foreign language, and discuss  different methods. Carl gives some suggestions for reading source code effectively. He advises people to be patient and step through the code. Accept that you will probably take a wrong path at some point or another, but the more you read, the more you will see patterns in how libraries are structured. He also encourages listeners to approach the authors, as they are often happy to lend a hand. Reading source code is an active approach of stepping through, debugging, putting in break points, checking the stack, and so forth. It’s also important to do outside research. Since he has been reading source code, Carl has come to prefer plain JavaScript and libraries with as little code as possible. The panel discusses the benefits of small, simple libraries. Carl gives examples of techniques that he learned from reading a library source code and how he applied it to his own coding style. Reading source code has made him more careful about mixing logic and UI, and now he separates them. He also is more confident in seeing a problem, going to a preexisting library, and just importing the fix for that problem rather than the whole library. Reading source code is really about understanding the code you use in your project. It may slow you down, but you’ll be thankful in the long term because it will help you solve future bugs more efficiently. Carl talks more about his debugging process. He still relies on a debugger, but reading a library helps you to see patterns and guess the output of a function. These patterns persist in other libraries as well. Once you can guess correctly what will happen, you go back to reading the code and find instances where the output is unexpected, and fix it. Carl’s closing thoughts are that through reading source code, he has learned that although code is used differently in each library, they are all written in the same language, and therefore interrelated. This gave him more confidence in reading code because they’re all fundamentally the same. When a bug is discovered, he encourages listeners to look at the source code before googling a solution. PanelistsAJ O’NealDan ShapirSteve EdwardsCharles Max WoodGuestCarl MungaziSponsorsHasura.io Sentry | Use the code “devchat” for $100 credit Adventures in AngularLinksMithril.jsPreactLimejumpPicksAJ O’NealZen of PythonThe Go ProverbsGo with VersionsLink’s Awakening soundtrackDan ShapirProgramming Pearls book Lord of LightSteve EdwardsJabra Elite 65TCharles Max WoodGarth BrooksThe Rocky moviesCarl Mungazi Follow Carl @CarlMungazi and carlmungazi.comEcmaScript SpecHTML 5.2Snarky PuppySpecial Guest: Carl Mungazi. Support this podcast at — https://redcircle.com/javascript-jabber/donationsPrivacy & Opt-Out: https://redcircle.com/privacyBecome a supporter of this podcast: https://www.spreaker.com/podcast/javascript-jabber--6102064/support.

Episode metadata supplied by the publisher feed · Published Nov 19, 2019

Embed this episode

Ready to play

JSJ 408: Reading Source Code with Carl Mungazi

0:00 55:32

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

BAT Community Podcast BAT Community & Brave Basic Attention Token (BAT) is a revolutionary digital advertising and rewards platform from the inventor of JavaScript and co-founder of Mozilla and Firefox that rewards users in Ethereum-based BAT tokens. Brave is a fast, BAT-powered privacy browser that blocks all 3rd-party ads and trackers by default. Learn more about BAT, Brave and tech with this podcast! Over Engineered Chris Morrell A podcast where we explore unimportant programming questions (mostly PHP/Laravel/JavaScript) in extreme detail. Web Development Fundamentals - SOFT6007 Dcom1 Colin Manning Web development technologies such as HTML, CSS, JavaScript and others are at the core of all modern online systems. This module introduces the student to these technologies and provides the student with the skills necessary to develop web sites with dynamic presentation. JS Party: JavaScript, CSS, Web Development Changelog Media Your weekly celebration of JavaScript and the web. Current panelists: Jerod Santo, Kevin Ball (KBall), Nick Nisi, Chris Hiller, Amal Hussein & Amy Dutton.Past panelists: Suz Hinton, Feross Aboukhadijeh, Amelia Wattenberger, Divya Sasidharan, Alex Sexton, Rachel White, Emma Bostian, Ali Spittel, Mikeal Rogers & Jessica Sachs.We talk about the web platform (Chrome, Safari, Edge, Firefox, Brave, etc), front-end frameworks (ReactJS, SolidJS, Svelte, VueJS, AngularJS, etc), JavaScript and TypeScript runtimes (Node, Deno, Bun), web animation, SVG, TailwindCSS, robotics, IoT, and much more. If JavaScript and/or the web touch your life, this show’s for you.Some people search for JSParty and can't find the show, so now the string JSParty is in our description too.

Frequently Asked Questions

How long is this episode of JavaScript Jabber?

This episode is 55 minutes long.

When was this JavaScript Jabber episode published?

This episode was published on November 19, 2019.

Can I download this JavaScript Jabber episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!