Search found 1226 matches

by dafhi
Oct 02, 2018 14:08
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

my starting point, following your example (paul) probably is something like this Ok, so you're trying to abstract the screen into a class, and then use other objects (such as images) to perform several other tasks (blitting, etc.). All this with the purpose of implementing a fully abstract renderer...
by dafhi
Oct 02, 2018 8:07
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

I'd forgotten about the destructors. I have adhd or something but i'll get through this. I'm trying to refactor so that I'll be able to continue simply: sprite.blit @buf my starting point, following your example (paul) probably is something like this type IimageVars extends object declare virtual de...
by dafhi
Oct 01, 2018 22:10
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

on the topic of memory leaks, in paul's example i *might* be seeing a sketchy scenario dim as IRenderableShape ptr renderableShapes( ... ) = { _ .. , _ new RenderableRectangleWithBorder( _ new RenderableRectangle( rectangles( 1 ), colors.red ), _ 5, colors.yellow ), _ and in the cleanup code, i'm th...
by dafhi
Sep 30, 2018 23:34
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

progress report /' '/ type IimageVars extends object declare virtual destructor declare abstract property pixels() as any ptr as integer w, h, bypp, pitch protected: declare constructor End Type constructor IimageVars end constructor destructor IimageVars end destructor /' '/ type IImage extends Iim...
by dafhi
Sep 28, 2018 21:07
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

very nice. thanks for sharing
by dafhi
Sep 28, 2018 7:51
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

your source is interesting enough that I'll read it before running. thanks a bunch!

[edit] m_color as int, line 156
by dafhi
Sep 23, 2018 21:08
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

That should do it. If I can come up with an example of where I'm having difficulty, that'd probably make things easier. Thinking I'll be quite busy for the foreseeable future. It could be weeks or months before I'm back in the programming game.
by dafhi
Sep 23, 2018 3:37
Forum: Projects
Topic: FB CAD
Replies: 160
Views: 75573

Re: FB CAD

you seem like a very positive guy.

[edit] .. to answer your question, how am i doing .. atm it's a tad rough. i get hit with these odd 'energy waves' which knock me about and obliterate my sense of direction. also my own energy can be extremely difficult to deal with
by dafhi
Sep 23, 2018 3:23
Forum: Projects
Topic: FB CAD
Replies: 160
Views: 75573

Re: FB CAD

i have a good memory :-) wondering how you are doing
by dafhi
Sep 23, 2018 3:01
Forum: Projects
Topic: FB CAD
Replies: 160
Views: 75573

Re: FB CAD

hi owen. i've been thinking about you
by dafhi
Sep 21, 2018 22:49
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

As much as I would like to write a fully-functioning path tracer, say, up to the level of Disney's Hyperion renderer, I'm not sure it's Really what I want to do. Will write more when I can
by dafhi
Sep 19, 2018 20:41
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

thank you sir. one day i'd like to write an oop tutorial. i think once i learn all the keywords i'll be able to write something good
by dafhi
Sep 19, 2018 20:08
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

Oh, so Interface Segregation was 'a piece of cake'? conceptually easy from a "customer is always right" view. The use of properties without encapsulation is an oxymoron. i misunderstood encapsulation. looking at the oop defiition, i see it includes the idea of restricting access to intern...
by dafhi
Sep 19, 2018 4:05
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

Dependency Inversion is the one I struggled with in the beginning. So far, I'd say the points I *like* best are Single Responsibility (which i am now somewhat familiar with) and Interface Segregation (which was a piece of cake) I'm tempted to quit using the Private, but continue with properties. If ...
by dafhi
Sep 18, 2018 9:21
Forum: Community Discussion
Topic: SOLID programming
Replies: 75
Views: 3671

Re: SOLID programming

paul doe wrote:It's interesting also to look at the other side of the coin: Object Oriented Programming is exceptionally bad. I find the quote by Edsger Dijkstra particularly amusing =D

".. which could only have originated in California." .. quite the sense of humor

Go to advanced search