Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Remember, there's a big difference between kneeling down and bending over. -- Frank Zappa


devel / comp.lang.php / Re: Shorter is not always better

SubjectAuthor
* Shorter is not always betterSee Kes Seda Hetkel Siia Kirjutab
`* Shorter is not always betterStan Weiss
 `* Shorter is not always betterAllodoxaphobia
  `* Shorter is not always betterStan Weiss
   `- Shorter is not always betterMateusz Viste

1
Re: Shorter is not always better

<b1befa95-d141-4587-b478-8a317ebc7a02n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1466&group=comp.lang.php#1466

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:a7b:cb93:0:b0:3a0:4d00:2517 with SMTP id m19-20020a7bcb93000000b003a04d002517mr13787527wmi.117.1656642091941;
Thu, 30 Jun 2022 19:21:31 -0700 (PDT)
X-Received: by 2002:a25:ac44:0:b0:66c:94d6:42ce with SMTP id
r4-20020a25ac44000000b0066c94d642cemr12708630ybd.572.1656642091377; Thu, 30
Jun 2022 19:21:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Thu, 30 Jun 2022 19:21:31 -0700 (PDT)
In-Reply-To: <j03vf8Fh95uU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=82.131.36.172; posting-account=kVpizAoAAAAzVkZscNo9TMzyHVX_RyOV
NNTP-Posting-Host: 82.131.36.172
References: <j03vf8Fh95uU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b1befa95-d141-4587-b478-8a317ebc7a02n@googlegroups.com>
Subject: Re: Shorter is not always better
From: he1983912@gmail.com (See Kes Seda Hetkel Siia Kirjutab)
Injection-Date: Fri, 01 Jul 2022 02:21:31 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 45
 by: See Kes Seda Hetkel - Fri, 1 Jul 2022 02:21 UTC

1 byte contains only 256 bits of information. Everyone make now Your own conclusions.

☏ : 372 5 3 9 0 0 6 6 0
E-mail : he1983912[@]mail.ee

