Aral Balkan

Realised last night that JavaScript Database (JSDB) doesn’t run the constructor on persisted custom objects (codeberg.org/small-tech/jsdb#c) when deserialising them because you apparently have to define your constructor manually when using Object.create().

Will fix it today but it’s something to watch out for if you’re using Object.create() directly.

For more info, see developer.mozilla.org/en-US/do

#JSDB #customObjects #constructor #bug #JavaScript

jsdb

A zero-dependency, transparent, in-memory, streaming…

codeberg.org
Habr

Конструкторы-самозванцы в Kotlin

Сегодня я хочу поговорить про интересные моменты в Kotlin, связанные с вызовами конструкторов классов. Или не совсем конструкторов? Или же совсем не конструкторов? Давайте разбираться. Это техническая статья для любителей языковых интересностей, не лишённая практического смысла.

habr.com/ru/articles/805767/

#kotlin #constructor #initialization #function

Конструкторы-самозванцы в Kotlin

Сегодня я хочу поговорить про интересные моменты в…

habr.com
ᛕᎥᕼᗷᗴᖇᑎᗴ丅Ꭵᑕᔕ

#DNA is not a #blueprint describing the #structure or the #function of an #organism.
It is rather a #recipe (an algorithm) that describes (#control) the #process of #construction, i.e. specifies what #action the #constructor has to perform at any moment depending on the constructor's own #state and that of its #environment.

The #function of the #organism is defined by its #structure as constructed by following the #DNA algorithm. Besides the functions involved in this process of self-construction and maintenance, a mature organism is also involved in the #production of #artifacts (messages, seeds) for dissemination (#communication) in the environment.