Bringing AJAX to Flask – Part 1

Flask is a micro web framework which is really fun to use. With the following snippet You have a complete web app working within seconds.

from flask import Flask # 1
 
app = Flask(__name__)   # 2

@app.route('/')         # 3
def hello_world():
    return 'Hello World!'

if __name__ == '__main__':
    app.run()           #4

All this snippet does is

  1. Importing the Flask module,
  2. Creating the app,
  3. Defining an so called endpoint and finally
  4. Running the web app in a container.

Flask brings its own WSGI server called “werkzeug”. Please use it just for development purposes. It is not suitable for live applications. Continue reading “Bringing AJAX to Flask – Part 1”

Review “Managing Oneself” by Peter Drucker


To call this book a book is a bit exaggerated. It contains only 60 pages which I assume you can read in under one hour. Nevertheless if you haven’t encountered the work of Peter Drucker yet this is the place to start.

The Author

Peter Drucker is best known for his concept of “Management by Objectives”. He also coined the term “knowledge worker” and “core competency”. 

Main Takeaways

Drucker elaborates on three major questions:

  • What are my strengths?
  • How do I perform?
  • What are my values?

These are the basic questions to ask yourself to answer the bigger questions:

  • Where do I belong?
  • What can I contribute?

The rest of the book ponders on developing relationships and a second career for later in life.

The bottom line

I will stop writing so my review won’t be longer than the book itself. Managing yourself is a big factor in personal success. If you don’t manage yourself how can you manage others? As I already mentioned this one is a good entry into the works of Peter Drucker. It’s also perfect as a gift, so buy a bunch of them.

Review “The Passionate Programmer”

About the Author

Chad Fowler is best know for being CTO of 6Wunderkinder after its exit to Microsoft. Before he was Senior Vice President of Technology at LivingSocial.

The Book

Fun fact: the first edition of this book was titled “My Job Went to India: 52 Ways To Save Your Job” but Fowler found this title misleading: instead of improving from mediocrity to keep your job we wants You to focus on becoming exceptional and staying ahead of the pack. Continue reading “Review “The Passionate Programmer””

The Peter Principle by Laurence J. Peter and Raymond Hull

I think I first came across the Peter Principle in the context of The Dilbert Principle.

Where Scott Adams states in a satirical fashion that “leadership is nature’s way of removing morons from the productive flow”, Peter and Hull just say that everybody in a big enough hierarchy always gets promoted to a position where he no longer can succeed and so reaches his personal level of incompetence.

Pretty  shocking, huh? Continue reading “The Peter Principle by Laurence J. Peter and Raymond Hull”

Code Kata: Roman Numeral – Part 1

Christmas is over, so we get rid of the Christmas Tree.
Today I want to show You another Code Kata: Roman Numerals. The task seems to be quite easy. Write a program which converts a decimal number into a string which contains the equivalent as a roman literal. E.g. convert 1984 into MCMLXXXIV.

The requirements

We just use the characters from I to M.

Symbol I V X L C D M
Value 1 5 10 50 100 500 1,000

We first write a simple conversion function which ignores the abbreviation syntax, so instead of IX for 9 we write VIIII. To do so we use integer division and modulo operation.  We start with the highest number and work our way down. Have a look: Continue reading “Code Kata: Roman Numeral – Part 1”

New Year’s Resolutions & Technology Learning Roadmap 2017

I made a list of technologies I’m going to learn – or at least get an overview of – in 2017. I’ve already started to look into Rust and also did some web tech tutorials on codecademy. Because I read “4 Reasons Why You Shouldn’t Learn to Code from Codecademy” I will not leave it there but am going to introduce one or more of the following technologies into some actual projects at work. Continue reading “New Year’s Resolutions & Technology Learning Roadmap 2017”