This article explores various design patterns for developing ...
Design patterns were originally codified in Gang of Four's ... Today we develop using mixed patterns typically called MVC, MVVM, MVP, MOVE, etc.
const { getElement } = require('./getElement.js'); | |
const getScope = (sel) => { | |
return getElement.scope(); | |
}; | |
export { | |
getScope |
const { getAngular } = require('./getAngular.js'); | |
const getElement = (sel) => { | |
return cy.get(sel) | |
.then($el => getAngular() | |
.then(ng => ng.element($el))); | |
}; | |
export { |
const getAngular = () => | |
cy.window().its('angular'); | |
export { | |
getAngular | |
}; | |
const compose = (...fns) => fns.reduce((f, g) => (...args) => f(g(...args))); | |
export { | |
compose | |
}; |
. | |
├── features | |
│ ├── ZOLL-UI__homeUnit--hamburgerMenu.feature | |
│ ├── given_test.feature | |
│ └── index.feature | |
├── index.js | |
└── utils | |
├── compose.js | |
├── getAngular.js | |
├── getElement.js |
. | |
├── config | |
│ └── development.json | |
├── fixtures | |
│ └── example.json | |
├── integration | |
│ ├── gherkin_spec.js | |
│ └── home-unit_spec.js | |
├── plugins |
const $$ = (el) => document.querySelector(el); | |
const $ = (el) => ({ | |
ready: (cb) => el.addEventListener('DOMContentLoaded', cb), | |
click: (cb) => $$(el).addEventListener('click', cb), | |
hide: () => $$(el).setAttribute('style', 'display: none;') | |
}); | |
$(document).ready(() => { | |
$('button').click(() => { | |
$('p').hide(); |
by politics i understand the fundamental problem of supplying answers to matters of economic conflicts over resources inasmuch as conflicts are described from and through ontological positions and configurations concerning who, what, when, where, why and how those answers may satisfactorily address needs and wants with the most without giving rise to antagonism. who wants, who needs, what is wanted, what is needs, when, why, etc.
by praxis i understand the grounding of normativity in the recognition of ecologies of knowledge which depend on every species' ergnonomic fit to their environment such that it informs their practices of sacrifice,
3.8.2 |