#ruby-lang - Sun 18 Mar 2007 between 18:56 and 19:02



slapahoseems ambiguous to not use self.
because when you read the code, you have to think 'wait did i want th elocal var here, or the instance method?'
GarethAdamsthe ambiguity would be using a local variable to cover up the object which is already in self
slapahohmm
kedare_oGMo, i can upload the server as a zip , if you want (its just 1 file with 1 cgi)
oGMokedare_: eh paste them someplace?
slapahobut if you're writing a method and wanna use a local var named params... you have to know params is a rails provided instance method for a controller
you dont always know those
kedare_oGMo, oki
oGMolike the paste bin in the topic
kedare_oGMo, http://rafb.net/p/6c3bEm86.html (comments are in french , sorry ^^)
oGMofrench isn't too tough to figure out ;)
pataniscahey there! is there any easy way of listing all the subclasses of a given class?
oGMomm .. don't you need a servlet?
slapahogareth, you still here?
i hav ean additional question...
kedare_oGMo, i just put the ruby.cgi on the www/ directory
slapahopeople have told me to access @ivars via self.ivar and wrap @ivars in a method
accessor method
now that makes great sense to me...
so why not give params the same self. love ?
self.params
oGMoso i assume DocumentRoot actually makes a HTTPServlet::FileHandler for you
slapahoso you *always* refer to an instance method in the same way, self.
oGMokedare_: paste your cgi..?
GarethAdamsslapaho: the advice was to wrap an instance method in accessors, not necessarily to use self.
I'm almost certain of that
kedare_oGMo, i can access to the web server, and download images par exemple , its just all CGI are bugued :/
oGMo, ok
slapahowell, you have a point...
kedare_oGMo, http://rafb.net/p/MVVgf927.html
oGMo, you can access to the server here : http://kedare.ath.cx:8383/
oGMooh hah
you're not outputting anything
kedare_yes
slapahoit just seems too easy to have a conflict if you use localvar and method (implying self.)
kedare_i know ^^
oGMowell then it's not seeing headers :)
if you don't puts cgi.headers or whatever, you'll see that error
even if you don't have any content to serve

Page: 1 8 15 22 29 36 43 50 57 

IrcArchive