IWETHEY v. 0.3.0 | TODO
1,095 registered users | 2 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Re: OK, I see more clearly now
3 uses "load("second.rb")" to load 2 in the middle of its .rb file (that's a huge simplification, but the complex code in rails boils down to "load". They do it to be able to refresh code after it gets changed during development, I think).

Ahhh ... require won't load the same file twice, but load doesn't know anything about require's list of file names. So files loaded by 'load' are not reported to 'require' ... or something like that.

If Rails is working hard to load the file itself, is it possible for you to omit your require statement? There are a lot of declarations in rails that just handle the file loading automatically for you ... is there something you can take advantage of?
--
-- Jim Weirich jim@weirichhouse.org [link|http://onestepback.org|http://onestepback.org]
---------------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct,
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)
New It should be possible
But in the real code the require statementr is not there, either. The only thing that's "require"d is the top-level module.

I need to improve my model to figure out how that happens. Will try to do it later.

------

179. I will not outsource core functions.
--
[link|http://omega.med.yale.edu/~pcy5/misc/overlord2.htm|.]

     Ruby threw me a curve - (Arkadiy) - (25)
         Are you sure that is executed twice? - (ben_tilly) - (22)
             I am quite sure - (Arkadiy) - (21)
                 Ah, you're right, I looked closer at the method definition. -NT - (ben_tilly)
                 OK, now I see it - (Arkadiy) - (19)
                     Let me get this straight ... - (JimWeirich) - (18)
                         The scenario is correct - (Arkadiy) - (17)
                             Re: The scenario is correct - (JimWeirich) - (16)
                                 My environment - (Arkadiy) - (15)
                                     Re: My environment - (JimWeirich) - (14)
                                         OK, I see more clearly now - (Arkadiy) - (13)
                                             The rain has gone -NT - (jake123) - (10)
                                                 I can see all obstacles in my way -NT - (jake123) - (8)
                                                     Gone are the dark clouds that had me blind -NT - (jake123) - (7)
                                                         It's gonna be a bright (bright) bright (bright) sunshiny day -NT - (jake123) - (6)
                                                             A source of annoying catchphrases now. -NT - (Another Scott) - (5)
                                                                 Sorry, saw Arkadiy's subject line and it just popped into my - (jake123) - (4)
                                                                     (Twas just the LRPDism. :-) -NT - (Another Scott)
                                                                     Except the song has no "ok" or "more" - (broomberg) - (2)
                                                                         Ditto. It's got staying power. -NT - (Another Scott) - (1)
                                                                             But not in that way, pervs. -NT - (jake123)
                                                 Grrrrrrr. -NT - (Arkadiy)
                                             Re: OK, I see more clearly now - (JimWeirich) - (1)
                                                 It should be possible - (Arkadiy)
         Re: Ruby threw me a curve - (MikeH727) - (1)
             Hello, fellow sufferer. - (Arkadiy)

You are the antipost.
123 ms