Secrets of how to understand code written by someone else
HTML-код
- Опубликовано: 23 июл 2024
- Secrets of how to understand code written by someone else, or our past self. (see shortcuts below to key points) Adam Culp of Beachcasts php programming videos shares methods of reading the code for better understanding of what the code does. The video also highlights how to read code for beginners, as well as understanding code without running it. Then, discusses ways to enhance code to make these activities easier in the future.
Please * LIKE, COMMENT, AND SUBSCRIBE * - and share with others!
Key Topics:
- Share 6 methods to help while reading code
- Easier ways of following programming code intent
- Highlight 4 practices to make it easier in the future
- Explanation of how to understand code
For a nice list of equipment I use in my studio, and to support the channel if you make any purchases (doesn't cost you a thing), visit my kit at kit.co: kit.co/beachcasts/beachcasts-...
Errata:
Let me know if you notice anything that should be errata
Associated Links:
beachcasts.com
xdebug.org/
www.php-fig.org/
behat.org/en/latest/
phpunit.de/
www.jetbrains.com/phpstorm/
Timeline:
00:00 Video Intro
02:22 Reading code line-by-line sequentially
02:46 Following execution to learn in-depth
03:04 Using routes to pinpoint what area in code needs analysis
03:31 Observing pre-existing tests to determine what code is to do
04:19 Step-debugging to gain insight to data as the code executes
05:53 Refactoring to clean up code while gaining understanding
05:55 PhpStorm being used to refactor, extract to a new method
07:39 Coding standards to make code more readable once we understand the standard
08:53 Using frameworks, making code predictable
09:48 Use OOP Patterns to help future readers understand design faster
10:32 Automated tests help understand intent of the code later
Other Beachcasts videos you might find interesting:
Vital Tips for Learning A New Codebase Quickly • Vital Tips for Learnin...
Ways to advance your programming skills and improve as a developer • Ways to advance your p...
Make your local DEV environment available on the internet • Make your local DEV en...
AWS Elastic Load Balancer (ELB) Tutorial How-To • AWS Elastic Load Balan...
Laravel Model Factory Tutorial using Artisan make:model • Laravel Model Factory ...
Authentication in Laravel Tutorial • Authentication in Lara...
Top 5 skills to be a better software developer • Top 5 skills to be a b...
Install Laravel in Docker container on Ubuntu for beginners • Install Laravel in Doc...
Getters and Setters accessors in object oriented programming • Getters and Setters ac...
Critical programming issues preventing a PHP 7 upgrade • Critical programming i...
Behat for beginners functional REST API testing tutorial • Behat for beginners fu...
Doctrine ORM one-to-many bi-directional association • Doctrine ORM one-to-ma...
PHP Mess Detector static analysis to find PHP code smells • PHP Mess Detector stat...
Doctrine ORM one-to-many self-referencing association • PHP DoctrineORM one-to...
10 reasons to become a consultant in a consulting business • Top 10 Reasons To Be a...
Zend Framework becomes Laminas project at Linux Foundation • Zend Framework becomes...
10 bad things about consulting • Top 10 bad things abou...
How to get lines of code in PHP • PHPLoc Lines of code s...
Make a List handler middleware • List handler middlewar...
Make a Delete handler middleware • Delete handler middlew...
Make an Update handler middleware • Update handler middlew...
Use UUID with Doctrine ORM for DB keys • UUID with Doctrine ORM...
Make a Create handler middlware • Create Handler middlew...
Automate Hypermedia creation for PHP REST API • Automate Hypermedia PH...
Learn about Hypermedia and how to create it • Creating Hypermedia (H...
Doctrine ORM Paginator for PHP REST API • Doctrine ORM Paginator...
Doctrine ORM Entity how to • Create Doctrine ORM En...
Configure Doctrine ORM • Configure Doctrine ORM...
Create PHP middlware with Zend Expressive • Create PHP middleware ...
Configure PhpStorm for PHP development with Docker • PhpStorm setup for PHP...
Create PHP development environment with docker • PHP web development en...
Help through referrals:
I use TubeBuddy to help me manage my RUclips channel. If you're interested, click the following link to check it out. www.tubebuddy.com/beachcasts
#php #webdevelopment #beachcasts - Наука
That was an extremely interesting video for me, I actually got a whole page in my notebook filled out of this video :D
Thanks a lot and keep up these fantastic videos! 😊
Thanks for the valuable information!
Glad it was helpful!
thanks for the knowledge! Very useful for anybody who wants to learn programming
Glad it was helpful!
Thank you for sharing this video, it was very helpful
You're welcome. Thanks for watching.
i love this channel the education is much appreciated thanks
You're welcome. Thanks for coming by.
congratulations. the best content ive seen until now. im brasilian and my intent is to create a method to understand codes from someone else. the best tip is to resume some snipet in a way understandble.
I'm happy this helped you.
Awesome.
You're the second, but, most important with your message.
I am checking out.
Thanks for this video, although it didn't do much - it did help me a little bit. It's interesting how everyone codes differently.
Glad you found it helpful in some way. Thanks for watching.
I just started my first job as a software developer. It's really confusing looking through a massive, unfamiliar code base in a production enviroment; especially when I'm used to "academic" style code. I'm definitely going to use these tips to understand the code a bit better!
Is there a good way to understand the file structure? I get lost looking at all the folders and subfolders and figuring out where the "login" logic is...
File structure is not super important. If you're in PHP the namespaces are the most important aspect. Here is another video that may help you learn a new codebase faster: ruclips.net/video/3A41JaqKj8Q/видео.html
@@Beachcasts Bah, i have a super useful tool for debugging you ready? It's called echo for php, console.log("...") for javascript and std::cout for C++. As a full stack web developer and a C++ OpenGL graphics programmer that's all I need, NEXT!! 😌😌
very good, thank you for the video :)
Thanks for watching.
Excellent!
Glad you found it helpful.
Wow, awesome
Great video!
Glad you enjoyed it
Thanks for the knowledge but I have been learning coding with c++ but I would like to know after writing a code design and run it runs in command prompt so please how can I make it run in graphical user interface
Sorry, no experience with c++. Maybe someone else will see the comment and be able to help.
Can you upload a video regarding how to read and understand python code?
This is a great idea. Thank you. I think many of the principals are similar, but a Python version might make sense.
What about Debugging Sir.
Please include 🙏
Sir, i want to add link from meta tags on my pags buy now button. Automaticly. Piz reply me the code s🥺
Sorry, not sure what you're asking.
For more on learning a new codebase quickly, see this: ruclips.net/video/3A41JaqKj8Q/видео.html
Or for PHP related content, check out this one: ruclips.net/p/PL6_nF0awZMoOZhi2muRuXZbXlIK5TA7QR
What is the apache software foundation?
That is the foundation that supports development of many open source projects, such as Apache web server, and others. www.apache.org/
Good one cheers xD
Thank you
thanks @beachcast
Thank you for watching.
The first few tips until the step. Debugging are useful. The rest seems are not exactly for understand ing an existing code from another developer.
Glad you found it helpful. Yes, the later recommendations are more helping future folks.
Can you help me to understand coding as beginner
Many say the best way to learn is by doing. Since you are watching videos, you have hopefully continued learning.
POV: You're copying something you made months ago and now you have no idea what you wrote.
That's a tough one. I often find myself with no idea of what I wrote in the past.
read line by line
follow execution
following routes
existing states
step debugging
refactoring
code standard
using framework
OOP patterns
automate tests
Thankyou goodbye
Video starts at 2:20
Oh my god phpstorm can refactor that easily? This ide keeps surprising me 😂
There's always something new to learn with IDEs.
Am I just stupid? At this point I just feel like I'm stupid.
I try so hard to follow execution, make sense of traversing code paths and understanding what things are doing but where there is a lot of it's like I'm lost in a maze and I get overwhelmed..
I've been programming for 6+ years and I still get hung up on this and it's really disheartening,
Almost to the point of making me want to quit the industry feeling as I'm not cut out for it.
I'm student of computer science as bscs
Hope you found it helpful.
start after 2min
Glad you found it helpful.
need help ...😳😳
Hope you're doing better.
Your presentation to fast , how can I understand any source code and debug if necessary
This video is definately a thumbs down for me. :( The key aspects to reading code is coming to a quick conclusion of the bounds in which the code is running. Is it a web app, console, GUI, or game? windows or linux? Is it written using OOP, procedural, functional or MVC? Is it database driven, framework, ORM or using a file store? Is it full of third party hooks or REST APIs? Once you figure out these you then tackle it at the language level. If you have little experience with language being used the you will have to keep the documentation of the language close at hand.
Thanks for watching. Good to see the video got you thinking. Agree, having a language reference handy is a great tip.