On 16 , 17:29, Matt Harrison <iwasinnamuk... / genestate.com> wrote:
> On 16/06/2011 13:40, Ilias Lazaridis wrote:
>
> > On 11 , 20:35, Ilias Lazaridis<il... / lazaridis.com>  > >> This is a simple Request for Comments.
>
> >> Scenario:
>
> >> require_relative 'lib/alter'
> >> require 'alibrary'
>
> >> Some project manager complains about "require_relative", and asks you
> >> to find a one-word alias.
>
> >> Which name would you select and for what reasons?
>
> >> Requirements
> >> must:
> >> * one word
>
> >> optional:
> >> * ideally a 7 letter word
>
> > #existent load functionality
> > load alibrary.rb'
> > require 'alibrary'
>
> > locally 'lib/alter' # locally located file
> > include 'lib/alter' # the commonly known "include" ("collision" with
> > the "include" used for mixins)
> > uniload 'lib/alter' # universal load
>
> > #one more suggestion
>
> > request 'lib/alter' # like require, but uses the path relative to the
> > current file
>
> You mean like "require_relative"

Yes of cousre, "require_relative"

> which actually makes more sense than your suggestions?

"require_relative(_to_this_file)" in a single word, ideally with 7
chars

This is the topic.

Is it really so difficult for you people to solve a given problem,
even if you personally don't agree that it is a problem?

-

locally 'lib/alter' # locally located file
include 'lib/alter' # the commonly known "include"
uniload 'lib/alter' # universal load

request 'lib/alter' # like require_relative, but uses the path
relative to the current file

one more

relative 'lib/alter' #

.

--
http://lazaridis.com