Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 70
  1. #31

    Default Re: Interfaces in Object Oriented Programming


    Ok @yanong_banikanhon how do you suggest an interface should be used?

  2. #32

    Default Re: Interfaces in Object Oriented Programming

    Quote Originally Posted by yanong_banikanhon View Post
    Just in case you don't know, Inversion of Control != Dependency Injection.
    For @yanong_banikanhon ignorance is not bliss. It's embarassing.

    Who ever posted that they were equal?

  3. #33

    Default Re: Interfaces in Object Oriented Programming

    Quote Originally Posted by yanong_banikanhon View Post
    Detonating Obama's desk and exploding Laden's bed are TWO DIFFERENT contracts. It just doesn't make any sense to put them into a single INTERFACE.
    Bro murag wala jud ka kasabot. (sigh) Lisuda gyud kung bright uy...

    I'm tired of explaining.

  4. #34

    Default Re: Interfaces in Object Oriented Programming

    Quote Originally Posted by canobic View Post
    For @yanong_banikanhon ignorance is not bliss. It's embarassing.

    Who ever posted that they were equal?
    Your earlier post implicitly tells so.
    See below (emphasis/highlight is done by me).

    Quote Originally Posted by canobic View Post
    ...And this one with (IOC) Dependency Injection in Spring:
    PHP Code:
    public class MyUserClass {
        private 
    MyWarInterface mwi;
        public 
    void detonateBomb() {
            
    mwi.detonateBomb();
        }
        public 
    void setMwi(MyWarInterface mwi) {
            
    this.mwi mwi;
        }    

    Kun dili equal nganong imo mang gitapad ang (IOC) ug dependency injection?

    Anyway, to continue our discussion, can you explain ngano dili equal ang IoC ug Dependency Injection?

  5. #35

    Default Re: Interfaces in Object Oriented Programming

    Quote Originally Posted by yanong_banikanhon View Post
    In a big team which is composed of smaller teams (may 4-10 people), it is not always the case that the guy who developed the class implementation is the same guy who will consume it.
    Duh...?

    Quote Originally Posted by yanong_banikanhon View Post
    If you have two classes which implements a single interface but yet these classes have two opposite implementations, obviously the guy who is going to consume your classes should know the implementation details before he can safely instantiate them.
    Duh...? That's why there are Business Requirements Documents (BRDs) and Functional Design Documents (FDDs). Wala moy requirements documentation sa inyong 'big' team?

    Quote Originally Posted by yanong_banikanhon View Post
    THIS DEFEATS the purpose of an INTERFACE which basically means a contract the implementation classes should adhere to.

    Detonating Obama's desk and exploding Laden's bed are TWO DIFFERENT contracts. It just doesn't make any sense to put them into a single INTERFACE.
    Do you even know what a contract here means? They can have world ends implementation who cares? If they're implementing the interfaces signatures then they are adhering to the "contract".

  6. #36

    Default Re: Interfaces in Object Oriented Programming

    Quote Originally Posted by yanong_banikanhon View Post
    Your earlier post implicitly tells so.
    See below (emphasis/highlight is done by me).



    Kun dili equal nganong imo mang gitapad ang (IOC) ug dependency injection?

    Anyway, to continue our discussion, can you explain ngano dili equal ang IoC ug Dependency Injection?
    So if itapad already means equal. hmm... karon pa ko..

  7. #37

    Default Re: Interfaces in Object Oriented Programming

    @yanong_banikanhon kung wala pa gyud ka kasabot mas maayo pa magbasa na lang ka before ka muhirit. Kaklaro na nai oist! Lalisan pa ni?

  8. #38

    Default Re: Interfaces in Object Oriented Programming

    Quote Originally Posted by maddox22 View Post
    Do you even know what a contract here means?
    Let's assume I don't know. Can you explain what is a contract (in the context of interface) in your own words?

    Quote Originally Posted by jonasbelita View Post
    @yanong_banikanhon kung wala pa gyud ka kasabot mas maayo pa magbasa na lang ka before ka muhirit. Kaklaro na nai oist! Lalisan pa ni?
    Dili man klaro bay. Wala may post ani nga thread nga nag-explain sa kalainan sa IoC ug DI. Pwede imong i-explain ang kalainan sa Inversion of Control ug Dependency Injection?

    Kundili ka makaexplain, magduda na noon ang mga makabasa aning thread nga usa ka sa mga programmer nga pataka la'g gamit2x og mga buzzword pero wala diay kasabot sa meaning.Hehe...Explain daw bay, bi. Ayaw hatag og links. Explain it in your own words.

  9. #39

    Default Re: Interfaces in Object Oriented Programming

    hala! ako na hinuon gi-challenge! HAHAHAHAHA!!!

    ngita lang gyud ka lusot bai da... hahaay... o sige sa akong kaugalingong mga pulung...

    IOC is the principle and DI is the (most popular?) implementation of the said principle. pareha sa Spring ang iya implementation for IOC is DI.

    ako nang kaugalingong mga pulung ha! challenge-challenge ka bro or wala lang gyud ka kasabot?

    gi-explain na sad ni @maddox ba or @canobic unsa nang IOC or inversion of control. wala siguro ka kabantay kay wala man ka kasabot! HAHAHAHAHA!!!

  10. #40

    Default Re: Interfaces in Object Oriented Programming

    Quote Originally Posted by maddox22 View Post
    bro @yanong_banikanhon developers hold the control. Mao gani ginatawag ug IOC or Inversion of Control because you remove the control from the user class and giving it to the framework such as Spring and to you as the developer. Gets na?
    kana bro @yanong_banikanhon wala na nimo nabantayan?

  11.    Advertisement

Page 4 of 7 FirstFirst ... 23456 ... LastLast

Similar Threads

 
  1. Object Oriented Programming
    By poymode in forum Programming
    Replies: 31
    Last Post: 09-02-2011, 10:21 AM
  2. Your opinion regarding Josh Hartnett interview in ABC's program
    By epardz_azia in forum General Discussions
    Replies: 7
    Last Post: 03-24-2009, 10:20 PM
  3. 3 killed in Negros Oriental clash
    By radiostar in forum Politics & Current Events
    Replies: 7
    Last Post: 09-22-2008, 11:32 PM
  4. C/C++ i need help in making a program
    By mE_bytes in forum Programming
    Replies: 54
    Last Post: 07-30-2008, 05:41 PM
  5. Need help in Installing Java programs in my Samsung D880
    By Soj in forum Software & Games (Old)
    Replies: 0
    Last Post: 04-24-2008, 06:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top