Announcement

Collapse
No announcement yet.

Ubuntu's Unity Written In Qt/QML For "Unity Next"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • JS987
    replied
    Originally posted by admax88 View Post
    OOP has actually very little to do with the "class" keyword. That's just a convenience. You can build powerful object oriented systems in C using function pointers. To harness OOP you basically just need to be able to implement polymorphism, which you can do in C using function pointers. The syntax isn't as pretty but it works.
    Similarly just because you're writing code using the "class" keyword doesn't mean you're writing an object oriented program. Many programs use "classes" as just modules to group related code not to create real objects.
    Function pointer isn't same as method. You can't do real OOP without methods.
    C++ supports also functional programming. It's your decision if you use OOP or not.

    Leave a comment:


  • admax88
    replied
    Originally posted by JS987 View Post
    I already said which features C is missing.
    You can read docs about classes

    http://en.wikipedia.org/wiki/Class_(...r_programming)
    OOP has actually very little to do with the "class" keyword. That's just a convenience. You can build powerful object oriented systems in C using function pointers. To harness OOP you basically just need to be able to implement polymorphism, which you can do in C using function pointers. The syntax isn't as pretty but it works.

    Similarly just because you're writing code using the "class" keyword doesn't mean you're writing an object oriented program. Many programs use "classes" as just modules to group related code not to create real objects.

    Leave a comment:


  • JS987
    replied
    Originally posted by Akka View Post
    Which is the essential feature you don't have in C which prevent real OOP . Classes is only a name on a solution. What is the essential feature C lack?
    I already said which features C is missing.
    You can read docs about classes

    Leave a comment:


  • Akka
    replied
    Originally posted by JS987 View Post
    They have equivalent.
    Which is the essential feature you don't have in C which prevent real OOP . Classes is only a name on a solution. What is the essential feature C lack?

    Leave a comment:


  • JS987
    replied
    Originally posted by dee. View Post
    Oh really.
    So prototype-based languages, like Javascript or Lua, aren't actually "real OOP"?
    They have equivalent.

    Leave a comment:


  • dee.
    replied
    Originally posted by JS987 View Post
    Real OOP languages have keyword class or some equivalent. You can't do real OOP with C as it supports only structure which isn't class.
    Oh really.

    So prototype-based languages, like Javascript or Lua, aren't actually "real OOP"?

    Leave a comment:


  • JS987
    replied
    Originally posted by Akka View Post
    I have never tried GObjects. But how do I identity real OOP. It is possible to create something like OOP in pure c. Many c project do that. Is that real OOP?
    Real OOP languages have keyword class or some equivalent. You can't do real OOP with C as it supports only structure which isn't class.

    Leave a comment:


  • Luke_Wolf
    replied
    Originally posted by Akka View Post
    I have never tried GObjects. But how do I identity real OOP. It is possible to create something like OOP in pure c. Many c project do that. Is that real OOP?
    Well there is no real or fake to OOP, OOP is simply the recognition that language is based upon objects and applying that to programming. That said languages can be either more or less accommodating to standard OOP design principles, which plain C isn't very accommodating for, although it is well worth noting that C++ (which is accommodating) was originally just a bunch of macros on top of C.

    Leave a comment:


  • Akka
    replied
    Originally posted by JS987 View Post
    GObject is retarded emulation of OOP.
    I have never tried GObjects. But how do I identity real OOP. It is possible to create something like OOP in pure c. Many c project do that. Is that real OOP?

    Leave a comment:


  • phoen1x
    replied
    Originally posted by pingufunkybeat View Post
    There is a very strange trend towards specialisation that is very new. It used to be that all distros offered tweaked KDE and GNOME desktops for the user to choose. Now it seems like each distro wants its own desktop in order to provide a certain kind of experience.

    GNOME is RedHat's private desktop nowadays.
    Unity is Ubuntu's desktop.
    Cinnamon is Mint's desktop.

    You can run them on other distros, but it's clear who does all the development and decides the direction.
    Wrong. Ubuntu still uses gnome, it's just by creating gnome-shell gnome developers let canonical create their own shell not whole DE. Cinamon is same gnome. Please just because it has different name it doesn't mean it absolutely new thing...

    Leave a comment:

Working...
X