Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18987
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: recommended names |
| Date | 2022-06-27 12:12 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <87v8sms6l0.fsf@bsb.me.uk> (permalink) |
| References | <t9bnqb$1oao$1@gioia.aioe.org> |
SupaPlex <old@gamer.s> writes:
> $file = "abc.txt";
>
> class Name {
> function format() {}
> }
>
> In your opinion, instead of $file isn't it better to use $filename?
> In your opinion, instead of Name isn't it better to use NameFormatter?
It's impossible to say without more context. In 6 lines of code the
names hardly matter at all, but in a real-life situation "file" and
"filename" may be almost as bad as each other.
--
Ben.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
recommended names SupaPlex <old@gamer.s> - 2022-06-27 09:55 +0200 Re: recommended names Ben Bacarisse <ben.usenet@bsb.me.uk> - 2022-06-27 12:12 +0100 Re: recommended names Jerry Stuckle <stuckle.jerry@gmail.com> - 2022-06-27 11:21 -0400 Re: recommended names Angel <he1983912@gmail.com> - 2022-06-27 10:27 -0700 Re: recommended names Arno Welzel <usenet@arnowelzel.de> - 2022-06-28 09:38 +0200
csiph-web