Two methods for doing the same thing!! Smells. I write code with a browser
besides my editor (actually in another screen) and I cant do a lot without
looking at node docs or the github page for the module I am using, even for
my own oss modules.

I am all for naming convention but this will not help you enough to not
have to look at the docs from time to time.

If it feels that disturbing for you, just create a new module fs2 with a
for each loop, copy the methods renaming the inconsistents, npm publish and
presto.

At least, as an advice, please dont write code like

var fs = require(fs2);

fs.readDir(..);

This will be disturbing, use fs2.readDir..

El viernes, 28 de diciembre de 2012, Phoscur escribió:

> What's the harm in adding this alias to node?
> I remember myself running into this (as not everyone knows posix calls by
> heart) and posting on this list.
>
> Am 27.12.2012 22:51, schrieb Isaac Schlueter:
>
>> On Thu, Dec 27, 2012 at 1:03 PM, Jonathan Chayce Dickinson
>> <[email protected]> wrote:
>>
>>> fs.prototype.readDir = function() { return fs.prototype.readdir.apply(**
>>> this,
>>> arguments); }
>>>
>> That's not going to work.  fs is an object, not a class.  I think what
>> you mean is `fs.readDir = fs.readdir`.
>>
>> We do keep our shit consistent.  Specifically, we keep our method
>> names consistent with the posix syscalls they invoke.
>>
>>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-**
> Posting-Guidelines<https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines>
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to