immutability   701

« earlier    

New in Symfony 4.3: Configuring services with immutable setters (Symfony Blog)
A common need in some Symfony applications is to use immutable services while still using traits for composing their optional features. Although the Symfony service container supports setter injection, they have some drawbacks (e.g. setters can be called more than just at the time of construction so you cannot be sure the dependency is not replaced during the lifetime of the object).

A pattern to solve this problem are "wither methods". These methods typically use the with word as the prefix of their names (e.g. withPropertyName()) and they return a copy of an instance of an immutable class with only that one property changed:
symfony  patterns  dependency_injection  immutability 
8 weeks ago by archangel
The rise of immutable data stores
Some innovators are abandoning long-held database principles. Why? The website for Room Key, a joint venture of six hotel chains to help travelers find and book lodging, collects data from as many as 17 million pages per month, records an average of 1. via Pocket
IFTTT  Pocket  data  database  immutability  immutable  store 
february 2019 by ChristopherA
Immutable Model Mutability | GitHawk Blog
GitHawk is powered by an architecture and a few libraries that shine when fed with immutable models.
immutability  swift 
december 2018 by cocoasamurai

« earlier    

related tags

advocacy  algorithms  anonymity  anti-pattern  architecture  array  arrays  article  asynchronicity  automation  aws  bitcoin  blockchain  blogs  bottom-up-top-down-computing  bubble  cheatsheet  clojure  codesnippets  collection  composition  concurrency  configuration-management  cqrs  crime  cryptocurrencies  data  database  dc:creator=fordpaul  dctagged  deep-copy  definition  dependencies  dependency_injection  dependency_management  design  development  devops  docker  documentation  dynamic  early-computing  elm  email  es6  etsy  event-sourcing  explorer  extension  flusser  functional-programming  functional  functional_programming  functionalprogramming  gdpr  gender  git  go  go2  golang  google  gui  haskell  hn  hook  ifttt  immer  immutable-infrastructure  immutable  important  infrastructure-studies  infrastructure-tales  inhumanism  internet  is:video  issue  java  javafx  javascript  law  ledger  library  linuxkit  maven  microservices  money  mutability  mutate  mutation  node.js  object-assign  object-spread  oop  openjfx  opinion  paper  papers  patterns  persistence  php  pocket  presentations  programming  proposal  proxy  python  qldb  re-programmable-rhetoric  react.js  react  reactjs  reducer  redux  reference  relational  risk  ruby  rust  security  semver  sql  state  static  store  swift  symfony  transhumanism  tuple  typing  versioning  webdev 

Copy this bookmark:



description:


tags: