Evgenii Legotckoi
Evgenii LegotckoiSept. 24, 2018, 8:23 a.m.

C++Example - Factory method in C++

шаблоны проектирования, factory, method, C++

Discussion. Frameworks are applications (or subsystems) with "holes" in them. Each framework specifies the infrastructure, superstructure, and flow of control for its "domain", and the client of the framework may: exercise the framework's default behavior "as is", extend selected pieces …

Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 24, 2018, 5:05 a.m.

Design PatternsStructural Design Patterns - Bridge

шаблоны проектирования, Bridge, мост

Goals

  • Separate the abstraction from its implementation so that they can change independently of each other.
  • Create a public interface in an inheritance hierarchy and implement it in your own inheritance hierarchy.
  • In addition to encapsulation, the use of isolation …
Read
Дмитрий
ДмитрийSept. 22, 2018, 4:16 a.m.

Projects based on QtReader fb2-files on Qt Creator

reader, читалка, fb2-читалка, html, fb2-reader, fb2

Some time ago I wrote an article in which I showed how to open a fb2 file with Qt tools. After some time, I noticed a number of shortcomings in it, which I decided to eliminate. Moreover, I found that …

Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 21, 2018, 7:11 a.m.

Design PatternsStructural Design Patterns - Adapter

adapter, шаблоны проектирования

Goals

  1. Converting a class interface to another interface. An adapter allows classes to work together that might otherwise be due to incompatible class interfaces.
  2. Wrapping an existing class in a new interface
  3. Compliance of the old component with the new …
Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 21, 2018, 3:18 a.m.

PHPExample - "Builder" design pattern in PHP

PHP, шаблоны проектирования, Строитель, Builder

In the Builder Pattern a director and a builder work together to build an object. The director controls the building and specifies what parts and variations will go into an object. The builder knows how to assemble the object given …

Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 21, 2018, 3:13 a.m.

DelphiExample - "Builder" design pattern in Delhpi

Builder, Delphi, Строитель, шаблоны проектирования

The functionality used in Delphi's VCL to create forms and components is similar in concept to the builder. Delphi creates forms using a common interface, through Application.CreateForm and through the TForm class constructor. TForm implements a common constructor using the …

Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 20, 2018, 9:33 a.m.

Design PatternsGenerative Design Patterns - Singleton

шаблоны проектирования, Синглетон, singleton

Goals

  1. Make sure the class has only one instance and provides a global access point to it.
  2. Encapsulated "initialization at a certain point in time" or "initialization on first use".

Problems

An application needs one and only one object instance. …

Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 20, 2018, 3:15 a.m.

QtQt for Python - UiFiles

PySide2, Qt, Python

This page describes how to use Qt Creator to create GUIs for your PySide software. You will need Qt Creator to design and modify your interface (ui file)

Qt Designer is used to create UI files.

In Qt Creator, create …

Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 19, 2018, 10:27 a.m.

Design PatternsGenerative Design Patterns - Prototype

Prototype, шаблоны проектирования, Прототип, abstract

Goals

  • Specify the types of objects to create using the prototype instance and create new objects by copying this prototype.
  • Create one instance of the class to use as the source for all future instances.
  • The new operator is considered …
Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 18, 2018, 6:06 a.m.

PythonExample - "Builder" design pattern in Python

Строитель, Python, Builder, шаблоны проектирования

Example of "Builder" desnig pattern in Python


"""
Separate the construction of a complex object from its representation so
that the same construction process can create different representations.
"""

import abc


class Director:
    """
    Construct an object using the Builder …
Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 18, 2018, 5:44 a.m.

C++Example - "Builder" design pattern in C++

cpp, Builder, Строитель, шаблоны проектирования

Discussion. The forte of Builder is constructing a complex object step by step. An abstract base class declares the standard construction process, and concrete derived classes define the appropriate implementation for each step of the process. In this example, "distributed …

Read
Evgenii Legotckoi
Evgenii LegotckoiSept. 18, 2018, 5:20 a.m.

JavaExample - "Builder" design pattern in Java

Java, шаблоны проектирования, Builder

Example of "Builder" design pattern in Java


/* "Product" */
class Pizza {
    private String dough = "";
    private String sauce = "";
    private String topping = "";

    public void setDough(String dough) {
        this.dough = dough;
    }

    public void setSauce(String …
Read
AD

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:50points,
  • Rating points-4
m

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:80points,
  • Rating points4
m

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:20points,
  • Rating points-10
Last comments
ИМ
Игорь МаксимовNov. 23, 2024, 12:51 a.m.
Django - Tutorial 017. Customize the login page to Django Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
Evgenii Legotckoi
Evgenii LegotckoiNov. 1, 2024, 2:37 a.m.
Django - Lesson 064. How to write a Python Markdown extension Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
A
ALO1ZEOct. 19, 2024, 8:19 p.m.
Fb3 file reader on Qt Creator Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html
ИМ
Игорь МаксимовOct. 5, 2024, 7:51 p.m.
Django - Lesson 064. How to write a Python Markdown extension Приветствую Евгений! У меня вопрос. Можно ли вставлять свои классы в разметку редактора markdown? Допустим имея стандартную разметку: <ul> <li></li> <li></l…
d
dblas5July 5, 2024, 11:02 p.m.
QML - Lesson 016. SQLite database and the working with it in QML Qt Здравствуйте, возникает такая проблема (я новичок): ApplicationWindow неизвестный элемент. (М300) для TextField и Button аналогично. Могу предположить, что из-за более новой верси…
Now discuss on the forum
m
moogoNov. 22, 2024, 8:17 p.m.
Mosquito Spray System Effective Mosquito Systems for Backyard | Eco-Friendly Misting Control Device & Repellent Spray - Moogo ; Upgrade your backyard with our mosquito-repellent device! Our misters conce…
Evgenii Legotckoi
Evgenii LegotckoiJune 25, 2024, 3:11 a.m.
добавить qlineseries в функции Я тут. Работы оень много. Отправил его в бан.
t
tonypeachey1Nov. 15, 2024, 7:04 p.m.
google domain [url=https://google.com/]domain[/url] domain [http://www.example.com link title]
NSProject
NSProjectJune 4, 2022, 3:49 p.m.
Всё ещё разбираюсь с кешем. В следствии прочтения данной статьи. Я принял для себя решение сделать кеширование свойств менеджера модели LikeDislike. И так как установка evileg_core для меня не была возможна, ибо он писался…

Follow us in social networks