Archive

Archive for the ‘Interesting’ Category

Using Docker for Flask Application Development

March 2, 2019 Leave a comment

Introduction

I’ve been using Docker for my staging and production environments, but I’ve recently figured out how to make Docker work for my development environment as well.

When I work on my personal web applications, I have three environments:

* Production – the actual application that serves the users
* Staging – a replica of the production environment on my laptop
* Development – the environment where I write source code, unit/integration test, debug, integrate, etc.

While having a development environment that is significantly different (ie. not using Docker) from the staging/production environments is not an issue, I’ve really enjoyed the switch to using Docker for development.

The key aspects that were important to me when deciding to switch to Docker for my development environment were:

* Utilize the Flask development server instead of a production web server (Gunicorn)
* Allow easy access to my database (Postgres)
* Maintain my unit/integration testing capability

This blog post shows how to configure Docker and Docker Compose for creating a development environment that you can easily use on a day-to-day basis for developing a Flask application.

For reference, my Flask project that is the basis for this blog post can be found on GitLab.

https://www.patricksoftwareblog.com/using-docker-for-flask-application-development-not-just-production/

Advertisements
Categories: Interesting

Secure Docker in Production

March 1, 2019 Leave a comment

via Secure Docker in Production

Categories: Interesting

Speed up Development with Docker Compose

March 1, 2019 Leave a comment
Categories: Interesting

The never-ending REST API design debate by Guillaume Laforge

February 11, 2019 Leave a comment

What should a good REST API look like? Should you use verbs or nouns in your resource paths? How do you handle versioning of APIs? How to deal with partial responses and pagination? Which status codes should I make use of? What about sorting, filtering, and searching? Have you thought about content negotiation, cross-domain access, hypermedia, and authentication?

Guillaume will got through all these topics, offering advice on the best approaches to those questions, and opening up the debate on the various options available, so as to make your Web API at REST, as clean and elegant as possible.

Categories: Interesting Tags: ,

YOW! West 2015 Damian Conway – Everything You Know About Regexes Is Wrong #YOWWest

February 4, 2019 Leave a comment

For most programmers, regular expressions are a riddle wrapped in a mystery inside an enigma shrouded in line-noise. So most sensible programmers either don’t use them at all (and are thereby forced to reinvent worse wheels…badly), or else they fall back on an “evolutionary programming” approach: find an existing regex that looks like it might do, then randomly permute its “genome” over and over again until it appears to work.

In this talk, we’ll go back to basics and discover that regexes mostly aren’t what you think they are, mostly don’t work the way you were taught they did, and mostly shouldn’t be created the way everyone tells you to.

More usefully, we’ll also talk about what regexes really are, how they actually work, and see how normal programmers can make use of their existing software development skills to construct correct and efficient regexes…without selling their souls or losing their minds.

Damian Conway holds a B.Sc. and a Ph.D. in Computer Science.

A widely sought-after speaker and trainer, he is also the author of numerous well-known Open Source software libraries and developer tools, as well as several books and series of articles on programming. Between 2001 and 2010 was Adjunct Associate Professor with the Faculty of Information Technology, Monash University, Australia.

Other technical areas in which he has worked and published include: developer education, presentation skills, programming language design, language paradigms, software engineering, testing and debugging, documentation systems, natural language generation, synthetic language generation, emergent systems, image morphing, human-computer interaction, geometric modelling, the psychophysics of perception, nanoscale simulation, and parsing techniques.

Categories: Interesting Tags:

Useful GPG commands

February 3, 2019 Leave a comment
Categories: Interesting

Vim as a Python IDE

February 1, 2019 Leave a comment

VIM as a Python IDE

This project aims to use Vim as a powerful and complete Python IDE. In order to do that, we curated a list of awesome plugins available in the community and provided an automatic installation procedure for this set.

https://rapphil.github.io/vim-python-ide/

Source:
https://www.pythonweekly.com/

Categories: Interesting, python, vim Tags: