# "*": "https://raw.githubusercontent.com/wefindx/schema/master/intent/oo-item.yaml" # "base:title": "0oo - Code complexity and poor interoperability" "og:title": "Code complexity and poor interoperability" "og:description": "Most code is not computation but a struggle to arrange code so it can be understood and be interoperable between pieces of code by the compiler. Classes, methods, types all obscure the actual algorithm or computation (such as addition) used by a piece of software. If you were to distill most software down, there would be very little actual computation - comparisons and additions. Yet the code to produce this small amount of computation is a spider web of classes, interfaces, data structures etc. Most code is spent arranging data structures or API calls for method calls to be right. …" "og:image": "https://avatars0.githubusercontent.com/u/28134655" "og:url": "/intent/76001/" "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-multilingual": "/mulang/?mulang=true" "layout:lang": "言語" "layout:set-language-post-action": "/i18n/setlang/" "layout:csrf-token": "9JAPROEXEw7K0FwNsrygp5MIbdCvICeEdXQksgM6FpPeruDDxiUbzW2Z39MlViYm" "layout:input-next": "/intent/76001/" "layout:languages": [{"code": "ja", "is-active": "true", "name": "日本語"}, {"code": "lt", "is-active": "false", "name": "Lietuviškai"}, {"code": "zh-hans", "is-active": "false", "name": "简体中文"}, {"code": "en", "is-active": "false", "name": "English"}, {"code": "ru", "is-active": "false", "name": "Русский"}, {"code": "oo", "is-active": "false", "name": "O;o,"}] # "item:parent:intents": [{"title": "Programming too difficult", "url": "/intent/19001/"}] "item:title": "Code complexity and poor interoperability" "item:votes": 0 "item:add-vote": "#addnote" "item:intent": "/intent/76001/?l=ja" "item:base-administration": false "item:body": | Most code is not computation but a struggle to arrange code so it can be understood and be interoperable between pieces of code by the compiler. Classes, methods, types all obscure the actual algorithm or computation (such as addition) used by a piece of software. If you were to distill most software down, there would be very little actual computation - comparisons and additions. Yet the code to produce this small amount of computation is a spider web of classes, interfaces, data structures etc. Most code is spent arranging data structures or API calls for method calls to be right. In fact none of this syntactic sugar is represented in the output instruction stream! It's purely imaginary concepts used by the compiler to make code organisation easier. This job is not something humans should be doing. It's something a compiler can do. What if I said that code didn't have to be written this way? What if structures could be auto mapped at run time? That is, I have a data structure and there are fields that could have slightly different names - firstName and first_name are the same thing. Data structure nesting is another problem. Some people might pull fields into a substructure rather than in the root. Another problem is layering of code. If I have a simple data structure such as a btree. But I have concerns such as security, locking, caching/paging and other problems that a serious b tree needs. These concerns will mess up the reference implementation by polluting it with concerns that are not related to btrees. We need some way to layer code in a simple way. The Ruby class extension approach feels wrong. Subclassing is over complicated and feels wrong. I think this is an example of the expression problem. http://wiki.c2.com/?ExpressionProblem This category is to provide solutions to the complexity of modern code bases and poor inter operability problem. I think types are a good idea but in practice they are never used! Nobody uses the same types! People dont share types online! You're only using the same types if you use a library. I'm saying much of the boiler plate is unnecessary. "item:permalink": "/intent/76001/?l=ja" "item:source-date": "" "item:owner": "chronological" "item:ownerlink": "/user/198/chronological" "item:created": "2021-09-04T11:31:19.565594" "item:intent:child:add": "/admin/hlog/intent/add/?parent=76001" # "item:method:items": "item:method:add": "/admin/hlog/method/add/?parent=76001" "item:comment:add": "/intents/addnote?parent=76001" "item:comment:add:csrf_token": "9JAPROEXEw7K0FwNsrygp5MIbdCvICeEdXQksgM6FpPeruDDxiUbzW2Z39MlViYm" "item:comment:form": |