Simplify Debug Print Statements using IceCream

Ғылым және технология

#mathbyteacademy #python
I discovered this library recently, and found it to be quite useful to replace the print statements I sometimes use for debugging or simply inspecting variables as my code is running.
Code for this Video
================
Available in GitHub blog repo: github.com/fbaptiste/python-blog
Direct link: tinyurl.com/w2z9vkk9
My Python Courses
=================
- Python 3 Fundamentals (introduction to Python)
www.udemy.com/course/python3-...
- Pydantic V2: Essentials
www.udemy.com/course/pydantic...
- Python 3 Deep Dive (Part 1 - Functional)
www.udemy.com/course/python-3...
- Python 3 Deep Dive (Part 2 - Iteration, Generators)
www.udemy.com/course/python-3...
- Python 3 Deep Dive (Part 3 - Hash Maps)
www.udemy.com/course/python-3...
- Python 3 Deep Dive (Part 4 - OOP)
www.udemy.com/course/python-3...

Пікірлер: 13

  • @bilal-khan
    @bilal-khan12 күн бұрын

    Your video is fantastic. Please keep sharing. We are waiting for your python deep dive part 5.

  • @bilal-khan

    @bilal-khan

    12 күн бұрын

    Will you be releasing part 5 of python deep dive?

  • @mathbyteacademy

    @mathbyteacademy

    12 күн бұрын

    Thanks Bilal!

  • @mathbyteacademy

    @mathbyteacademy

    12 күн бұрын

    Nothing on the horizon yet, been busy with work.

  • @bilal-khan

    @bilal-khan

    12 күн бұрын

    Can you a video on multiple inheritance?

  • @mailsonferreira-i4n
    @mailsonferreira-i4n8 күн бұрын

    You do great videos! Keep them coming. I'm a senior citizen and I love your method of presentation.

  • @mathbyteacademy

    @mathbyteacademy

    8 күн бұрын

    Thank you, I'm glad you like the videos!

  • @MaxShapira2real
    @MaxShapira2real11 күн бұрын

    Great stuff Fred! You should give PySnooper a try. I think it does a better job than IceCream.

  • @mathbyteacademy

    @mathbyteacademy

    8 күн бұрын

    Interesting library, thanks for the tip!

  • @Jakub1989YTb
    @Jakub1989YTb12 күн бұрын

    Nice little gimmick. But I can already see the pain of trying to remove it later. When using logging, you get more mature functionality and you can (and should) keep the log calls in.

  • @mathbyteacademy

    @mathbyteacademy

    12 күн бұрын

    Agreed, this is not meant to replace logging, but rather to help debug your code as your developing it (at least that's the way I have been using it). Replaces print statements, which have to be removed anyway before getting merged into the main code base, and for cases where I don't want to log things (many of these debugging print statements I use do not belong in the event log - I only keep debug logs to log things I think might be useful when debugging once the code is in production).

  • @pikaa-si9ie
    @pikaa-si9ie10 күн бұрын

    why did you archived the polymon project? 😭😭

  • @mathbyteacademy

    @mathbyteacademy

    10 күн бұрын

    That was a long time ago, and better Linux based alternatives became available, with a lot more people contributing to those projects than Polymon.

Келесі