Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18987
| Path | csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
| Newsgroups | comp.lang.php |
| Subject | Re: recommended names |
| Date | Mon, 27 Jun 2022 12:12:43 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <87v8sms6l0.fsf@bsb.me.uk> (permalink) |
| References | <t9bnqb$1oao$1@gioia.aioe.org> |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | reader01.eternal-september.org; posting-host="4c7a6924a27dd8c3191b83845476e971"; logging-data="485661"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19KKC85lKEq6TzwMG9so/E+mSUOJhu1hX4=" |
| Cancel-Lock | sha1:DmvzvQ6+LR94QSjMrTXhAoT/xq8= sha1:wCOFRShBMJohPZQ2n8VTybUL0jA= |
| X-BSB-Auth | 1.846a71c1da9dd2f83e8f.20220627121243BST.87v8sms6l0.fsf@bsb.me.uk |
| Xref | csiph.com comp.lang.php:18987 |
Show key headers only | View raw
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