5 useful Vim plugins for developers

April 28, 2019 Leave a comment

I have used Vim as a text editor for over 20 years, but about two years ago I decided to make it my primary text editor. I use Vim to write code, configuration files, blog articles, and pretty much everything I can do in plaintext. Vim has many great features and, once you get used to it, you become very productive.

I tend to use Vim’s robust native capabilities for most of what I do, but there are a number of plugins developed by the open source community that extend Vim’s capabilities, improve your workflow, and make you even more productive.

Following are five plugins that are useful when using Vim to write code in any programming language.

1. Auto Pairs
2. NERD Commenter
3. Vim Surround
4. Vim Gitgutter
5. Vim Fugitive

https://opensource.com/article/19/1/vim-plugins-developers

Advertisements
Categories: vim Tags:

Think Like (a) Git — a guide for the perplexed

April 23, 2019 1 comment

GIT Shouldn’t Be So Hard to Learn.

When you’re just getting started, something as straightforward as a merge can be terrifying. It can take a long time to really become comfortable using some of Git’s more advanced features. (It took me a year or two.)

Once people achieve some level of Git enlightenment, they tend to make statements of the form ‘Git gets a lot easier once you realize X’ — but that doesn’t do much for people staring up Git’s steep learning curve.

My goal with this site is to help you, Dear Reader, understand what those smug bastards are talking about.

Let’s get started, shall we?

http://think-like-a-git.net/

Categories: Interesting

A SQLAlchemy Cheat Sheet

April 12, 2019 Leave a comment

Introduction

SQLAlchemy is a deep and powerful thing made up of many layers. This cheat sheet sticks to parts of the ORM (Object Relational Mapper) layer,and aims to be a reference not a tutorial. That said, if you are familiar with SQL then this cheat sheet should get you well on your way to understanding SQLAlchemy.

https://www.codementor.io/sheena/understanding-sqlalchemy-cheat-sheet-du107lawl

Categories: Interesting Tags:

https://techdevguide.withgoogle.com/

April 4, 2019 Leave a comment

Whether you’re a student, an educator, or otherwise interested in software engineering, newer to computer science or a more experienced coder, we hope there’s something for you here in Google’s Guide to Technical Development

https://techdevguide.withgoogle.com/

Categories: Interesting

Beginner’s Guide to Using Databases with Python: Postgres, SQLAlchemy, and Alembic

March 27, 2019 Leave a comment

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/

Categories: Interesting

Secure Docker in Production

March 1, 2019 Leave a comment
Categories: Interesting