As for readdir (and many other functions in the fs module) they are named
to match the underlying POSIX function name. For instance:
http://linux.die.net/man/3/readdir

readFile is an abstraction created by Node so it adheres to naming
standards.

On Thu, Dec 27, 2012 at 12:02 PM, David Habereder <[email protected]
> wrote:

> Hi,
>
> I am quite new to node.js.
>
> As far as I can see the method names aren't very consistent. Take the
> methods from File System for example: http://nodejs.org/api/fs.html
> It is ".readFile" (Camelcase)
> But it is ".readdir" (all lowercase)
>
> There are a few more such cases where I don't see a pattern when camelcase
> is used and when not.
>
> You could say that this is absolutely irrelevant and you would be right.
> But it annoys me :-(
> And it reminds me of PHP syntax garbage.
>
> Is there any interest in getting all method names either camelcase or
> lowercase, or will this just stay as is?
>
> ~dave
>
> --
> 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
>

-- 
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