Open in app

Sign In

Write

Sign In

Timur Bakibayev, Ph.D.
Timur Bakibayev, Ph.D.

1K Followers

Home

Lists

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

Level Up Coding

·Aug 29

Optimization Overkill: How to Turn Good Code Bad

When Being Too Smart Makes Your Code Dumb Intro I often meet developers who are obsessed with code optimization. Don’t get me wrong, optimizing code is a noble endeavor — when done right, it can lead to programs that run faster, use fewer resources, and provide a better overall user experience…

Programming

7 min read

Optimization Overkill: How to Turn Good Code Bad
Optimization Overkill: How to Turn Good Code Bad
Programming

7 min read


Published in

Level Up Coding

·Jun 10

Django Shell: The Dark Side

Working in Django shell in PROD Situation You are working on a Django project in production, and you need to change a bunch of data in the database. You have two options: the right way — write a code locally, test it locally, then deploy and run, OR use python manage.py…

Django

5 min read

Django Shell: The Dark Side
Django Shell: The Dark Side
Django

5 min read


Published in

Geek Culture

·Jun 4

Django: a Telegram Bot with Authentication

How to integrate a Telegram bot inside your Django App The problem We want to create a Telegram bot that will be able to access the database. If you simply write a function for the bot inside your Django app, how would you run it? …

Telegram Bot

4 min read

Django: a Telegram Bot with Authentication
Django: a Telegram Bot with Authentication
Telegram Bot

4 min read


Published in

Level Up Coding

·Jun 3

How I Integrated ChatGPT to a Django Project

It helps generate questions for quizzes Introduction In our company, we have a product called Delicatest that allows teachers to create quizzes for their students. In general, it is convenient to create quizzes in our system, but the problem is that creating quizzes is a very time-consuming task. Especially creating wrong variants of answers. …

Python

5 min read

How We Integrated ChatGPT to our Django Project
How We Integrated ChatGPT to our Django Project
Python

5 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

Timur Bakibayev, Ph.D.

Timur Bakibayev, Ph.D.

1K Followers

Programming for 30+ years

Following
  • Matthew Donnellon

    Matthew Donnellon

  • Sal

    Sal

  • Lokajit Tikayatray

    Lokajit Tikayatray

  • Websolutionstuff

    Websolutionstuff

  • Josef Cruz

    Josef Cruz

See all (315)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams