OOP framework

Discuss any general programming issues here
asrael
Posts: 20
Joined: Mon Jul 23, 2018 6:57 pm

Re: OOP framework

Post by asrael » Thu Aug 30, 2018 9:42 am

Can you add some examples how that is used?

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: OOP framework

Post by SamuraiCrow » Fri Aug 31, 2018 7:42 am

That's coming. Unit tests are coming as well.

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: OOP framework

Post by SamuraiCrow » Tue Sep 11, 2018 3:47 pm

UPDATE: Bugfixes implemented at the above link to GitHub.

Question:
What do people think about me leaving constructors out of the class.hws file? Most people I know of in C++ use the default constructor in a "factory method" anyway because it's faster and more flexible. Is there any advantage at all to having custom constructors that defining a factory method wouldn't?

Partial answer:
Since neither Hollywood nor Objective C uses name mangling that I can tell, there will be namespace collisions if I name every constructor the same as its outer class structure. Also, if I embrace the AmigaE style of constructor (giving each a unique name), it's basically just a less-flexible factory method anyway.

Bugala
Posts: 691
Joined: Sun Feb 14, 2010 8:11 pm

Re: OOP framework

Post by Bugala » Sun Sep 16, 2018 12:55 pm

Article that might be worth reading, or then not.

https://medium.com/@cscalfani/goodbye-o ... 9cda4c0e53

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: OOP framework

Post by SamuraiCrow » Sun Sep 16, 2018 9:44 pm

Thanks, Bugala! I'm only including single inheritance for framework compatibility but emphasizing interface inheritance as the main expansion. Good article though.

asrael
Posts: 20
Joined: Mon Jul 23, 2018 6:57 pm

Re: OOP framework

Post by asrael » Mon Sep 17, 2018 9:35 am

Bugala wrote:
Sun Sep 16, 2018 12:55 pm
Article that might be worth reading, or then not.

https://medium.com/@cscalfani/goodbye-o ... 9cda4c0e53
Neither OO nor FP is the magic bullet.
And then OO is not equal to OO. There are many additional concepts and implementations which try to eliminate the weak spots of OO.
FP is there even longer than OO and it hasn't saved us either.


Manfred

Bugala
Posts: 691
Joined: Sun Feb 14, 2010 8:11 pm

Re: OOP framework

Post by Bugala » Wed Sep 19, 2018 5:26 pm

There was actually one good comment by reader after that article which basically pointed out that when using OO correctly, it works where it works, and when using FP correctly, it works where it works. So neither is a solution for all, but both are a solution somewhere.

Post Reply