Questions tagged [Patterns of designing] (428)

1
answer

What design pattern best for Android apps?

Thought about the MVP, but in Java more issues with events (than say in C#) turns crooked, maybe someone thought about it? or maybe a link to a clear material, have someone give?
Warren asked October 14th 19 at 11:47
7
answers

Advise books on C++, STL, OOP, patterns

Basic knowledge of C++ already have, even wrote some applications. But it was all done by the method of scientific spear. I would like to study in depth the language and patterns inherent in C++. It is desirable that the book was written in easy and simple language, with exercises on each topic, so it is better to digest th...
Modesta_Colli asked October 14th 19 at 10:41
4
answers

In search of a pattern for processing the sample values?

Hi! Think about the pattern processing sampling from a database. In General, the problem in simplified form is this: there is a selection of some set of goods from the database, you need to handle the values for each item: — to apply discounts to apply filters to the product to the buyer — all bonuses — additional attr...
Sedrick_Hay asked October 10th 19 at 11:05
0
answer

How to intercept events of an object in Unity?

There is a Repository class that implements methods to access the database. There are also classes of tables, for example:public class Person<br> {<br> [Column]<br> public virtual long Id { get; set; }<br> <br / > [Column]<br> public virtual string Name { get; set; }<br> } They impl...
Ted8 asked October 10th 19 at 05:40
15
answers

What to read for the programmer to improve serious algorithmic basis in the corporate sector?

The third-year student. Fine program, many of which are already written, but I want to gain some serious algorithmic basis in the corporate sector — because there is no certainty in readiness to get a job. Actually please indicate what the best books can you recommend on the part of basic algorithms (including the contest t...
ruthe_Orn0 asked October 10th 19 at 01:02
3
answers

Java: How to pass an exception in the constructor of the singleton class getInstance()?

There is code like this (in this case non — working):public class SingletonClass { public SingletonClass() throws Throwable { /* ... */ } public static SingletonClass getInstance() throws Throwable { return SingletonHolder.instance; } private static class SingletonHolder { public static SingletonClass instance = new...
Winnifred25 asked October 10th 19 at 00:25
3
answers

Which pattern to use?

The problem is this: There is a certain application, some of it, the module works with dynamically linked plugins and he still performs some other task. Plugins work and return a structure as a result. Plugins can use each other, even cyclically. Ie a plugin can call to assist another( or maybe several, depending on what is...
jared.Leuschke asked October 9th 19 at 22:36
3
answers

Pattern Strategy

There is a small issue with this template. Read article habrahabr.ru/blogs/programming/132929/ Like even realized what was happening. Trying to implement, but not impossible. The fact that the example just calls a method of another class that displays a text string. In my case, it is required that the called method changes ...
Brian.Cummera asked October 8th 19 at 05:32
1
answer

Wanted to share the experience or the improvement of the design pattern Flyweight

Man I'm new here, posted one topic about the bridge — which caused a heated discussion. Another described a problem about the problems of the PLO in connection with such engineering Flyweight pattern. And recently almost solved this problem. For me it was very important, very much accelerated my calculations on bioinformati...
Chester.Lueilwi asked October 8th 19 at 02:14
3
answers

The principle of building models database for PHP?

There are 3 main Paterna building models database. This Data Table Gateway, Actrive Record, Data Mapper. I'd like to understand for what purpose is each of them to decide pros and cons. I'm not experienced enough to make them yourself, so ask for help from Habra residents.
henriette_Mante asked October 8th 19 at 01:55