Design Patterns → Generative Design Patterns - Builder
Builder, шаблоны проектирования, Строитель
The reasons
- Separating the construction of a complex object from its representation so that the same construction process can create different representations.
- Dismantling a complex representation, creating one goal from several variations.
Problems
Separation of the object interpretation algorithm (for …
ReadPython → Example - Abstract Factory in Python
abstract, factory, abc, python
An example of an abstract factory in the Python programming language
Read""" Provide an interface for creating families of related or dependent objects without specifying their concrete classes. """ import abc class AbstractFactory(metaclass=abc.ABCMeta): """ Declare an interface for operations that …
C++ → Example - Abstract Factory in C ++
cpp, шаблоны проектирования, abstract, new
Discussion. "Think of object creation as a factory that spawns those same objects."
Here we assign object creation responsibilities to the factory object, and then use inheritance functions and virtual members to provide a "virtual constructor" capability. So there are …
ReadDesign Patterns → Generative Design Patterns - Abstract Factory
шаблоны проектирования, абстрактная, abstract, new, фабрика
The reasons
- Providing an interface for creating families of related or dependent objects without specifying their specific classes.
- Hierarchy that encapsulates: many possible "platforms" and building a set of "products".
- The new operator is considered harmful.
Problems
If an application …
ReadLinux → Bash script for creating and downloading a dump of a database and media files from a remote server
During the development of the site on Django had to start to understand the Bash scripts to automate routine tasks. For example, creating and downloading a database dump from a site, as well as reserving media files.
We assume that …
ReadLinux → Counting the number of commits for authors in Git
Just for fun.
What can programmers measure? Of course, with their commits, at least their number in the Git repository.
To do this, you can use the git shortlog command, which summarizes the output of git log, providing a more …
ReadC++ → The idiom RAII and the principle of structured programming that a function must have one entry point and one exit point
The world of programming in C ++ in the new standards allows us to get up a variety of things, thanks to which we can safely abandon some old statements or principles, or simply flexibly approach these principles.
I would …
ReadQt → Profiling memory usage on Linux with Qt Creator 4.7
Performance Analyzer
You may have heard of the Performance Analyzer (named “CPU Usage Analyzer” in Qt Creator 4.6 and earlier). It's about profiling applications using the excellent "perf" tool in Linux. You can use it locally on Linux - the …
ReadPostgreSQL → Working with trigger functions in PostgreSQL
PostgreSQL, Триггерные функции, База данных
In the process of developing one application for accounting for time norms, it became necessary to create a pivot table with a selection of data from the existing one.
PostgreSQL was used as the database.
The source table base_table is …
ReadDjango → Open source EVILEG
ESNF-ICO, ESNF-DOC, ESNF-C, ESNF, ESNF-LD, Django, EVILEG
There was probably something that many users of the resource EVILEG would like to see among Web developers.
It was decided to open the sources of EVILEG, especially since I repeatedly received requests to show the source of the resource …
Read- Unknown akadamn
- Jan. 24, 2025, 1:14 p.m.
Qt - Test 001. Signals and slots
- Result:84points,
- Rating points4
- Unknown akadamn
- Jan. 24, 2025, 12:22 p.m.
Qt - Test 001. Signals and slots
- Result:42points,
- Rating points-8
- Оля Куликова
- Jan. 20, 2025, 12:28 p.m.
Qt - Test 001. Signals and slots
- Result:47points,
- Rating points-6