Back to Browse

Code smells and feels

16.4K views
Jul 21, 2018
55:03

Jenny Bryan with R Studio presents on “code smell” and feels along with an exercise throughout the presentation. "Code smell" is an evocative term for that vague feeling of unease we get when reading certain bits of code. It's not necessarily wrong, but neither is it obviously correct. We may be reluctant to work on such code, because past experience suggests it's going to be fiddly and bug-prone. In contrast, there's another type of code that just feels good to read and work on. What's the difference? If we can be more precise about code smells and feels, we can be intentional about writing code that is easier and more pleasant to work on. I've been fortunate to spend the last couple years embedded in a group of developers working on the tidyverse and r-lib packages. Based on this experience, I'll talk about specific code smells and deodorizing strategies for R. Main Sections 0:00 Introduction 8:58 Code smell 9:09 Refactoring 16:00 Refactoring, simplifying conditional expressions 16:28 Bizzaro Exercise with tips 43:45 Review 45:55 Questions More Resources Main Site: https://www.r-consortium.org/ News: https://www.r-consortium.org/news Blog: https://www.r-consortium.org/news/blog Join: https://www.r-consortium.org/about/join Twitter: https://twitter.com/Rconsortium LinkedIn: https://www.linkedin.com/company/r-consortium/

Download

1 formats

Video Formats

360pmp475.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Code smells and feels | NatokHD