Write READABLE CODE and become a better developer!
How folks, welcome to Not Only Code!
I'm Gregory Witek and in this video I'm talking about readable code: what does it mean that code is readable? How to write readable code? I explain why code readability matters and I present 5 techniques that you can start using today, that will make your code better and will help you to become a better software developer.
🎥 Timeline:
0:00 Introduction
0:45 Why code readability is important
2:40 Using white space
3:40 White space example
6:10 Happy path first
7:40 Happy path example
9:00 Use early returns
9:50 Early return example
11:14 Don't reassign variables
15:30 don't use name "data"
16:20 Summary
If you have any questions or comments, drop me a message:
✉️ gregory@notonlycode.org
🌏 https://www.notonlycode.org
🐦 @GregoryWitek
📚Resources:
when preparing this episode I started from learning how we, humans, read in general. I've always known that reading is a complicated process, and reading about reading (yup!) helped me to understand both the visual and semantic aspects of readable code.
* https://en.wikipedia.org/wiki/Subvocalization - most of us have inner monologue (kind of a voice in our head) and when we read, we vocalize the text in our mind; this process is called subvocalization
* https://en.wikipedia.org/wiki/Saccade - when reading, our eyes do not move smoothly from one word to another, but rather jump and stop between them in so called saccadic movements
* https://medium.com/@matryer/line-of-sight-in-code-186dd7cdea88 - post by Mat Ryer where he explains the idea of aligning the happy path to the left. This concept helped me understand better why early returns improve readability
* https://www.poodr.com/ - "Practical Object-Oriented Design in Ruby", a book by Sandi Metz. This book is about much more than just readable code, but I recommend it to every developer, even if you do not use Ruby at all
Видео Write READABLE CODE and become a better developer! канала Not Only Code
I'm Gregory Witek and in this video I'm talking about readable code: what does it mean that code is readable? How to write readable code? I explain why code readability matters and I present 5 techniques that you can start using today, that will make your code better and will help you to become a better software developer.
🎥 Timeline:
0:00 Introduction
0:45 Why code readability is important
2:40 Using white space
3:40 White space example
6:10 Happy path first
7:40 Happy path example
9:00 Use early returns
9:50 Early return example
11:14 Don't reassign variables
15:30 don't use name "data"
16:20 Summary
If you have any questions or comments, drop me a message:
✉️ gregory@notonlycode.org
🌏 https://www.notonlycode.org
🐦 @GregoryWitek
📚Resources:
when preparing this episode I started from learning how we, humans, read in general. I've always known that reading is a complicated process, and reading about reading (yup!) helped me to understand both the visual and semantic aspects of readable code.
* https://en.wikipedia.org/wiki/Subvocalization - most of us have inner monologue (kind of a voice in our head) and when we read, we vocalize the text in our mind; this process is called subvocalization
* https://en.wikipedia.org/wiki/Saccade - when reading, our eyes do not move smoothly from one word to another, but rather jump and stop between them in so called saccadic movements
* https://medium.com/@matryer/line-of-sight-in-code-186dd7cdea88 - post by Mat Ryer where he explains the idea of aligning the happy path to the left. This concept helped me understand better why early returns improve readability
* https://www.poodr.com/ - "Practical Object-Oriented Design in Ruby", a book by Sandi Metz. This book is about much more than just readable code, but I recommend it to every developer, even if you do not use Ruby at all
Видео Write READABLE CODE and become a better developer! канала Not Only Code
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![How to Get Promoted - Becoming a Senior Developer #7](https://i.ytimg.com/vi/EWtyK2SSWqU/default.jpg)
![5 different ways to get a job as a software developer](https://i.ytimg.com/vi/saBZV12XR9I/default.jpg)
![become a BETTER SOFTWARE DEVELOPER with a pyramid of skills](https://i.ytimg.com/vi/2y2zXgyF_SM/default.jpg)
![To All Junior Developers Looking for a Job in Pandemic](https://i.ytimg.com/vi/kzG3SeKmGP0/default.jpg)
![Leadership for introverts: can introvert be a good manager?](https://i.ytimg.com/vi/WY5tcz8voVo/default.jpg)
![Should engineering managers write code?](https://i.ytimg.com/vi/yBbYJSRYWvo/default.jpg)
![5 ways to improve programming skills](https://i.ytimg.com/vi/D0tGKfb-fLk/default.jpg)
![Cover letters for software developers - you DON'T NEED them!](https://i.ytimg.com/vi/rzq2Qf7gIu0/default.jpg)
![How to talk to micromanager - Things Developers Hate #3](https://i.ytimg.com/vi/vKm7RKE2Rls/default.jpg)
![How to do Good Code Reviews in 5 Steps - Becoming a Senior Developer #6](https://i.ytimg.com/vi/bEShvpcbD84/default.jpg)
![How to write good code? Look at it and ask these questions!](https://i.ytimg.com/vi/i60Hnhuf6EE/default.jpg)
![How to negotiate salary as a software developer (when you lack confidence)](https://i.ytimg.com/vi/g12Sd4-zRc8/default.jpg)
![Build your own Python unit test framework in 100 lines of code - part 2](https://i.ytimg.com/vi/dl_vjsG2F8E/default.jpg)
![Soft skills FOR SOFTWARE DEVELOPERS - the key to a successful career](https://i.ytimg.com/vi/4O7nF7xnO-U/default.jpg)
![Cursed promotion - when you're not ready for your new role](https://i.ytimg.com/vi/MbJ9Gc4qD1E/default.jpg)
![Reading software developer job descriptions part 2 #shorts](https://i.ytimg.com/vi/-eseANe5Q5c/default.jpg)
![Dealing with Deadlines - Things Developers Hate #1](https://i.ytimg.com/vi/6d3g-OItF2k/default.jpg)
![How to become a tech lead or engineering manager | leadership for software developers](https://i.ytimg.com/vi/UmAcVmUk-gc/default.jpg)
![Choose Your Next Programming Language - Becoming a Senior Developer #8](https://i.ytimg.com/vi/eWbp2hohBHQ/default.jpg)
![LIVE: Is engineering management for you? and other tech career questions](https://i.ytimg.com/vi/5F920FbIk0s/default.jpg)