Geek Logbook

Tech sea log book

Brendan Eich and the languages over time

The creator of JavaScript, Brendan Eich was asked about the programming languages and the time Seibel: In general do you feel like languages are getting better over time? Eich: I think so, yeah. Maybe we’re entering the second golden age; there’s more interest in languages and more language creation. We talk about programming: we need

Python calculate seconds and total_seconds

If you want to calculate the total seconds between two dates. You could be tempted to do a time delta and see the seconds. But this approach will give you an unexpected result. You have to use time_second. Return the total number of seconds contained in the duration.  https://docs.python.org/3/library/datetime.html#datetime.timedelta.total_seconds Source:

Logger In python – First Approach

Besides using the print statements and the debugging tools sometimes (more and more frequently) I’m seeing in the code the logging module. According to the python documentation: This module defines functions and classes which implement a flexible event logging system for applications and libraries. The key benefit of having the logging API provided by a