Python datetime and format

One of the things I always forget is date and time in Python.
So message to myself:

the strftime method is used for formatting (string_format_time)

import datetime
start_date = datetime.datetime.now()
DATE_FORMAT = '%d/%m/%Y %H:%M'
print(start_date.strftime(DATE_FORMAT))

Cheatsheet

15 Steps for successful Bootstrapping – Part 2

this is the second part to Bootstrapping – Part 1

Time to Cash – When do I get my money?

More important than “time to market” (when can I offer my product on the market) is “time to cash”: when do I get the money for my service?
For a successful bootstrapping, it makes no sense to sell and sell and to only bill once a year. Continue reading “15 Steps for successful Bootstrapping – Part 2”

Checking test coverage with pytest-cov

Test coverage

I wanted to analyze my python package flaskurls for test coverage. this is how you can do it:

pipenv install pytest-cov
py.test --cov=flask_url_mapping tests/
----------- coverage: platform win32, python 3.6.5-final-0 -----------
Name                              Stmts   Miss  Cover
-----------------------------------------------------
flask_url_mapping\__init__.py         1      0   100%
flask_url_mapping\flask_urls.py      73      0   100%
-----------------------------------------------------
TOTAL                                74      0   100%


========================== 10 passed in 0.60 seconds ==========================

10 things I didn’t know about Data Science a year ago

In my article My personal road map for learning data science in 2018 I wrote about how I try to tackle the data science knowledge sphere. Due to the fact that 2018 is slowly coming to an end I think it is time for a little wrap up.

What are the things I learned about Data Science in 2018? Here we go:

1. The difference between Data Science, Machine Learning, Deep Learning and AI

Continue reading “10 things I didn’t know about Data Science a year ago”

The Agile Manifesto

When you are working in an agile team e.g. Scrum you might have heard about the agile manifesto. Formulated in 2001 it influenced a lot of software developers and methodologies like Scrum.

The Agile Manifesto consists of 4 values and 12 principles:

Values

Principles

  1. Our highest priority is to satisfy the customer through early and continuous delivery of valuable software.
  2. Welcome changing requirements, even late in development. Agile processes harness change for the customer’s competitive advantage.
  3. Deliver working software frequently, from a couple of weeks to a couple of months, with a preference to the shorter timescale.
  4. Business people and developers must work together daily throughout the project.
  5. Build projects around motivated individuals. Give them the environment and support they need, and trust them to get the job done.
  6. The most efficient and effective method of conveying information to and within a development team is face-to-face conversation.
  7. Working software is the primary measure of progress.
  8. Agile processes promote sustainable development. The sponsors, developers, and users should be able to maintain a constant pace indefinitely.
  9. Continuous attention to technical excellence and good design enhances agility.
  10. Simplicity–the art of maximizing the amount of work not done–is essential.
  11. The best architectures, requirements, and designs emerge from self-organizing teams.
  12. At regular intervals, the team reflects on how to become more effective, then tunes and adjusts its behavior accordingly.

Moving Motivators

An interesting technique from the Management 3.0 book “Managing for happiness” is the moving motivators exercise.

Motivators

Jurgen Appelo compiled motivational factors from different sources like Steven Reiss’ 16 basic desires, Ryan and Deci’s self determination theory and last but not least Daniel Pink’s Drive!

He came up with the following list of 10 motivators which can be best memorized with the mnemonic “CHAMPFROGS”: Continue reading “Moving Motivators”