From: John Joyce Date: 2007-07-07T05:36:48+09:00 Subject: Re: Is there a name for this idiom? On Jul 6, 2007, at 3:23 PM, James Edward Gray II wrote: > On Jul 6, 2007, at 3:20 PM, Lyle Johnson wrote: > >> When you want to move your program's startup code into a block >> like so: >> >> if __FILE__ == $0 >> # initialize and run program here >> end >> >> What's that called? Is there a commonly used name for that >> "startup" block? > > I have referred to such a block of code as the "application code" > more than once, but I don't in anyway believe that's a standard > name for it. > > James Edward Gray II > How about "Am I me?" or "Worthless file name?"