TGViewer
HowProgrammingWorks - JavaScript and Node.js Programming HowProgrammingWorks - JavaScript and Node.js Programming @howprogrammingworks · 6.52K subscribers
Post #1954 2.24K
На воркшопе по парадигмам (на этих выходных) я решил развернуть их сравнение через свойства кода, которые мы достигаем благодаря следующим идеям и их комбинациям:

- Control Flow: Statements, algorithm steps, Expression, Command-style, Declarative style
- State: Mutable, Immutable, Copy-on-write, Stateless
- Contexts: Objects, Records, Closures, Containers, Modules
- Branching: statement, expressions, guards, pattern matching
- Iteration: Loops, Recursion, Iterators / Generators, Streams
- Instantiation: Operator new, Creational patterns like Factory, Builder, Closures, Containers, Cloning
- Inheritance: Classes (extends), Interfaces (implements), Prototype programming, Mixins, Composition, Aggregation, Partial/Curry, Traits
- Primitive values: Scalars, Boxing, Value Objects, Containers
- Purity: Pure functions, Functions with side effects, IO monads
- Evaluation Flow: Function composition, Nested calls, Pipeline |>
- Dependencies: pass, injection, global namespaces, service locators
- Structural Control: Pattern matching, Nested if/else conditionals, Guards
- Error handling: Total functions, Throwing exceptions, Error codes, Return null, undefined, Null objects, Option / Either / Result / Promise
- Stability of Effects: Idempotent operations, Order-sensitive operations, Commutative / associative operations
- Resource Control: Manual destruction, RAII / disposables, Region-based allocation
- Concurrency Model: Shared-memory, Stateless, Message passing (Actor model),  Transactional
- Asynchronity: Callback, Promise, Async/await, Future, Task, Async compose, Observer (EventEmitter, EventTarget, Signal), Streams and other abstractions
- Other topics: Data Ownership, Code granularity, Point-free style, Referential transparency
  • ❤ 5
  • 👍 2
  • 🔥 1
  • 💯 1
More from @howprogrammingworks
  1. Sep 30, 2026Тут пример, как я сделал рефакторинг reslop при помощи - Opus 5.5 как старшая модель - Gro…
  2. Sep 29, 2026Каждое ваше ревью слопа должно превращаться в скилл и в следующий раз уже вас не спрашиват…
  3. Sep 28, 2026В версии reslop v0.2.4 появилась возможность запускать тесты и инструменты с компактным вы…
  4. Sep 25, 2026https://youtu.be/hKigdmvste0
  5. Sep 24, 2026В эту субботу будет стрим по применению AI в создании архитектуры. - архитектурный дрейф и…
  6. Sep 24, 2026Post #2176
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →