#rubyonrails - Sat 31 Mar 2007 between 08:21 and 08:27

NY Lost Funds



ben_hi often use that
well, sometimes
ReinHAshims: classes are objects
AshimsReinH: a class is a description of what an object will be!
svdgraafclasses are objects in a phylosophical way :)
ReinHThey are instantiations of Class
ben_hsay you want to look up posts from all users, or from one user
ReinHAshims: you are... wrong.
class Foo is like Foo = Class.new
AshimsReinH: HAH! I won! and successfull confused the point to the chaps you're trying to explain too
ReinHclasses are objects.
ben_hthat's either Post.active_posts or @user.active_posts
ReinHAshims: doubtful
good try though
ben_hso post_source = (authed_as_admin? ? Post : @user); etc
shitty example maybe, but yeah. they're objects :)
ReinHAshims: as long as we're clear on the fact that you're wrong.
AshimsReinH: dude... .new is an instanciation method... it turns the class into a representation in memory, which is the object. Classes build objects, they're the groundwork of.
ReinHAshims: no.
AshimsReinH: OO programming 101.
ReinHClasses *are* objects. They are instantiations of Class.
as I just said.
AshimsReinH: now you're english isn't working.
ReinHsure it is
The only things that are *not* objects in Ruby are control structures like do end and if else and some operations
In smalltalk *everything* is an object.
In Ruby damn near everything is an object
AshimsRein: A class is the script representation of an object, a class doesn't exist after its compiled/run.
ReinHAshims: you. are. wrong.
AshimsReinH: You. Are. Wrong.
ReinHAshims: if a class didn't exist after it is run, it could not be opened at runtime.
ben_hAshims: seriously, you're wrong :)
Ashims^_^. you're freaking crazy people.
*vomits*
ben_hstraight from wikipedia:
"Ruby is object-oriented: every bit of data is an object, even classes and types that many other languages designate as primitives (such as integers, booleans, and "nil")."
3 is an object.
Ashimslols. I think we're arguing different things... I think I'm arguing the semantic meaning of the term class ;)
ReinHAshims: perhaps. But what matters is the Ruby meaning
Ashimslols. high five!

Page: 4 11 18 25 32 39 46 53 60 67 74 81 

IrcArchive

NY Lost Funds