Search:

Type: Posts; User: ischuldt

Search: Search took 0.10 seconds.

  1. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    These are just implementation details that can just as easily be hidden within the screen itself. Nobody needs to know these things in order to use it. What they care about is that you want to...
  2. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    Screen is more of a specific type of a RenderingDevice. Utimately you could derive whatever device you wanted off of that. Since in this case I'm interacting with a typical screen that's what I...
  3. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    Essentially your graphics class is similar to what my screen class would be except it wouldn't draw itself, it would draw an object that it was given.


    The fact that you and I read the same spec...
  4. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    I think you are making a couple significant mistakes here though. First, how do your graphics know how to render themselves unless they know what they are rendering themselves to? Is it a screen? ...
  5. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    How exactly do you expect your rendering job to know how to render if it doesn't know what it's rendering to? Either the Job gets passed into Screen(what I'm saying you should do), or the Screen...
  6. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    No, you really don't seem to understand object oriented programming. What you are talking about is functional programming. Your using an object, but ultimately your thinking is functional. You're...
  7. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    I think that if you want to call yourself an object oriented programmer then there certainly is a final answer. A function on an object is something that you do to the object. Render isn't...
  8. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    Except you can't because they named it specifically after what it does. Therefore adding additional functionality would make it into something else. If you had and objected called Runner with a...
  9. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    But if you're going to do that why bother object oriented programming at all? You're just functional programming using objects. If you're going to create an object who's only purpose is to execute...
  10. Replies
    25
    Views
    3,510

    Re: functional programming with objects

    Right, but they get around that by adding "er" to the end of a verb and turn it into a noun. They say "I want to render so I create a Renderer." I want to search so I'll create a Searcher. ...
  11. Replies
    25
    Views
    3,510

    functional programming with objects

    I'm a big object oriented programmer myself, but I currently work for a company where my two immediate supervisors are big C++ guys who were raised on functional programming. They claim they want to...
Results 1 to 11 of 11