Author Topic: Interfaces  (Read 1110 times)

0 Members and 1 Guest are viewing this topic.

Offline S3THST4

  • Contributor
  • Jr. Member
  • *
  • Posts: 81
  • LOL, Women's Rights!
  • Field: Software Development
  • Real Name: Seth Jacoby
  • Favorite OS: Linux
  • Programming Language: C#
Interfaces
« on: November 08, 2009, 06:29:53 PM »
I've seen interfaces used sometimes, but I never really get the point of using them. All it seems is that you're declaring the methods before using them.
Is it an important concept?
Eric Clapton is God.


Offline AJ32

  • TCC Webmaster
  • Administrator
  • Cube Head
  • *
  • Posts: 1,403
  • "TCC Fuhrer"
    • Fox Software
  • Field: Software & Web Development
  • Real Name: Andrew Warner
  • Favorite OS: Windows
  • Programming Language: PHP
Re: Interfaces
« Reply #1 on: November 08, 2009, 06:35:07 PM »
Can't say much about them myself... other than I've never used them!  :-\

"Data is eternal, immortal, immutable. Even when the engineers and intelligence
behind its creation are gone, information, facts, and knowledge never die."

Offline gbertoli3

  • Expert
  • Sr. Member
  • *
  • Posts: 1,169
  • My Code Is In The Cube
    • Bertoli Family
  • Field: Software & Web Development
  • Real Name: Guido Bertoli
  • Favorite OS: Windows
  • Programming Language: C#
Re: Interfaces
« Reply #2 on: November 09, 2009, 04:59:51 AM »
Yeah same here. But from what I have seen is that it is just showing what the order is but I cannot say forsure.

Offline Rayne

  • Contributor
  • New TCC Member
  • *
  • Posts: 17
  • Resident Witch (Male, stop assuming otherwise)
    • The Wiccan Secks Hut
  • Field: Software Development
  • Real Name: Anthony Simpson
  • Favorite OS: Linux
  • Programming Language: Other
Re: Interfaces
« Reply #3 on: November 09, 2009, 09:15:53 PM »
It's a useful concept, especially in large systems. If any class implements a certain interface, you know for sure that that class implements all the methods in that interface. If it didn't implement the interface, you wouldn't know for sure. I suggest you check out Scala's 'trait' concept to get a good look at what interfaces should have been.
Acidrayne - Acidrayne - My website and blog.
Clojure - The Lisp that makes the JVM dynamic.
Haskell - An advanced purely functional programming language that puts the funk in funktion.

Offline AJ32

  • TCC Webmaster
  • Administrator
  • Cube Head
  • *
  • Posts: 1,403
  • "TCC Fuhrer"
    • Fox Software
  • Field: Software & Web Development
  • Real Name: Andrew Warner
  • Favorite OS: Windows
  • Programming Language: PHP
Re: Interfaces
« Reply #4 on: November 09, 2009, 09:28:28 PM »
I see, BTW if someone knows how to properly use them, that would make a good topic for a tutorial. ;)

"Data is eternal, immortal, immutable. Even when the engineers and intelligence
behind its creation are gone, information, facts, and knowledge never die."

Offline gbertoli3

  • Expert
  • Sr. Member
  • *
  • Posts: 1,169
  • My Code Is In The Cube
    • Bertoli Family
  • Field: Software & Web Development
  • Real Name: Guido Bertoli
  • Favorite OS: Windows
  • Programming Language: C#
Re: Interfaces
« Reply #5 on: November 12, 2009, 02:57:42 AM »
I just started reading up on them, maybe I'll write a tutorial for C# on it. Here is a good page on it: http://www.codersource.net/csharp_tutorial_interface.html

Offline RLondon

  • Randy London
  • Charter Member
  • Full Member
  • *
  • Posts: 167
  • Field: -
  • Real Name: Randy P. L. London
  • Favorite OS: Windows
  • Programming Language: -
Re: Interfaces
« Reply #6 on: August 22, 2010, 07:48:41 PM »
Ok, back to the topic...

I just approved a very good tutorial which explains interfaces very well, IMO :)
http://www.thecodecube.net/index.php?topic=804.msg36364#msg36364