One way or another you’ll stumble upon these

Photo by mari lezhava on Unsplash.

1. The Cheapest, Fastest, and Most Reliable Components Are Those That Aren’t There


#3 — Don’t be clever

A ladder with text 12
A ladder with text 12
Photo by Michael Skok on Unsplash

1. You Aren’t Gonna Need It (YAGNI)

  1. You probably don’t need it after all. Now there’s code just sitting there unused, and nobody dares to remove it because who knows what will break if they do.
  2. Unused code does not get updated. It can introduce bugs…


6 ways to increase performance, from using better algorithms to using C to multiprocessing

Photo by Henrik Hjortshøj on Unsplash

1. Optimizing your code and algorithms

  • Measure, don’t guess. Measure which parts of your code take the most time to run. Focus on those parts first.
  • Implement caching. This can be a big optimization if you perform many repeated lookups from disk, the network, and databases.
  • Reuse objects instead of creating a new one on each iteration. Python has to clean up every object you created to…


Use these tips to quickly improve your technical writing skills

Typewriter
Typewriter
Photo by Markus Winkler on Unsplash.

Know Your Audience


From slotted classes to replacing lists with tuples

Image by author, photo from Depositphotos

1. Using slotted classes

  • Objects created from the class will take up slightly less memory
  • It’s faster to access class attributes
  • You can’t randomly add new attributes to objects of a slotted class


Improve your Python knowledge and skills

1. Use Python 3

2. Check for a minimum required Python version


With virtual environments, you can isolate your software and avoid version conflicts

Photo by Ryan Loughlin on Unsplash

Why You Need Virtual Environments

Preventing version conflicts


There are better ways to manage your packages and virtual environments than using pip and virtualenv

Photo by Alvaro Reyes on Unsplash.

Why pipenv?

  • You no longer need to use pip and virtualenv separately. Instead, you have one tool that does it all — and more!
  • pipenv separates your top-level dependencies from the last tested combination (e.g., the output of pip freeze). This makes dependency management more user-friendly for you as a developer.
  • pipenv encourages…


Everything you ever need to know about Python dictionaries

Old books
Old books
Photo by Syd Wachs on Unsplash.

Creating a Dictionary

>>> phone_nrs = { 'Jack': '070-02222748', 'Pete': '010-2488634' }
>>> an_empty_dict = { }
>>> phone_nrs['Jack']
'070-02222748'


If you’re stuck at home, now is the time to polish your skills

Image by author

1. Create a game

Pygame

Erik van Baaren

Software developer by day, writer at night. Webmaster at https://python.land

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