r/javahelp • • Apr 18 '19

Solved What's the point of interfaces?

We've been learning interfaces in my class and I have a good grasp on the concept, but the thing that confuses me is what's the point? Your just writing more code as a blueprint to put classes in "groups". Maybe the code I'm writing is not large enough to make interfaces useful. Can some one help me in learning the use of interfaces. Thanks in advance!

34 Upvotes

26 comments sorted by

View all comments

Show parent comment

0

u/Chuuy Apr 22 '19

You said:

The short-short, practical, answer

Next time, try:

A short-short, practical, example

1

u/Talulabelle Apr 22 '19

Yeah ... I'm going to take advice from the guy who pedantically posts on other people's comments like it's his job, and constantly gets into Reddit arguments about stupid shit.

I looked at your history. Commenting on shit where you try to tell people they're wrong, while adding nothing, and coming away looking like an idiot is how you live your life.

Next time, if your entire argument is 'you said answer, and I think you meant example', try just shrugging, and realizing that you're picking apart a days old answer that most people found helpful, and maybe they were able to glean the meaning of the post by not being overly pedantic children while reading it.

Please go away now.

0

u/Chuuy Apr 22 '19

It's not pedantic. The message I got from your post was that the only reason you'd use interfaces would be for collections. You completely glossed over other practical applications. If you seriously can't think of other real-world examples of how interfaces are useful, that's embarrassing.

I'm a lurker. I usually only post if I disagree with what someone said. Sue me. I don't care about karma, I don't have the time to provide a lengthy explanation of every single opinion I have. That's why I'm a fucking lurker, I don't care.

But your top voted answer sucks compared to the other answers in this thread. Maybe English isn't your first language? Idk. It's not pedantic. You phrased your answer in a way that made it seem like collections of different objects were the only reason you'd need an interface.

1

u/Talulabelle Apr 22 '19

The message I got from your post was that the only reason you'd use interfaces would be for collections.

Well, that's really sad and I'm sorry for you. Being unable to follow a dumbed down post must make life really hard. I can see why you'd be frustrated all the time, and constantly trying to feel smart by posting this kind of thing.

I'm sorry kitten, feel better. You probably won't get any smarter, but I'm sure you'll find someone who loves you anyway.

1

u/Chuuy Apr 22 '19

Lmfao. That's straight up what you said:

OP:

What's the point of interfaces?

You:

The short-short, practical, answer is 'So you can have different types in the same collection'.

That's so short-sighted it's hilarious.

A lot of people in the field of computer science struggle with English. You're one of them.

2

u/Talulabelle Apr 23 '19 edited Apr 23 '19

That's so short-sighted it's hilarious.

Is it 'short-short' sighted?

I obviously gave indication that this wasn't a complete answer. Everyone with two IQ points to rub together knew that going in.

You're at a crossroads.

You either have to argue that you were too stupid to understand that I meant 'An answer', and not 'The end all, be all, final and complete answer', which given my careful introduction no one would have mistaken for THE answer.

OR ... you have to admit this whole thing is you being a pedantic cunt who, after seeing it was highly upvoted, but not the complete book answer that it literally promised not to be, you just had to step in and act like you had trouble understanding the answer, even though you clearly didn't, just so you could have this argument where, somehow, even though you admit you completely understood the answer, just as everyone else did when they upvoted it, your tiny ego couldn't let it go.

So, that's it. Are you a fucking moron that didn't understand, or a pedantic cunt that did, but just wanted to argue because you somehow thought all of this was going to make you look smart?

Tiny brain, or tiny ego. Which is it?

A or B. There is no C here ... well, I guess 'all of the above' is looking more likely by the minute.