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
  • НаукаНаука

Комментарии • 62

  • @FABESTAH
    @FABESTAH Год назад +1

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

  • @BMNAkash
    @BMNAkash 4 года назад +10

    Thanks for the valuable information!

  • @stef6963
    @stef6963 3 года назад +1

    thanks for the knowledge! Very useful for anybody who wants to learn programming

  • @nicholascummings9084
    @nicholascummings9084 3 года назад +6

    Thank you for sharing this video, it was very helpful

    • @Beachcasts
      @Beachcasts  3 года назад

      You're welcome. Thanks for watching.

  • @lastregone4026
    @lastregone4026 3 года назад +5

    i love this channel the education is much appreciated thanks

    • @Beachcasts
      @Beachcasts  3 года назад

      You're welcome. Thanks for coming by.

  • @joaovitor-vw5pq
    @joaovitor-vw5pq Год назад +1

    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.

  • @mikediaz9033
    @mikediaz9033 Год назад

    Awesome.
    You're the second, but, most important with your message.
    I am checking out.

  • @teasauce3608
    @teasauce3608 2 года назад

    Thanks for this video, although it didn't do much - it did help me a little bit. It's interesting how everyone codes differently.

    • @Beachcasts
      @Beachcasts  2 года назад

      Glad you found it helpful in some way. Thanks for watching.

  • @cmac37420
    @cmac37420 2 года назад +16

    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...

    • @Beachcasts
      @Beachcasts  2 года назад +2

      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

    • @battosaijenkins946
      @battosaijenkins946 2 года назад +1

      @@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!! 😌😌

  • @PythonicPath1
    @PythonicPath1 3 года назад +1

    very good, thank you for the video :)

  • @karankanojiya7672
    @karankanojiya7672 3 года назад

    Excellent!

    • @Beachcasts
      @Beachcasts  3 года назад

      Glad you found it helpful.

  • @satishyadav-uo9rn
    @satishyadav-uo9rn 6 месяцев назад

    Wow, awesome

  • @stuknowlton477
    @stuknowlton477 3 года назад

    Great video!

  • @casimirtexas2288
    @casimirtexas2288 2 года назад

    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

    • @Beachcasts
      @Beachcasts  2 года назад

      Sorry, no experience with c++. Maybe someone else will see the comment and be able to help.

  • @andrewloftis5741
    @andrewloftis5741 3 года назад +5

    Can you upload a video regarding how to read and understand python code?

    • @Beachcasts
      @Beachcasts  3 года назад

      This is a great idea. Thank you. I think many of the principals are similar, but a Python version might make sense.

  • @mikediaz9033
    @mikediaz9033 Год назад

    What about Debugging Sir.
    Please include 🙏

  • @tamimmalik420
    @tamimmalik420 3 года назад +1

    Sir, i want to add link from meta tags on my pags buy now button. Automaticly. Piz reply me the code s🥺

    • @Beachcasts
      @Beachcasts  3 года назад

      Sorry, not sure what you're asking.

  • @Beachcasts
    @Beachcasts  4 года назад +2

    For more on learning a new codebase quickly, see this: ruclips.net/video/3A41JaqKj8Q/видео.html

    • @Beachcasts
      @Beachcasts  4 года назад

      Or for PHP related content, check out this one: ruclips.net/p/PL6_nF0awZMoOZhi2muRuXZbXlIK5TA7QR

  • @ayebosec
    @ayebosec 2 года назад

    What is the apache software foundation?

    • @Beachcasts
      @Beachcasts  2 года назад

      That is the foundation that supports development of many open source projects, such as Apache web server, and others. www.apache.org/

  • @SanteeRocks
    @SanteeRocks 3 года назад

    Good one cheers xD

  • @clintonwambugu
    @clintonwambugu 3 года назад

    thanks @beachcast

  • @johnosam4681
    @johnosam4681 2 года назад +1

    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.

    • @Beachcasts
      @Beachcasts  Год назад

      Glad you found it helpful. Yes, the later recommendations are more helping future folks.

  • @solutionofproblem9354
    @solutionofproblem9354 3 года назад

    Can you help me to understand coding as beginner

    • @Beachcasts
      @Beachcasts  3 года назад

      Many say the best way to learn is by doing. Since you are watching videos, you have hopefully continued learning.

  • @alwinvillero4404
    @alwinvillero4404 3 года назад +3

    POV: You're copying something you made months ago and now you have no idea what you wrote.

    • @Beachcasts
      @Beachcasts  3 года назад

      That's a tough one. I often find myself with no idea of what I wrote in the past.

  • @anirbanc88
    @anirbanc88 Год назад +1

    read line by line
    follow execution
    following routes
    existing states
    step debugging
    refactoring
    code standard
    using framework
    OOP patterns
    automate tests

  • @mikediaz9033
    @mikediaz9033 Год назад

    Thankyou goodbye

  • @pfodtakem9536
    @pfodtakem9536 Год назад +1

    Video starts at 2:20

  • @lynic-0091
    @lynic-0091 2 года назад +1

    Oh my god phpstorm can refactor that easily? This ide keeps surprising me 😂

    • @Beachcasts
      @Beachcasts  2 года назад

      There's always something new to learn with IDEs.

  • @VworksArt
    @VworksArt Год назад

    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.

  • @solutionofproblem9354
    @solutionofproblem9354 3 года назад +1

    I'm student of computer science as bscs

    • @Beachcasts
      @Beachcasts  3 года назад

      Hope you found it helpful.

  • @MrPeace-dm7uk
    @MrPeace-dm7uk 3 года назад

    start after 2min

    • @Beachcasts
      @Beachcasts  3 года назад

      Glad you found it helpful.

  • @fi5277
    @fi5277 3 года назад

    need help ...😳😳

    • @Beachcasts
      @Beachcasts  3 года назад

      Hope you're doing better.

  • @mikediaz9033
    @mikediaz9033 Год назад

    Your presentation to fast , how can I understand any source code and debug if necessary

  • @owensoft
    @owensoft 4 года назад

    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.

    • @Beachcasts
      @Beachcasts  4 года назад +1

      Thanks for watching. Good to see the video got you thinking. Agree, having a language reference handy is a great tip.