Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

It's not hard to admit errors that are [only] cosmetically wrong. -- J. K. Galbraith


devel / comp.lang.php / Re: recommended names

SubjectAuthor
* recommended namesSupaPlex
+- Re: recommended namesBen Bacarisse
+- Re: recommended namesJerry Stuckle
+- Re: recommended namesAngel
`- Re: recommended namesArno Welzel

1
recommended names

<t9bnqb$1oao$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=555&group=comp.lang.php#555

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!mExFFs2xxSIvrM9DS6qNgA.user.46.165.242.91.POSTED!not-for-mail
From: old@gamer.s (SupaPlex)
Newsgroups: comp.lang.php
Subject: recommended names
Date: Mon, 27 Jun 2022 09:55:55 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t9bnqb$1oao$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="57688"; posting-host="mExFFs2xxSIvrM9DS6qNgA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: it-IT
 by: SupaPlex - Mon, 27 Jun 2022 07:55 UTC

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

Re: recommended names

<87v8sms6l0.fsf@bsb.me.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=556&group=comp.lang.php#556

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.usenet@bsb.me.uk (Ben Bacarisse)
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>
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
 by: Ben Bacarisse - Mon, 27 Jun 2022 11:12 UTC

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.

Re: recommended names

<t9chu8$im3m$1@jstuckle.eternal-september.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=557&group=comp.lang.php#557

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!jstuckle.eternal-september.org!.POSTED!not-for-mail
From: stuckle.jerry@gmail.com (Jerry Stuckle)
Newsgroups: comp.lang.php
Subject: Re: recommended names
Date: Mon, 27 Jun 2022 11:21:26 -0400
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <t9chu8$im3m$1@jstuckle.eternal-september.org>
References: <t9bnqb$1oao$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 27 Jun 2022 15:21:44 -0000 (UTC)
Injection-Info: jstuckle.eternal-september.org; posting-host="98fbcbc2cdd9f7fd171944cc6a6f81a4";
logging-data="612470"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18V4Kq/8q7YyIX+271j7mC0CEYmJ9MS2ts="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Cancel-Lock: sha1:2jhrpB1TqMkQvBgU/X0tVHQCfzg=
Content-Language: en-US
In-Reply-To: <t9bnqb$1oao$1@gioia.aioe.org>
 by: Jerry Stuckle - Mon, 27 Jun 2022 15:21 UTC

On 6/27/2022 3:55 AM, SupaPlex wrote:
> $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?

In my opinion it would be better to have comments describing what each does.

--
==================
Remove the "x"'s from my email address
Jerry Stuckle
stucklex.jerryx@gmail.com
==================

Re: recommended names

<a822a98c-08b9-414d-a142-28fd42ad74a0n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=558&group=comp.lang.php#558

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:adf:eb4d:0:b0:218:45b6:8fdb with SMTP id u13-20020adfeb4d000000b0021845b68fdbmr13932198wrn.77.1656350822053;
Mon, 27 Jun 2022 10:27:02 -0700 (PDT)
X-Received: by 2002:a81:4ed3:0:b0:31b:8409:8424 with SMTP id
c202-20020a814ed3000000b0031b84098424mr13838719ywb.280.1656350821433; Mon, 27
Jun 2022 10:27:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Mon, 27 Jun 2022 10:27:01 -0700 (PDT)
In-Reply-To: <t9bnqb$1oao$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=82.131.39.228; posting-account=kVpizAoAAAAzVkZscNo9TMzyHVX_RyOV
NNTP-Posting-Host: 82.131.39.228
References: <t9bnqb$1oao$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a822a98c-08b9-414d-a142-28fd42ad74a0n@googlegroups.com>
Subject: Re: recommended names
From: he1983912@gmail.com (Angel)
Injection-Date: Mon, 27 Jun 2022 17:27:02 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Angel - Mon, 27 Jun 2022 17:27 UTC

Use it, as You want, if it works, then everything is Alright.

*********************************************
Telephone: 372 5 3 9 0 0 6 6 0

SupaPlex kirjutas Esmaspäev, 27. juuni 2022 kl 09:56:05 UTC+2:
> $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?

Re: recommended names

<jhvpfmFfa9lU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=559&group=comp.lang.php#559

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@arnowelzel.de (Arno Welzel)
Newsgroups: comp.lang.php
Subject: Re: recommended names
Date: Tue, 28 Jun 2022 09:38:30 +0200
Lines: 19
Message-ID: <jhvpfmFfa9lU1@mid.individual.net>
References: <t9bnqb$1oao$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net ZHiMDSf1PluQrVtZdQcrbgR5jSwC4UGRzpqcrEiYP7QD6B/ltj
Cancel-Lock: sha1:MCumGUg1Jq2ounYx3ZR9zBJ2rkI=
Content-Language: de-DE
In-Reply-To: <t9bnqb$1oao$1@gioia.aioe.org>
 by: Arno Welzel - Tue, 28 Jun 2022 07:38 UTC

SupaPlex:

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

There is a standard for this:

<https://www.php-fig.org/psr/>

--
Arno Welzel
https://arnowelzel.de

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor