oblomov, to programming
@oblomov@sociale.network avatar

I have a question for people with better theoretical background on and especially for developers.

Is the following pattern known and does it have a name?

I have a number of classes (call them C1, C2, etc) that all derive from the same class B. I have a superclass (template, actually) D that derives from C1, C2 etc. To have a single B, the standard solution is to go with virtual inheritance to close the diamond (so far, so good).

1/n

thelastpsion, to retrocomputing
@thelastpsion@bitbang.social avatar

A summary of my first impressions of 's object oriented ecosystem for .

TL;DR: It feels janky, but I'm also a noob. Plus what about Objective-C?

I'm certain there's loads that I've missed with this. Do feel free to comment with constructive information.

https://hackaday.io/project/161291-the-last-psion/log/226441-beginning-olib-an-entirely-uneducated-look-at-psions-proprietary-object-oriented-c

lispi314, to random

https://en.wikipedia.org/wiki/Entity_component_system#Characteristics

> This eliminates the ambiguity problems of deep and wide inheritance hierarchies often found in Object Oriented Programming techniques that are difficult to understand, maintain, and extend. Common ECS approaches are highly compatible with, and are often combined with, data-oriented design techniques.

I'm sorry what? Generics and multi-methods systems (https://en.wikipedia.org/wiki/Multiple_dispatch) have no such problem.

https://functional.cafe/@awkravchuk/110490845045463704

chemoelectric, to random
@chemoelectric@masto.ai avatar

Some programming in for . And I mean really , not type hierarchy masquerading as OO. Communicating objects.

There is no type hierarchy, because none is needed. One can use a closure to connect two objects, as long as the connection is compatible at both ends.

And there is just one thread, because why in heck would you need two threads, just to read the time on the clock??????

https://rosettacode.org/wiki/Active_object#ATS

mjgardner, to programming
@mjgardner@social.sdf.org avatar

@Perl For those who haven’t been following @ovid’s project to bring modern effective to , it’s coming this year with version 5.38’s experimental class feature.

Release engineer @rjbs is collecting the release branch in https://github.com/Perl/perl5/pull/21108; you can read the new class feature announcement at https://github.com/rjbs/perl5/blob/release-5.38.0/pod/perldelta.pod#new-class-feature, check https://github.com/rjbs/perl5/blob/release-5.38.0/pod/perlclass.pod for a full reference, or dive deep into the internals at https://github.com/rjbs/perl5/blob/release-5.38.0/pod/perlclassguts.pod

chemoelectric, to random
@chemoelectric@masto.ai avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • InstantRegret
  • ethstaker
  • osvaldo12
  • magazineikmin
  • GTA5RPClips
  • rosin
  • mdbf
  • Youngstown
  • Durango
  • slotface
  • everett
  • kavyap
  • DreamBathrooms
  • JUstTest
  • thenastyranch
  • tacticalgear
  • modclub
  • cisconetworking
  • tester
  • cubers
  • khanakhh
  • ngwrru68w68
  • normalnudes
  • megavids
  • anitta
  • Leos
  • lostlight
  • All magazines