#ruby-lang - Mon 7 May 2007 between 04:05 and 04:12

NY Lost Funds



manveruUser.to_s in Company will yield "#{user.last_name} #{user.first_name}" and in Internet it will give you user.nick
kmeyerweeeeeeeeeeeeeeird
manveruhttp://p-cos.net/documents/contextl-overview.pdf
OlatheEhh ?
dewmanveru: that's, uh, polymorphism?
manveruit's a unification of MVC and integrated view
kinda
the thing is
OlatheInconsistent results programming
manveruyou can nest your contexts
dewsuuuuurely it's breaking your MVC by confusing your views and controllers?
manveruuhm
let's see
OlatheWell, sleepy time.
manveruhttp://pastie.caboo.se/59485
is what i got so far
it's not working yet, but explains the basics
dewerr, i get it, i think
manveruso, depending how the nesting is at any point, i will include/exclude modules that overwrite methods
dew(bear with me, i have like 4 hours of ruby experience ;))
manveru:)
dewit seems reasonable, but it also seems like you could do it all with views
manveruyeap
dewbut then again there may be advantages i'm not seeing
manveruHowever, when programs become more complex, the code
dewas i'm guessing that's a very simplified example
manverufor displaying objects is usually not contained in the classes
to be displayed because there is a need to have different
views on the same objects, often at the same time. Therefore,
such code is separated into view objects that need to
be notified of changes to model objects (such as instances of
Rectangle or Person), leading to variants of the well-known
Model-View-Controller (MVC) framework originally introduced
with Smalltalk [22]. Unfortunately, this distribution
actionmanveru hides
manveruhides
of responsibilities that conceptually belong to a single object
complicates the original simplicity of the object-oriented
paradigm. For this reason, some more recent object systems
like Self and Squeak have even changed their frameworks for
presenting objects on the screen back to the original idea

Page: 2 9 16 23 30 37 44 51 58 

IrcArchive

NY Lost Funds