Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: The world is not object oriented

by exussum0 (Vicar)
on Jan 02, 2004 at 17:12 UTC ( [id://318354]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: The world is not object oriented
in thread The world is not object oriented

I dedicate this post to you, since it's my 100th writeup :)

Well, I usually say good morning until noon, and refer to 3 in the morning when people call me that late/early.. but we can always say it's an object type BeforeNoon, but we can quible on that, since AM and PM doese have some sorta binary meaning.

The only "clear" definition of OO is so broad that it becomes useless in practice
I strongly disagree with this. The most freeform language you can have is machine language. All the higher level languages do is impose a syntax and laws of use. For instance, I've worked at companies where this_is_a_function vs thisIsAFunction was enforced. WHere tabs and spacing are dictated. This is to make things easier to read. Yes, we can argue that once you know a language it should be easy, but that's not the point.

All languages like java, php, perl, c++ and even c do, is dictate how OOP can and can't be usd. in C, it's the most liberal, since you can use OOP by emulation with structs. php and perl are of varying amounts of freedom. Java is very strict. In the broadest, most liberal sense, it's still quite useful. If you impose coding standards on it which govern usage, you come up with your own language where certain things aren't allowed. Even perl can be made to emulate java by never using multiple inheritance. Define an interaface by having all your methods as die().

It's a reason why there are a lot of people use java for oop and perl for oop. A lot of people agree that java's restrictions (permissions and usage) for how clases work is better than most. The perl people like the freedom they have. It's why languages strive, people agree on stuff :) So you see, the practical ones that people like, such as perl's, php's, java's, c's (lack there-of or via struct-emulation) is clear for them and thus highly usable.


Play that funky music white boy..

Replies are listed 'Best First'.
Re: Re: Re: Re: The world is not object oriented
by hardburn (Abbot) on Jan 02, 2004 at 17:45 UTC

    All languages like java, php, perl, c++ and even c do, is dictate how OOP can and can't be usd.

    No, they provide the syntax for doing OOP. Java, for instance, allows you to make a class definition that is nothing more than publically-accessible attributes. Such a class uses Java's object syntax, but it isn't really an object. It's a data structure. If what you need is a data structure, that's fine, but don't call it an object just because it's syntax makes it look like one.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    : () { :|:& };:

    Note: All code is untested, unless otherwise stated

Re^4: The world is not object oriented
by Coruscate (Sexton) on Jan 03, 2004 at 23:55 UTC

    All in good fun :)

    I usually say good morning until noon, and refer to 3 in the morning when people call me that late/early.

    See, now you are half-contradicting yourself! You say you refer to it as morning, then you go on to say that it is both early and late. So is "January 3, 2003 at 3 AM" January 2nd's late night or January 3rd's early morning? Technically, it is January 3rd's early morning, but human perception and thinking comes into play. Even the simplest things can become confusing, because all it takes is one person who thinks differently than the majority of others.

      Yeah, but AM and PM stand for something. It's Boolean in nature somehow. We, if we worked on a project, could agree on something. $this->{isPm} is easy

      Play that funky music white boy..
        Except at noon and midnight. noon is neither before or after noon, and midnight is equally before and after, breaking the boolean AM/PM you believe exists.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://318354]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-03-28 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found