# <!-- METAHEADER
# –––––––––––––––––––––––––––––––––––––––––––––––––– -->
"*": "https://raw.githubusercontent.com/wefindx/schema/master/method/oo-item.yaml"
# <!-- HEADER
# –––––––––––––––––––––––––––––––––––––––––––––––––– -->
"base:title": "0oo - Invariant optimisation code movement"
"og:title": "Invariant optimisation code movement"
"og:description": "Invariants such as item.size() &lt; 100 or this number greater than this number are really powerful for enforcing behaviour. I propose we use invariants to optimise code."
"og:image": "https://avatars0.githubusercontent.com/u/28134655"
"og:url": "/method/144001/"
"base:css": "/static/css/bootstrap.min.9c25540d6272.css"
"base:extra-css": "/static/css/base.57997aeac1df.css"
"base:favicon": "/static/favicon.acaa334f0136.ico"
"base:body_class": ""
"layout:logo": "/static/0oo.8d2a8bbef612.svg"
"layout:index": "/"
"layout:menu": "/menu/"
"layout:categories": "/intents/"
"layout:ideas": "/methods/"
"layout:projects": "/projects/"
"layout:users": "/users/"
"layout:about": "/about/"
"layout:help": "/help/"
"layout:bug_report": "https://github.com/wefindx/0oo"
"layout:login": "/accounts/login/"
"layout:light-off": "/darken/?darken=true"
"layout:set-monolingual": "/mulang/?mulang=false"
"layout:lang": "Language"
"layout:set-language-post-action": "/i18n/setlang/"
"layout:csrf-token": "wc6Q3U1J4mTcb5W40bQn9mqBokwvpbr77W53kXHktx8yNYylm20JWFRvsErGF6Cg"
"layout:input-next": "/method/144001/"
"layout:languages": [{"code": "ja", "is-active": "false", "name": "日本語"}, {"code": "lt", "is-active": "false", "name": "Lietuviškai"}, {"code": "zh-hans", "is-active": "false", "name": "简体中文"}, {"code": "en", "is-active": "true", "name": "English"}, {"code": "ru", "is-active": "false", "name": "Русский"}, {"code": "oo", "is-active": "false", "name": "O;o,"}]
# <!-- TOPIC
# –––––––––––––––––––––––––––––––––––––––––––––––––– -->
"item:parent:intents": [{"url": "/intent/159001/", "title": "Optimising software"}]
"item:title": "Invariant optimisation code movement"
"item:summary": "Imagine I have a nested loop and I do lots of work in this nested loop. Wouldn&#x27;t it be more efficient to do some of this work incrementally such as when objects are created?"
"item:voting": 0
"item:voting:add": "/admin/hlog/voting/add/?method=144001"
"item:voting:csrf_token": "wc6Q3U1J4mTcb5W40bQn9mqBokwvpbr77W53kXHktx8yNYylm20JWFRvsErGF6Cg"
"item:voting:submit-value-option": {"selected": "[-]", "value": "-"}
"item:base-administration": false
"item:body": |
    Invariants such as item.size() < 100 or this number greater than this number are really powerful for enforcing behaviour.
    
    I propose we use invariants to optimise code.
"item:source-date": ""
"item:permalink": "/method/144001/?l=en"
"item:owner": "chronological"
"item:created": "2022-06-16T13:08:48.610631"
"item:ownerlink": "/user/198/chronological"
# <!-- LINKS
# –––––––––––––––––––––––––––––––––––––––––––––––––– -->
"item:link:add": "/admin/hlog/link/add/?parent=144001"
"item:link:items":
"item:project:items":

# <!-- COMMENTS
# –––––––––––––––––––––––––––––––––––––––––––––––––– -->
"item:comment:items":
"base:js": "/static/js/base.c7357c06cc89.js"
