Open in app

Sign In

Write

Sign In

Officer Jack Traven
Officer Jack Traven

959 Followers

Home

About

Published in

Geek Culture

·Pinned

Python OOP example: Car engine simulation for beginners

Strict Typing, DataClasses, Unit Tests, and everything else you need In this article, I would like to show an example of a well-structured and tested Python project. This can be useful for those who start programming and for those who switch from another language to Python. You will see why…

Python

7 min read

Python OOP example: Car engine simulation for beginners
Python OOP example: Car engine simulation for beginners
Python

7 min read


Published in

Geek Culture

·Pinned

Do not use mutable objects as default arguments in Python

This Python peculiarity can lead to some unexpected behavior of your programs. — Say, you want a function that appends some data to a list. And if the list is not passed, then appends the same data to a newly created list. What would be the obvious and naive way to go? Sure, why not use default arguments here? …

Python

2 min read

Do not use mutable objects as default arguments in Python
Do not use mutable objects as default arguments in Python
Python

2 min read


Published in

Geek Culture

·Pinned

How to Generate a QR Code in Django

Passing a QR code as an SVG code This tiny project will generate a QR code for any text and pass it to the HTML template as an SVG code. SVG is a very convenient medium for URLs or other text. This small demo demonstrates a few things: How to…

Qr Code

3 min read

How to Generate a QR Code in Django
How to Generate a QR Code in Django
Qr Code

3 min read


Published in

Level Up Coding

·Pinned

Just One Index in Django Makes your App 15x faster!

How much faster is your app with indexes? — Even “Senior” developers often forget to use indexes in Django. You can’t imagine how faster it can get if you simply add two lines of code into your model! In this article we will take measurements together: with and without indexes. Setup Our patient will be a small Django application with…

Django

5 min read

Just one  Index in Django makes your App 15x faster!
Just one  Index in Django makes your App 15x faster!
Django

5 min read


Published in

Level Up Coding

·Pinned

How to write Tetris in Python

Step by step guide to writing Tetris in Python with PyGame In this tutorial, we will write a simple Tetris using the PyGame library in Python. The algorithms inside are pretty simple but can be a little challenging for the beginners. We will not concentrate on PyGame mechanics too much…

Tetris

6 min read

How to write Tetris in Python
How to write Tetris in Python
Tetris

6 min read


Published in

Python in Plain English

·Apr 14

Matplotlib: Beyond Basic Plots, 10 Surprising Capabilities

Unlocking the Full Power of Data Visualization with Matplotlib’s Hidden Features Introduction Matplotlib is a powerful and versatile plotting library in Python, widely used by data scientists, engineers, and researchers for visualizing data. While it offers a wide range of functions for plotting, some of its capabilities remain lesser known or…

Python

6 min read

Matplotlib: Beyond Basic Plots - 10 Surprising Capabilities
Matplotlib: Beyond Basic Plots - 10 Surprising Capabilities
Python

6 min read


Published in

Level Up Coding

·Mar 23

Python: Class and Static Methods Explained

Bonus: from_json and to_json methods for your classes Introduction As a Python developer, you have likely come across classes and object-oriented programming. But when working with classes, you might have encountered classmethod and staticmethod. These two concepts can be confusing, especially for beginners. In this article, we will demystify class and…

Oop

4 min read

Python: Class and Static Methods Explained
Python: Class and Static Methods Explained
Oop

4 min read


Published in

Geek Culture

·Mar 15

OOP: Secrets of Encapsulation: Unlocking the Power of Private and Protected

Why don’t we always use public? Introduction Object-oriented programming (OOP) has been a dominant programming paradigm for several decades now. One of its core principles is encapsulation, which is the bundling of data and methods that operate on that data within a single unit, typically a class. Encapsulation promotes the idea…

Object Oriented

3 min read

OOP: Secrets of Encapsulation: Unlocking the Power of Private and Protected
OOP: Secrets of Encapsulation: Unlocking the Power of Private and Protected
Object Oriented

3 min read


Published in

Geek Culture

·Mar 7

ChatGPT 4 and Above

How will ChatGPT 4 and above be different from ChatGPT 3 Here is what I expect from the next generations of ChatGPT. ChatGPT 4 (boring) AI language models have come a long way since their inception, and with each iteration, they become more sophisticated and better at understanding human language. …

ChatGPT

3 min read

ChatGPT 4 and Above
ChatGPT 4 and Above
ChatGPT

3 min read


Published in

Geek Culture

·Feb 23

Microservices for Dummies in Python

What and why are microservices The purpose of this article is to provide a clear understanding of microservices and how they differ from monolithic applications. …

Microservices

9 min read

Microservices for Dummies in Python
Microservices for Dummies in Python
Microservices

9 min read

Officer Jack Traven

Officer Jack Traven

959 Followers

Police officer, 30+ Years Programming Experience

Following
  • Ishaan Gupta

    Ishaan Gupta

  • Matthew Donnellon

    Matthew Donnellon

  • Robert Ralph

    Robert Ralph

  • FadinGeek

    FadinGeek

  • Tony

    Tony

See all (433)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech