Programming

Programming

Exploring Various Coding Languages

Programming LanguagesSoftware DevelopmentAlgorithms and Data StructuresSoftware EngineeringWeb and Mobile Programming

Articles in this Section

Comprehensive Guide to the Node.js VM Module (node:vm)

The node:vm module allows you to compile and execute JavaScript code inside isolated V8 contexts — essentially creating lightweight sandboxes within your Node.js application. These contexts have their own global scope and can run code independently from the main environment. However, vm is NOT a security sandbox. It is powerful for dynamic code execution, template engines, REPLs, plugin systems, and controlled module execution, but it must never be used to run untrusted code.

/article/comprehensive-guide-to-the-nodejs-vm-module-nodevm

The Web Framework for Perfectionists with Deadlines

This article introduces Django, the high-level Python web framework. We explore its core philosophy of "Batteries Included," its secure-by-default design, and the MVT (Model-View-Template) architecture that allows developers to build robust web applications rapidly and efficiently.

/article/the-web-framework-for-perfectionists-with-deadlines

Creating and Managing Python Virtual Environments and Running a Django Project

Python Virtual Environments provide an isolated workspace for managing dependencies, Python versions, and frameworks such as Django. By using virtual environments, developers can avoid conflicts between packages and run multiple projects with different configurations. This article explains how to create virtual environments with specific Python versions, activate them, update pip, install Django (latest or specific versions), and finally run a Django project using the development server.

/article/creating-and-managing-python-virtual-environments-and-running-a-django-project

Spread and Rest Operators in React – Writing Concise and Readable Component Code

JavaScript’s spread and rest operators offer powerful ways to manage props and object data in React. This article explores how to pass props more concisely using the spread operator, how to extract specific properties with the rest operator, and how to apply destructuring techniques to improve readability and maintainability in React components.

/article/spread-and-rest-operators-in-react-components

Spread and Rest Operators in React – Writing Concise and Readable Component Code

JavaScript’s spread and rest operators offer powerful ways to manage props and object data in React. This article explores how to pass props more concisely using the spread operator, how to extract specific properties with the rest operator, and how to apply destructuring techniques to improve readability and maintainability in React components.

/article/spread-and-rest-operators-in-react-components

A Complete Guide to Installing and Setting Up Django

This article provides a comprehensive guide to installing and setting up Django. It covers installing Python, creating a virtual environment, installing Django with pip, configuring a database, and optional production setup using Apache and mod_wsgi. This guide is suitable for beginners as well as experienced developers.

/article/a-complete-guide-to-installing-and-setting-up-django

Understanding Django Models: Structure, Usage, and Database Integration

This article provides a clear and structured explanation of Django models, the core component responsible for defining and managing data in Django applications. It covers how models map to database tables, how fields are defined, how Django generates SQL automatically, and how to activate models within an application. A practical example is included to illustrate how models work in real projects.

/article/understanding-django-models-structure-usage-and-database-integration

Creating, Saving, and Querying Objects in Django: A Complete Guide to the ORM Query API

This article explains how Django’s ORM allows developers to create, retrieve, update, and delete objects using a powerful database‑abstraction API. It covers object creation, saving changes, working with ForeignKey and ManyToManyField relationships, retrieving objects using QuerySets, filtering data, chaining filters, and understanding how QuerySets behave. These concepts form the foundation of working with data in Django applications.

/article/creating-saving-and-querying-objects-in-django-a-complete-guide-to-the-orm-query-api

Aggregation and Annotation in Django ORM: Summaries, Counts, Averages, and Multi‑Aggregation Behavior

This article explains how Django ORM performs aggregation using aggregate() and annotate(), how to compute summary values such as counts, averages, minimums, and maximums, and how to generate per‑object summaries. It also covers common pitfalls when combining multiple aggregations, the use of distinct=True, and how to inspect SQL queries for debugging.

/article/aggregation-and-annotation-in-django-orm-summaries-counts-averages-and-multiaggregation-behavior

Search in Django ORM: From Basic Text Lookups to PostgreSQL Full‑Text Search

This article explores the different search techniques available in Django ORM—from simple text lookups using contains and icontains, to advanced database‑specific search features such as unaccent and trigram similarity in PostgreSQL. It also explains when traditional string matching becomes insufficient and how document‑based search engines or PostgreSQL’s built‑in full‑text search can be used for large‑scale and multilingual search needs.

/article/search-in-django-orm-from-basic-text-lookups-to-postgresql-fulltext-search

Understanding Managers in Django ORM: Custom Managers, Default Managers, Base Managers, and Advanced Usage Patterns

This article explains how Django Managers work, how to rename them, how to create custom managers, how to override get_queryset(), how default and base managers behave, how Django uses managers for related-object access, and how to expose custom QuerySet methods through a manager. Managers are the primary interface for database operations in Django, and understanding them is essential for writing clean, reusable, and powerful ORM logic.

/article/understanding-managers-in-django-orm-custom-managers-default-managers-base-managers-and-advanced-usage-patterns

Performing Raw SQL Queries in Django: RawSQL, raw(), Field Mapping, Parameters, and Safety Considerations

This article explains Django’s three mechanisms for executing raw SQL: embedding SQL fragments using RawSQL, using Manager.raw() to return model instances, and executing SQL directly. It covers field mapping, deferred fields, indexing behavior, parameterized queries, SQL injection protection, and backend-specific considerations such as MySQL’s type coercion. Raw SQL is powerful but must be used carefully and only when the ORM cannot express the required query.

/article/performing-raw-sql-queries-in-django-rawsql-raw-field-mapping-parameters-and-safety-considerations