#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11 12 
Top Prev 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 Next

#ruby-lang

<blink> i have a p statement iin my flow for debugging... but i can't find it.
<Olathe> Redefine p.
<Olathe> Have it tell you who the caller is.
<blink> good point.
<LoganCapaldo> Mmm
<blink> of i could just darcs whatsnew| grep ' p '
<LoganCapaldo> Or port everything to smalltalk
<blink> s/of/or/
<blink> OOFreak.
<LoganCapaldo> Functional OO freak
<LoganCapaldo> bwahahahahah
<blink> FOOF
<blink> Functional Object Oriented Lobster
<Olathe> Heheh
<LoganCapaldo> man the history channel sure loves the F-14
<apeiros> DSL + callbacks = PITA :-S
<LoganCapaldo> apeiros, decrease the DSL cleverness level, and the PITAness will decrease :)
<shevy> hey LoganCapaldo
<shevy> i have the same dream
<apeiros> LoganCapaldo, without DSL it becomes even more pain
<LoganCapaldo> its a fundamental law of ruby
<shevy> if you exchange occurences of haskell and smalltalk with ruby ;)
<apeiros> it's a UI description layer
<LoganCapaldo> no no
<LoganCapaldo> misunderstood
<apeiros> I could resort to XML of course :)
<LoganCapaldo> Don't _kill_ the DSL
<LoganCapaldo> Just turn down the magic
<LoganCapaldo> no instance_eval, no method_missing
<apeiros> LoganCapaldo, the only magic involved is instance_eval
<Olathe> Ooh ! Magic !
<apeiros> no method missing used
<LoganCapaldo> live with having a receiver
<apeiros> well, that is not the problem
<LoganCapaldo> You don't think it is but it is. Its always the problem
<LoganCapaldo> bwhaahahahaha
<apeiros> I don't think. I know.
<apeiros> the problem is the callbacks.
<shevy> hmm how to return only members of a hash, whose value matches something? (like, must be > 3 )
<apeiros> shevy, select?
<shevy> lets see
<apeiros> LoganCapaldo, the problem is that the callbacks target an object which has to be created before the dsl obviously (else neither obj.method nor proc { do_things_with(obj) } won't work)
<apeiros> but those callbacks usually will want to modify the UI, so they need to access that
<apeiros> current work-around: additional method #describe, so new can create the object, then you initialize the receiver for the callbacks with that object, after that you describe the UI
<apeiros> not that ugly, but still somewhat sub-par
<LoganCapaldo> apeiros, rip off MVC with outlets + actions ala cocoa instead of callbacks?
<LoganCapaldo> (rails's copy all ivars to the view doesn't count)
<argv[]> why not
<LoganCapaldo> cause it icky
<apeiros> LoganCapaldo, actually it is a "fuck ncurses" implementation :)

Previous Page  Next Page

Search ircarchive.info