Page 13 of 19 FirstFirst ... 31112131415 ... LastLast
Results 121 to 130 of 182

Thread: Mono Developers Go Bye-Bye From Attachmate

  1. #121
    Join Date
    Oct 2008
    Posts
    3,035

    Default

    Quote Originally Posted by Znurre View Post
    Nope, interfaces and header files are very different.
    Interfaces in Java and C# are like abstract classes, except that you can implement several at once.
    In C++, you don't have interfaces, instead you can inherit multiple classes and some of them can be abstract classes, if that is what you want.

    Separating the class declaration (header) from the actual implementation (source) makes the code cleaner.
    Right. Basically, C# gives you a single abstract class you can inherit from, or multiple interfaces. Headers in c++ can be like either. I'm not seeing the big difference.

    Multiple inheritance is indeed pretty unique to c++. There's a reason for that, though - it's generally agreed that no one needs it, and it is one of the toughest bits for c++ compilers to get right so new languages have all basically agreed not to support it.

    Can you explain what it is that you need multiple inheritance for? Requiring header files is generally seen as a big weakness of c++, not a strength.

  2. #122
    Join Date
    Aug 2008
    Location
    California, USA
    Posts
    196

    Default

    Quote Originally Posted by bwat47 View Post
    Thinking mono is some kind of secret threat to free software is like the people saying obama is a sleeper muslim terrorist.

    Start using some fucking common sense. Mono is based on an open standard and is free software, stop making all these ridiculous claims that its evil.
    There is still the issue of proprietary namespaces being implemented. These namespaces are neither open nor are they widely used on UNIX.

  3. #123
    Join Date
    Apr 2010
    Posts
    271

    Default

    Quote Originally Posted by wswartzendruber View Post
    There is still the issue of proprietary namespaces being implemented. These namespaces are neither open nor are they widely used on UNIX.
    Then don't use them, and when Mono gets hit with a lawsuit and eventually removes them your code will still work.

  4. #124
    Join Date
    Oct 2007
    Location
    Under the bridge
    Posts
    2,126

    Default

    Quote Originally Posted by Znurre View Post
    Nope, interfaces and header files are very different.
    Interfaces in Java and C# are like abstract classes, except that you can implement several at once.
    In C++, you don't have interfaces, instead you can inherit multiple classes and some of them can be abstract classes, if that is what you want.

    Separating the class declaration (header) from the actual implementation (source) makes the code cleaner.
    But it also creates a host of other problems: slow compilation (because the headers are reparsed/recompiled every time you include them), circular inclusion issues, double inclusion issues and just plain nastiness (e.g. impossibility to implement proper refactoring tools).

  5. #125
    Join Date
    Oct 2007
    Location
    Under the bridge
    Posts
    2,126

    Default

    Quote Originally Posted by kraftman View Post
    I thought I explained what I meant. BSD is also free software, but it doesn't make it any better. I support Free Software, because I support GPL and Free Software friendly projects.
    Sorry to burst your little bubble, BSD is an FSF-approved license. It's not just free, it's blessed by his holiness himself.

    Freedom to study, modify and redistribute all software, that's what the FSF strives for. Unfortunately, it's obvious that you don't share that goal.

  6. #126
    Join Date
    Oct 2010
    Posts
    57

    Default

    Quote Originally Posted by smitty3268 View Post
    Right. Basically, C# gives you a single abstract class you can inherit from, or multiple interfaces. Headers in c++ can be like either. I'm not seeing the big difference.

    Multiple inheritance is indeed pretty unique to c++. There's a reason for that, though - it's generally agreed that no one needs it, and it is one of the toughest bits for c++ compilers to get right so new languages have all basically agreed not to support it.

    Can you explain what it is that you need multiple inheritance for? Requiring header files is generally seen as a big weakness of c++, not a strength.
    I don't need multiple inheritance for anything, usually, but sometimes it's a nice way to create a better structure in your project.
    As for why I see header files as a strength, I already explained that it gives cleaner code.
    You can declare members, virtual functions etc. in the header files without polluting the source, and being a very pedantic person I like that.

    I also like that I can press F4 in Qt Creator to change quickly between source and header, for quick navigation in the code.
    Sure. circular inclusions is a bitch, but with just a slight bit of planning you won't run into it.
    And compile times, well it's not really a problem with an i7 and -j 8

  7. #127
    Join Date
    Oct 2007
    Posts
    1,258

    Default

    Good riddance. Mono is a disease. And no, I don't feel sorry for the devs that can collect unemployment and have novell/microsoft on their resume. They'll be fine.

    The only useful Mono app I can think of is Banshee and there are plenty of alternatives. Oh, and watching the Olympics with silverlight/moonlight was a painful experience that involved VM's, using another computer with Windows, and finally, hacked python scripts, (and lots of cursing intermixed). Any "cross-platform" media streaming solution that makes Flash look good should die a horrible death.

  8. #128
    Join Date
    Oct 2007
    Location
    Under the bridge
    Posts
    2,126

    Default

    Quote Originally Posted by Znurre View Post
    I don't need multiple inheritance for anything, usually, but sometimes it's a nice way to create a better structure in your project.
    As for why I see header files as a strength, I already explained that it gives cleaner code.
    You can declare members, virtual functions etc. in the header files without polluting the source, and being a very pedantic person I like that.
    For this very limited use case, a C# interface is 100% equivalent. You do not even need to type it by hand (right click -> extract interface in any C# IDE).

  9. #129
    Join Date
    Oct 2010
    Posts
    57

    Default

    Quote Originally Posted by BlackStar View Post
    For this very limited use case, a C# interface is 100% equivalent. You do not even need to type it by hand (right click -> extract interface in any C# IDE).
    Yeah, you're right. Again it's just me who prefers a stricter solution.
    Using interfaces like that seems more like a hack to me :P

  10. #130
    Join Date
    May 2010
    Posts
    684

    Default

    Quote Originally Posted by DanL View Post
    Good riddance. Mono is a disease. And no, I don't feel sorry for the devs that can collect unemployment and have novell/microsoft on their resume. They'll be fine.

    The only useful Mono app I can think of is Banshee and there are plenty of alternatives. Oh, and watching the Olympics with silverlight/moonlight was a painful experience that involved VM's, using another computer with Windows, and finally, hacked python scripts, (and lots of cursing intermixed). Any "cross-platform" media streaming solution that makes Flash look good should die a horrible death.
    The trolls just keep streaming in.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •