Ankit Kumar

Full-stack Web Developer | Talks about Python, Django, JavaScript, React

Ankit Kumarankitdevelops
2025-02-06

Let’s Encrypt will stop sending expiration notification emails

letsencrypt.org/2025/01/22/end

Ankit Kumarankitdevelops
2025-01-16

In Mongodb data that is accessed together should be stored together.

Ankit Kumarankitdevelops
2025-01-08

This is completely allowed in Python—you can import multiple libraries in one line. However, you really shouldn't do it and it also goes against PEP 8 guidelines.

Ankit Kumarankitdevelops
2025-01-08

I write bad code with good intentions.

Ankit Kumarankitdevelops
2025-01-01

It all started with packet switching.

Ankit Kumarankitdevelops
2024-11-19

I don't give consent to sever my memories between my work life and my personal life.

Ankit Kumarankitdevelops
2024-11-17

Check this out!

There's a new framework in town that lets you build web apps entirely in Python—no HTML, CSS, or JavaScript required. It even supports Native Apps! 🚀

github.com/rio-labs/rio

Ankit Kumarankitdevelops
2024-11-13

Voted for the first time 😯

Ankit Kumarankitdevelops
2024-11-13
Ankit Kumarankitdevelops
2024-11-04

Buying or pirating courses is easy, but completing them is a different story.

Ankit Kumarankitdevelops
2024-11-04

What if this is just a marketing gimmick to please investors?

Ankit Kumarankitdevelops
2024-11-03

A test post from Openvibe app.

Ankit Kumarankitdevelops
2024-04-24

This SQL query will be evaluated in this order. FROM -> SELECT -> ORDER BY.

The ORDER BY clause will first sort the result set by age in ascending order, Then, sort the sorted result set by the department in descending order.

Note that the order of age column will not change in this step, only the order of values in the department column will change.

Ankit Kumarankitdevelops
2024-04-13

If you are building a multi tenant application where each tenant has a separate database, then you can use mongoose usedb method to switch between tenant specific database. It works fine if you have small number of tenant it is also simpler to implement and simpler to manage in production, because there is only 1 connection pool.
mongoosejs.com/docs/connection

Ankit Kumarankitdevelops
2024-01-05

In Python, we can perform Set operations on dictionary key-view and item-view objects.

Ankit Kumarankitdevelops
2023-12-12

The maximum BSON document size is 16 megabytes. This helps prevent single documents from taking up too much RAM and bandwidth during transmission. To store documents larger than the maximum size, MongoDB provides the GridFS API.

Ankit Kumarankitdevelops
2023-12-11

Python's equality operator "==" is used to check the equality between the values of two objects. On the other hand, the identity operator "is" is used to check whether they refer to the same objects in memory. It is recommended to use the equality operator "==" for all the comparisons unless you want to compare the identity of two objects.

Ankit Kumarankitdevelops
2023-12-10

Python allows "in-place" mutation of mutable objects using "in-place operators". This means that when you mutate the object, you mutate the original data, without creating a new copy. In the example below we use the "in-place" operator to mutate list `a`, it mutates the list without creating a new list thus list `b` also sees the changes.

In-place mutation refers to modifying an object directly in its current memory location, without creating a new instance of that object.

Ankit Kumarankitdevelops
2023-12-09

Python allows single underscores ("_") to visually separate digits in large numbers, making them easier to read. These underscores are not part of the actual number.

Ankit Kumarankitdevelops
2023-10-26

The world doesn't need a ChatGPT, it needs an emanator. I will be happy to pay $20 per month for it.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst