Secrets of how to understand code written by someone else

2024 ж. 24 Мам.
68 193 Рет қаралды

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 KZhead 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! 😊

    @FABESTAH@FABESTAH Жыл бұрын
  • Thanks for the valuable information!

    @BMNAkash@BMNAkash3 жыл бұрын
    • Glad it was helpful!

      @Beachcasts@Beachcasts3 жыл бұрын
  • i love this channel the education is much appreciated thanks

    @lastregone4026@lastregone40263 жыл бұрын
    • You're welcome. Thanks for coming by.

      @Beachcasts@Beachcasts3 жыл бұрын
  • Awesome. You're the second, but, most important with your message. I am checking out.

    @mikediaz9033@mikediaz9033 Жыл бұрын
  • Thank you for sharing this video, it was very helpful

    @nicholascummings9084@nicholascummings90843 жыл бұрын
    • You're welcome. Thanks for watching.

      @Beachcasts@Beachcasts3 жыл бұрын
  • thanks for the knowledge! Very useful for anybody who wants to learn programming

    @stef6963@stef69632 жыл бұрын
    • Glad it was helpful!

      @Beachcasts@Beachcasts2 жыл бұрын
  • 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.

    @joaovitor-vw5pq@joaovitor-vw5pq Жыл бұрын
    • I'm happy this helped you.

      @Beachcasts@Beachcasts Жыл бұрын
  • 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...

    @cmac37420@cmac374202 жыл бұрын
    • 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: kzhead.info/sun/ZqVtYa6ZqH2ga4k/bejne.html

      @Beachcasts@Beachcasts2 жыл бұрын
    • @@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!! 😌😌

      @battosaijenkins946@battosaijenkins946 Жыл бұрын
  • Thanks for this video, although it didn't do much - it did help me a little bit. It's interesting how everyone codes differently.

    @teasauce3608@teasauce36082 жыл бұрын
    • Glad you found it helpful in some way. Thanks for watching.

      @Beachcasts@Beachcasts2 жыл бұрын
  • Wow, awesome

    @satishyadav-uo9rn@satishyadav-uo9rn4 ай бұрын
  • Excellent!

    @karankanojiya7672@karankanojiya76723 жыл бұрын
    • Glad you found it helpful.

      @Beachcasts@Beachcasts2 жыл бұрын
  • very good, thank you for the video :)

    @PythonicPath1@PythonicPath13 жыл бұрын
    • Thanks for watching.

      @Beachcasts@Beachcasts3 жыл бұрын
  • Great video!

    @stuknowlton477@stuknowlton4772 жыл бұрын
    • Glad you enjoyed it

      @Beachcasts@Beachcasts2 жыл бұрын
  • For more on learning a new codebase quickly, see this: kzhead.info/sun/ZqVtYa6ZqH2ga4k/bejne.html

    @Beachcasts@Beachcasts4 жыл бұрын
    • Or for PHP related content, check out this one: kzhead.info/channel/PL6_nF0awZMoOZhi2muRuXZbXlIK5TA7QR.html

      @Beachcasts@Beachcasts4 жыл бұрын
  • read line by line follow execution following routes existing states step debugging refactoring code standard using framework OOP patterns automate tests

    @anirbanc88@anirbanc88 Жыл бұрын
  • thanks @beachcast

    @clintonwambugu@clintonwambugu3 жыл бұрын
    • Thank you for watching.

      @Beachcasts@Beachcasts3 жыл бұрын
  • Can you upload a video regarding how to read and understand python code?

    @andrewloftis5741@andrewloftis57413 жыл бұрын
    • This is a great idea. Thank you. I think many of the principals are similar, but a Python version might make sense.

      @Beachcasts@Beachcasts2 жыл бұрын
  • Good one cheers xD

    @SanteeRocks@SanteeRocks2 жыл бұрын
    • Thank you

      @Beachcasts@Beachcasts2 жыл бұрын
  • 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

    @casimirtexas2288@casimirtexas22882 жыл бұрын
    • Sorry, no experience with c++. Maybe someone else will see the comment and be able to help.

      @Beachcasts@Beachcasts2 жыл бұрын
  • What about Debugging Sir. Please include 🙏

    @mikediaz9033@mikediaz9033 Жыл бұрын
  • Video starts at 2:20

    @pfodtakem9536@pfodtakem9536 Жыл бұрын
  • POV: You're copying something you made months ago and now you have no idea what you wrote.

    @alwinvillero4404@alwinvillero44043 жыл бұрын
    • That's a tough one. I often find myself with no idea of what I wrote in the past.

      @Beachcasts@Beachcasts3 жыл бұрын
  • Thankyou goodbye

    @mikediaz9033@mikediaz9033 Жыл бұрын
  • Sir, i want to add link from meta tags on my pags buy now button. Automaticly. Piz reply me the code s🥺

    @tamimmalik420@tamimmalik4203 жыл бұрын
    • Sorry, not sure what you're asking.

      @Beachcasts@Beachcasts3 жыл бұрын
  • What is the apache software foundation?

    @ayebosec@ayebosec2 жыл бұрын
    • That is the foundation that supports development of many open source projects, such as Apache web server, and others. www.apache.org/

      @Beachcasts@Beachcasts2 жыл бұрын
  • 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.

    @johnosam4681@johnosam4681 Жыл бұрын
    • Glad you found it helpful. Yes, the later recommendations are more helping future folks.

      @Beachcasts@Beachcasts Жыл бұрын
  • 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.

    @VworksArt@VworksArt Жыл бұрын
  • Oh my god phpstorm can refactor that easily? This ide keeps surprising me 😂

    @lynic-0091@lynic-00912 жыл бұрын
    • There's always something new to learn with IDEs.

      @Beachcasts@Beachcasts2 жыл бұрын
  • Can you help me to understand coding as beginner

    @solutionofproblem9354@solutionofproblem93543 жыл бұрын
    • Many say the best way to learn is by doing. Since you are watching videos, you have hopefully continued learning.

      @Beachcasts@Beachcasts2 жыл бұрын
  • I'm student of computer science as bscs

    @solutionofproblem9354@solutionofproblem93543 жыл бұрын
    • Hope you found it helpful.

      @Beachcasts@Beachcasts2 жыл бұрын
  • start after 2min

    @MrPeace-dm7uk@MrPeace-dm7uk2 жыл бұрын
    • Glad you found it helpful.

      @Beachcasts@Beachcasts2 жыл бұрын
  • need help ...😳😳

    @fi5277@fi52773 жыл бұрын
    • Hope you're doing better.

      @Beachcasts@Beachcasts2 жыл бұрын
  • 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.

    @owensoft@owensoft4 жыл бұрын
    • Thanks for watching. Good to see the video got you thinking. Agree, having a language reference handy is a great tip.

      @Beachcasts@Beachcasts4 жыл бұрын
  • Your presentation to fast , how can I understand any source code and debug if necessary

    @mikediaz9033@mikediaz9033 Жыл бұрын
KZhead