Programming

Programming

Exploring Various Coding Languages

Programming LanguagesSoftware DevelopmentAlgorithms and Data StructuresSoftware EngineeringWeb and Mobile Programming

مقالات این بخش

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

The node:util module provides a powerful collection of helper functions used throughout Node.js core and extremely useful for application developers. These utilities support debugging, inspection, formatting, type checking, callback/Promise conversions, argument parsing, text encoding, MIME handling, and more. It is one of the most versatile and essential toolkits in the Node.js ecosystem.

/persian/article-fa/comprehensive-guide-to-the-nodejs-util-module-nodeutil

Comprehensive Guide to Node.js Worker Threads (node:worker_threads)

The node:worker_threads module enables true multithreading in Node.js by running JavaScript in separate threads. While Node.js is traditionally single‑threaded, worker threads allow CPU‑intensive tasks to run in parallel without blocking the event loop. They support shared memory, zero‑copy transfers, worker pools, resource limits, and advanced synchronization APIs. Worker threads are ideal for heavy computation, data processing, and parallel workloads—while async I/O remains best handled by the main thread.

/persian/article-fa/comprehensive-guide-to-nodejs-worker-threads-nodeworker-threads

Comprehensive Guide to the V8 Module in Node.js (node:v8)

The node:v8 module exposes low-level APIs that interact directly with the V8 JavaScript engine embedded in Node.js. . These APIs provide access to heap statistics, heap snapshots, coverage tools, serialization mechanisms, V8 flags, object queries, and promise lifecycle hooks. The module is essential for performance analysis, memory debugging, tooling, and advanced Node.js internals work.

/persian/article-fa/comprehensive-guide-to-the-v8-module-in-nodejs-nodev8

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.

/persian/article-fa/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.

/persian/article-fa/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.

/persian/article-fa/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.

/persian/article-fa/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.

/persian/article-fa/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.

/persian/article-fa/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.

/persian/article-fa/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.

/persian/article-fa/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.

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