Skip to content

Commit

Permalink
Replace TL;DR80 -> TL;DR
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bw committed May 10, 2019
1 parent 1417906 commit 2ea6bab
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion patterns/behavioral/chain_of_responsibility__py2.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
As a variation some receivers may be capable of sending requests out
in several directions, forming a `tree of responsibility`.
*TL;DR80
*TL;DR
Allow a request to pass down a chain of receivers until it is handled.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/chain_of_responsibility__py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
As a variation some receivers may be capable of sending requests out
in several directions, forming a `tree of responsibility`.
*TL;DR80
*TL;DR
Allow a request to pass down a chain of receivers until it is handled.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

"""
*TL;DR80
*TL;DR
Encapsulates all information needed to perform an action or trigger an event.
*Examples in Python ecosystem:
Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/
Implementation of the iterator pattern with a generator
*TL;DR80
*TL;DR
Traverses a container and accesses the container's elements.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/mediator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Objects in a system communicate through a Mediator instead of directly with each other.
This reduces the dependencies between communicating objects, thereby reducing coupling.
*TL;DR80
*TL;DR
Encapsulates how a set of objects interact.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/memento.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
http://code.activestate.com/recipes/413838-memento-closure/
*TL;DR80
*TL;DR
Provides the ability to restore an object to its previous state.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
http://code.activestate.com/recipes/131499-observer-pattern/
*TL;DR80
*TL;DR
Maintains a list of dependents and notifies them of any state changes.
*Examples in Python ecosystem:
Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
@author: Gordeev Andrey <[email protected]>
*TL;DR80
*TL;DR
Provides recombination business logic by chaining together using boolean logic.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/
*TL;DR80
*TL;DR
Implements state as a derived class of the state pattern interface.
Implements state transitions by invoking methods from the pattern's superclass.
"""
Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Define a family of algorithms, encapsulate each one, and make them interchangeable.
Strategy lets the algorithm vary independently from clients that use it.
*TL;DR80
*TL;DR
Enables selecting an algorithm at runtime.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
An example of the Template pattern in Python
*TL;DR80
*TL;DR
Defines the skeleton of a base algorithm, deferring definition of exact
steps to subclasses.
Expand Down
2 changes: 1 addition & 1 deletion patterns/behavioral/visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
http://peter-hoffmann.com/2010/extrinsic-visitor-pattern-python-inheritance.html
*TL;DR80
*TL;DR
Separates an algorithm from an object structure on which it operates.
An interesting recipe could be found in
Expand Down
2 changes: 1 addition & 1 deletion patterns/creational/abstract_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
https://sourcemaking.com/design_patterns/abstract_factory
http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/
*TL;DR80
*TL;DR
Provides a way to encapsulate a group of individual factories.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/creational/borg.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*References:
https://fkromer.github.io/python-pattern-references/design/#singleton
*TL;DR80
*TL;DR
Provides singleton-like behavior sharing state between instances.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/creational/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class for a building, where the initializer (__init__ method) specifies the
*References:
https://sourcemaking.com/design_patterns/builder
*TL;DR80
*TL;DR
Decouples the creation of a complex object and its representation.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/creational/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*References:
http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/
*TL;DR80
*TL;DR
Creates objects without having to specify the exact class.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/creational/lazy_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
werkzeug
https://github.com/pallets/werkzeug/blob/5a2bf35441006d832ab1ed5a31963cbc366c99ac/werkzeug/utils.py#L35
*TL;DR80
*TL;DR
Delays the eval of an expr until its value is needed and avoids repeated evals.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/creational/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
http://stackoverflow.com/questions/1514120/python-implementation-of-the-object-pool-design-pattern
https://sourcemaking.com/design_patterns/object_pool
*TL;DR80
*TL;DR
Stores a set of initialized objects kept ready to use.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/creational/prototype.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Below provides an example of such Dispatcher, which contains three
copies of the prototype: 'default', 'objecta' and 'objectb'.
*TL;DR80
*TL;DR
Creates new object instances by cloning prototype.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/fundamental/delegation_pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Reference: https://en.wikipedia.org/wiki/Delegation_pattern
Author: https://github.com/IuryAlves
*TL;DR80
*TL;DR
Allows object composition to achieve the same code reuse as inheritance.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/3-tier.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

"""
*TL;DR80
*TL;DR
Separates presentation, application processing, and data management functions.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
https://sourcemaking.com/design_patterns/adapter
http://python-3-patterns-idioms-test.readthedocs.io/en/latest/ChangeInterface.html#adapter
*TL;DR80
*TL;DR
Allows the interface of an existing class to be used as another interface.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*References:
http://en.wikibooks.org/wiki/Computer_Science_Design_Patterns/Bridge_Pattern#Python
*TL;DR80
*TL;DR
Decouples an abstraction from its implementation.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
https://en.wikipedia.org/wiki/Composite_pattern
https://infinitescript.com/2014/10/the-23-gang-of-three-design-patterns/
*TL;DR80
*TL;DR
Describes a group of objects that is treated as a single instance.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*References:
https://sourcemaking.com/design_patterns/decorator
*TL;DR80
*TL;DR
Adds behaviour to object without affecting its class.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
https://fkromer.github.io/python-pattern-references/design/#facade
http://python-3-patterns-idioms-test.readthedocs.io/en/latest/ChangeInterface.html#facade
*TL;DR80
*TL;DR
Provides a simpler unified interface to a complex system.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/flyweight__py2.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*References:
http://codesnipers.com/?q=python-flyweights
*TL;DR80
*TL;DR
Minimizes memory usage by sharing data with other similar objects.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/flyweight__py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*Examples in Python ecosystem:
https://docs.python.org/3/library/sys.html#sys.intern
*TL;DR80
*TL;DR
Minimizes memory usage by sharing data with other similar objects.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/front_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""
@author: Gordeev Andrey <[email protected]>
*TL;DR80
*TL;DR
Provides a centralized entry point that controls and manages request handling.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/mvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

"""
*TL;DR80
*TL;DR
Separates data in GUIs from the ways it is presented, and accepted.
"""

Expand Down
2 changes: 1 addition & 1 deletion patterns/structural/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-

"""
*TL;DR80
*TL;DR
Provides an interface to resource that is expensive to duplicate.
"""

Expand Down

0 comments on commit 2ea6bab

Please sign in to comment.