Arno Welzel kirjutas Teisipäev, 23. november 2021 kl 12:52:33 UTC+2:
> An simplified example from a real project:
>
> if (!($this->action[$key] ?? false)) {
>
> What it means:
>
> 1) $this->action[$key] ?? false
>
> This return $this->action[$key] if $this->action[$key] exists and is not
> null or "false".
>
> 2) !( .... )
>
> Will negate the result - so the condition is true if $this->action[$key]
> does not exist or is null.
>
> However to understand this you must know what the ?? operator means and
> note the negation using ! in the beginning.
>
> When you did not create this code in the first place or try to find a
> bug expressions like this are not really helpful.
>
> I would prefer a longer but easier to understand solution like this:
>
> if (!isset($this->statusActions[$key])
> || null === $this->statusActions[$key]
> ) {
>
> Any thoughts on this?
>
>
> --
> Arno Welzel
> https://arnowelzel.de

Re: Shorter is not always better

<t9lvam$3aq$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1467&group=comp.lang.php#1467

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!aioe.org!6i3t3pvWXJD+9a9cZYbqXw.user.46.165.242.91.POSTED!not-for-mail
From: srweiss@erols.com (Stan Weiss)
Newsgroups: comp.lang.php
Subject: Re: Shorter is not always better
Date: Fri, 1 Jul 2022 01:05:37 -0400
Organization: Aioe.org NNTP Server
Message-ID: <t9lvam$3aq$1@gioia.aioe.org>
References: <j03vf8Fh95uU1@mid.individual.net>
<b1befa95-d141-4587-b478-8a317ebc7a02n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="3418"; posting-host="6i3t3pvWXJD+9a9cZYbqXw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
X-Antivirus: Avast (VPS 220630-4, 6/30/2022), Outbound message
X-Antivirus-Status: Clean
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Stan Weiss - Fri, 1 Jul 2022 05:05 UTC

Actually 1 byte contains 8 bits and can represent a number from 0 to 255

Stan

On 6/30/2022 10:21 PM, See Kes Seda Hetkel Siia Kirjutab wrote:
> 1 byte contains only 256 bits of information. Everyone make now Your own conclusions.
>
>
> ☏ : 372 5 3 9 0 0 6 6 0
> E-mail : he1983912[@]mail.ee
>
>
> Arno Welzel kirjutas Teisipäev, 23. november 2021 kl 12:52:33 UTC+2:
>> An simplified example from a real project:
>>
>> if (!($this->action[$key] ?? false)) {
>>
>> What it means:
>>
>> 1) $this->action[$key] ?? false
>>
>> This return $this->action[$key] if $this->action[$key] exists and is not
>> null or "false".
>>
>> 2) !( .... )
>>
>> Will negate the result - so the condition is true if $this->action[$key]
>> does not exist or is null.
>>
>> However to understand this you must know what the ?? operator means and
>> note the negation using ! in the beginning.
>>
>> When you did not create this code in the first place or try to find a
>> bug expressions like this are not really helpful.
>>
>> I would prefer a longer but easier to understand solution like this:
>>
>> if (!isset($this->statusActions[$key])
>> || null === $this->statusActions[$key]
>> ) {
>>
>> Any thoughts on this?
>>
>>
>> --
>> Arno Welzel
>> https://arnowelzel.de

--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Re: Shorter is not always better

<slrntbtpgh.10ef.trepidation@vps.jonz.net>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1468&group=comp.lang.php#1468

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: trepidation@example.net (Allodoxaphobia)
Newsgroups: comp.lang.php
Subject: Re: Shorter is not always better
Date: 1 Jul 2022 12:18:32 GMT
Lines: 4
Message-ID: <slrntbtpgh.10ef.trepidation@vps.jonz.net>
References: <j03vf8Fh95uU1@mid.individual.net>
<b1befa95-d141-4587-b478-8a317ebc7a02n@googlegroups.com>
<t9lvam$3aq$1@gioia.aioe.org>
X-Trace: individual.net /guk+P6pL2BhtU7+10IFygsA1TCJEjLe7U0CU35I3AkKNflUBW
Cancel-Lock: sha1:KTS0FidWay+Bv9AikiALht/0ND8=
User-Agent: slrn/1.0.3 (FreeBSD)
 by: Allodoxaphobia - Fri, 1 Jul 2022 12:18 UTC

On Fri, 1 Jul 2022 01:05:37 -0400, Stan Weiss wrote:
> Actually 1 byte contains 8 bits and can represent a number from 0 to 255

Actually s/number/value/

Re: Shorter is not always better

<t9mrk3$bal$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1469&group=comp.lang.php#1469

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!aioe.org!6i3t3pvWXJD+9a9cZYbqXw.user.46.165.242.91.POSTED!not-for-mail
From: srweiss@erols.com (Stan Weiss)
Newsgroups: comp.lang.php
Subject: Re: Shorter is not always better
Date: Fri, 1 Jul 2022 09:08:31 -0400
Organization: Aioe.org NNTP Server
Message-ID: <t9mrk3$bal$1@gioia.aioe.org>
References: <j03vf8Fh95uU1@mid.individual.net>
<b1befa95-d141-4587-b478-8a317ebc7a02n@googlegroups.com>
<t9lvam$3aq$1@gioia.aioe.org> <slrntbtpgh.10ef.trepidation@vps.jonz.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="11605"; posting-host="6i3t3pvWXJD+9a9cZYbqXw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
X-Antivirus: Avast (VPS 220701-6, 7/1/2022), Outbound message
Content-Language: en-US
X-Antivirus-Status: Clean
X-Notice: Filtered by postfilter v. 0.9.2
 by: Stan Weiss - Fri, 1 Jul 2022 13:08 UTC

Yes, there are times the value will be looked at as -127 to +127

Stan

On 7/1/2022 8:18 AM, Allodoxaphobia wrote:
> On Fri, 1 Jul 2022 01:05:37 -0400, Stan Weiss wrote:
>> Actually 1 byte contains 8 bits and can represent a number from 0 to 255
> Actually s/number/value/
>

--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Re: Shorter is not always better

<t9n2us$1ok9$1@gioia.aioe.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1470&group=comp.lang.php#1470

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!aioe.org!ZeLe26th/8nZ81sFbS6Gmw.user.46.165.242.75.POSTED!not-for-mail
From: mateusz@xyz.invalid (Mateusz Viste)
Newsgroups: comp.lang.php
Subject: Re: Shorter is not always better
Date: Fri, 1 Jul 2022 17:13:32 +0200
Organization: . . .
Message-ID: <t9n2us$1ok9$1@gioia.aioe.org>
References: <j03vf8Fh95uU1@mid.individual.net>
<b1befa95-d141-4587-b478-8a317ebc7a02n@googlegroups.com>
<t9lvam$3aq$1@gioia.aioe.org>
<slrntbtpgh.10ef.trepidation@vps.jonz.net>
<t9mrk3$bal$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="57993"; posting-host="ZeLe26th/8nZ81sFbS6Gmw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Mateusz Viste - Fri, 1 Jul 2022 15:13 UTC

On Fri, 1 Jul 2022 09:08:31 -0400 Stan Weiss <srweiss@erols.com> wrote:
> On 7/1/2022 8:18 AM, Allodoxaphobia wrote:
> > On Fri, 1 Jul 2022 01:05:37 -0400, Stan Weiss wrote:
> >> Actually 1 byte contains 8 bits and can represent a number from 0
> >> to 255
> > Actually s/number/value/
>
> Yes, there are times the value will be looked at as -127 to +127

Actually -128 to +127 because values are evaluated in 2's complement.

Mateusz

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor