Image for post
Image for post
A brand new WordPress website — Image by author

I’ve recently switched from Grav CMS to WordPress on one of my sites, Python Land. I jotted down some lessons learned and some advanced tips while setting up this WordPress site that I’d like to share with anyone interested.

I’m not new to WordPress, and I’m certainly not new to running websites. I’ve been doing it for 25 years. My first sites used tables to structure the pages, CSS wasn’t invented yet, and SEO didn’t exist either. Yeah… I guess I’m that old (and wise, hopefully).

Anyways... without further ado, here we go!

1. Pick a good WordPress theme

Picking the right theme is hard; don’t underestimate it. There are many good-looking themes, but it’s hard to judge a book by its cover. There are many crappy themes that may look nice on the surface but are horribly coded and inflexible. They are built to sell, not to keep working flawlessly in the long run. …


Image for post
Image for post
Photo by Frame Harirak on Unsplash

This advice is useful for both beginning and seasoned software developers. There are some jokes intertwined here, too, so you might want to put down that coffee mug.

1. Java is to Javascript like car is to carpet

Hopefully, you know that Java and Javascript are two entirely different things, despite their names. If you didn’t, don’t sweat it; many beginners get confused by it.

So why are they named so similarly?

This is a quote from an interview with JavaScript creator Brendan Eich:

InfoWorld: As I understand it, JavaScript started out as Mocha, then became LiveScript and then became JavaScript when Netscape and Sun got together. …


Image for post
Image for post
Photo by Lucas van Oort on Unsplash

More often than not, software projects are difficult to build from source. This can have multiple reasons, here are just a few:

  • The project requires lots of dependencies.
  • The project requires outdated libraries. Once you install those, other projects might break in turn.
  • You’re running Windows or a Mac, but the software is designed to build and run on Linux.

For similar reasons, it can also be hard to run your software in production!

If you’re facing these problems, it’s good to know that there’s an easy fix. It doesn’t require virtualization but instead uses a principle called containerization.

What is a container?

A container is an entity that has everything required to run your software. It…


Image for post
Image for post
Photo by Silvan Arnet on Unsplash

Dart is primarily known as the programming language for Flutter, Google’s UI toolkit for building natively compiled mobile, web, and desktop apps from a single codebase. It’s optimized for building user-interfaces and developed by Google. It’s used to build mobile, desktop, server, and web applications. Dart can compile to native code and JavaScript.

If you want to follow along with this article, which I highly recommend, you can do so without installing anything on DartPad.dev.


Image for post
Image for post
Image ©2020 by author

Are you still dependent on GUIs? You can significantly increase your productivity by learning a few basic shell commands. After learning these, learning more commands will come naturally — promised!

If these shell basics are well known to you, please skip this article and head to my follow-up article to become a command-line ninja!

pwd — return working directory name

Let’s start by knowing where you are once you opened your terminal:

$ pwd
/Users/erik

I’m in my home directory, where are you?

ls — List directory contents

Now let’s see what is in the current directory:

$ ls
AndroidStudioProjects VirtualBox VMs
Applications Desktop
Documents flutter
Downloads...

There’s a lot here because I’m a messy guy, so I truncated it a little. …


Image for post
Image for post
Photo by Hitesh Choudhary on Unsplash

Why do we all love Python? For starters, it’s a beautiful and easy to learn programming language. Another reason: it comes with batteries included, meaning Python has many excellent libraries included by default. But in my opinion, it’s the 230,000 user-contributed packages that make Python really powerful and popular.

Earlier this year, I showed you the 22 most downloaded Python packages in the world. Although that was fun and I learned a lot, it was also a bit frustrating. Why’s that, you ask? Because I was not able to show you my personal favorites!

In this article, I handpicked 15 packages that I found most useful during my 10-year career as a Pythonista. …


Image for post
Image for post
Photo by Frank Busch on Unsplash

Here’s a collection of the funniest programming quotes I heard on the work floor, mixed with some history and best practices as well. Let’s go!

1. Java is to Javascript like car is to carpet

I love this one because it summarizes the Java vs. JavaScript story perfectly. Most of you know that Java and Javascript are two entirely different things, despite their names, but many beginners get confused by it.

So why are they named this way?

From an interview with its creator Brendan Eich:

InfoWorld: As I understand it, JavaScript started out as Mocha, then became LiveScript and then became JavaScript when Netscape and Sun got together. …


Image for post
Image for post
Photo by Micheile Henderson on Unsplash

Nobody knows when this pandemic will be over. It could be weeks, months, or years before life returns to what we called normal only a short while ago. But even though the physical world has come to a grinding halt, the digital world flourishes:

The digital world does not suffer from pandemics and other disasters as much as the physical world. It is a fact that may sound obvious, but the implications are overseen by many. …


Image for post
Image for post
Photo by James Pond on Unsplash

1. Create a game

I bet you never considered creating a game with Python. But why not? There are awesome libraries that will help you develop games. So let’s help your kids, your partner, or your colleagues get through this crisis with a fun game!

Pygame

Pygame is a cross-platform set of Python modules designed for writing video games. It includes computer graphics and sound libraries. Here are a few tutorials you can try:


Image for post
Image for post
Photo by Lacie Slezak on Unsplash

You really, REALLY should learn about this one thing that guarantees you a better position on the job market. But learning about things that are new to us can be incredibly difficult. We’ve all been there. We’ve all had the struggle.

If you want to learn, there’s a method I recommend heartily. It’s by no means a trick or a way to learn quicker. But it does allow you to get a much deeper, lasting understanding of a topic.

Write about it!

I write technical articles. I do this for multiple reasons, but one of them is to learn. By teaching others through my writing, I force myself to dive into a topic head-on. …

About

Programming with Erik

Understandable, practical and useful advice and tutorials for programmers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store