atlas news
    
Renan Moura
15  février     11h35
Subtracting years from a date in Python
Renan Moura    The easiest way to subtract years from a date in Python is to use the dateutil extension. Install it with pip: pip install python dateutil The relativedelta object from the dateutil.relativedelta module allows you to subtract any number of years from a date object. In this example I always take the...
    11h30
Adding years to a date in Python
Renan Moura    The easiest way to add years to a date in Python is to use the dateutil extension. Install it with pip: pip install python dateutil The relativedelta object from the dateutil.relativedelta module allows you to add any number of years to a date object. In this example I always take the current date...
    11h25
How to subtract months from a date in Python
Renan Moura    The easiest way to subtract months from a date in Python is to use the dateutil extension. Install it with pip: pip install python dateutil The relativedelta object from the dateutil.relativedelta module allows you to subtract any number of months from a date object. In this example I always take...
    11h18
Adding months to a date in Python
Renan Moura    The easiest way to add months to a date in Python is to use the dateutil extension. Install it with pip: pip install python dateutil The relativedelta object from the dateutil.relativedelta module allows you to add any number of months to a date object. In this example I always take the current...
12  janvier     16h27
Beware of excess of best practices
Renan Moura    Unlike other disciplines that are more rigid and regulated like Civil Engineering, Software Engineering doesn’t have a set of rules to follow by law enforcement. You won’t go to jail if you don’t do TDD Test Driven Design , or even write tests for your code. Your system can work just fine if you...
15  décembre     22h25
The hard part is to continue
Renan Moura    Starting out is easy, the hard part is to continue. Anything for a while is easy: Work out for a while Study for a while Diet for a while Work right for a while Take good care of the family for a while Save for a while Programming for a while For a while, everything The content The hard part is...
02  décembre     14h38
Python list drop duplicates
Renan Moura    Removing duplicates from a list is a task that might happen more often than you think. Maybe you are importing a bunch of rows from a CSV file and want to make sure you only have unique values. Or you are making sure to avoid repeated values for the sake of keeping your data sanitized. The...
16  novembre     19h15
Learning Programming is Non-Linear
Renan Moura    Learning is by no means a linear process, even in hard sciences like Math. It is very common to see people asking in groups, Reddit, and other forum like places What path should I take to become a Software Developer . Unfortunately, learning programming is not linear. You will find many lists and...
31  octobre     20h40
Python for loop increment by 2
Renan Moura    A regular for loop will increase its iteration counter by one in each iteration. But there are situations where you want to increment the iteration counter by . For some reason you might want to work with only even values. Let’s see a few solutions for this. range function The solution to...
19  octobre     21h43
Python 1 line for loop
Renan Moura    Instead of using the same old way of iterating through lists, we can make our code simpler by using list comprehensions, which allow us to make a line for loop in Python. Basic syntax of a line for loop To use a one line for loop to replace a regular for loop, we The content Python line...