H
H
hokudjolsbsy2018-08-02 15:14:54
OOP
hokudjolsbsy, 2018-08-02 15:14:54

On what tasks to work out OOP, patterns in practice?

to meet the requirements of employers
to continue learning programming at the level of frameworks (in the manuals everything is based on OOP and patterns)
On what project / task did you really master, worked out such and such a technology / framework / pattern / tool - before that, swimming in this issue?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
MaxLich, 2018-08-03
@MaxLich

You just automate something (for example, a store, a library, etc. + any large program can be written with OOP), do decomposition, object connections, hierarchy, and here you will practice OOP. And in terms of patterns - there is a classic GOF, there are books on patterns for specific languages ​​​​(I know two of these for Java), and so, you read these books, write examples from them, tasks (if any), and then try to shove it all into your educational applications. The main thing to understand in patterns is where it can be applied, and what benefits they provide (and, of course, the cons and disadvantages of their use).

Z
zahardzhan, 2018-08-09
@zahardzhan

hokud Jolsbsy ,
In order to understand any pattern, any programming language that is rather poor in expressive means, which does not support the corresponding semantics by means built into the language, will do. It is best to take the assembler. Assembler does not support any high-level semantics, so it is the best language for learning patterns. In it, you will have to implement the Subroutine pattern, the Loop pattern, the Add Large Numbers pattern, the Array pattern, and many, many other patterns.
The very task of "learning patterns" is in a sense a perversion. This is equivalent to sawing off your own leg first, and then studying a set of crutches that will allow you to move normally, compensating for your inferiority.
If there is a task to study a pattern - take a language in which the semantics of this pattern is implemented without patterns, i.e. language means, study the implementation of this semantics, then return to your more miserable language, and try to come up with an implementation of this semantics in the form of a crutch (pattern) - this is the natural way of studying patterns.
Design Patterns in Dynamic Languages

P
Puma Thailand, 2018-08-02
@opium

Yes, on any, like, all frameworks are now OOP and use templates, well, almost all tasks are now written on frameworks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question