Is there a name for this idiom?

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?

On Jul 6, 2007, at 3:20 PM, Lyle J. 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 G. II

On Jul 6, 2007, at 3:23 PM, James Edward G. II wrote:

“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 G. II

How about “Am I me?” or “Worthless file name?”

On Jul 6, 2007, at 3:23 PM, James Edward G. II wrote:

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.

Of course, that matches up with TextMate’s tab trigger for that code:
app [tab].

Not as if you wrote the book on that or anything. :slight_smile:

Brad