Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Owned by Jake

T
Test

Private • 1 • Free

Memberships

Skool Community

Public • 140.3k • Paid

Flow Collective

Private • 330 • Free

Data Alchemy

Public • 19.7k • Free

CyberDojo

Private • 40.1k • Free

1 contribution to Data Alchemy
Logging save lives
TL;DR: - My code is bad, your doesn't have to be - Logging vs Printing - Loguru Loguru is an easy-to-understand library for Python that allows your code to have meaningful execution reports. It was presented to me by some colleagues and i have loved it since. I have the bad habit of over-engineer my class and i easily get lost in the execution flow. DO NOT BE ME! Create small interfaces, separate data classes from behavioural classes and create modular blocks one step at a time. Print is fine, but once you go on production you realize that the print statement is insufficient. Logging support levels help you understand where your code is going. Levels can also be filtered based on gravity! Loguru is a saviour tool https://loguru.readthedocs.io/en/stable/index.html and it allowed me to create nice logs and save them into a log file with simple commands.
8
3
New comment Jul 29
Logging save lives
2 likes • Jul 28
Thank you for sharing this, Loguru is a great resource and I’m definitely gonna start using it. Especially for recursive operations (fresh in my mind because I just developed a monster recursive operation that was a pain in the ass to debug), logging is an absolute must.
1-1 of 1
Jake Lucas
1
3points to level up
@jake-lucas-9113
Software Engineer, specializing in Artificial Intelligence, currently a tech wantrepreneur

Active 1d ago
Joined Jun 10, 2024
powered by