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?
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
endWhat’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.
Brad
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs