🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #231925

Re: Nikomu niepotrzebne zmienne prywatne?

#231925
From: Marek S
Date: Thu, 25 Jan 2018 23:07
23 lines
1405 bytes
W dniu 25-01-2018 o 21:29, Roman Tyczka pisze:
> On Thu, 25 Jan 2018 20:19:34 +0100, Marek S wrote:
> 
>> Czy też sądzicie, że zmienne prywatne to przeżytek?
> 
> Czy pisząc zmienne masz na myśli po prostu pola obiektu?
> 

Mam na myśli właściwości (properties).
Dla rozwiania wątpliwości przykład kawałka mojego kodu w PHP:

class tableProClass
{
	private $rowCounter=0;
	private $fnReplace, $fnConvert;
...


Czegoś takiego w klasach JS nie ma.

-- 
Pozdrawiam,
Marek
Technical Details
Message-ID: <p4do0k$drj$1@node1.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <p4dakb$a6j$1@node2.news.atman.pl> <1fz90to1qzf67.dlg@tyczka.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Marek S <precz@spamowi.com>
Newsgroups: pl.comp.lang.php
Subject: Re: Nikomu niepotrzebne zmienne prywatne?
Date: Fri, 26 Jan 2018 00:07:59 +0100
Organization: ATMAN - ATM S.A.
Lines: 23
Message-ID: <p4do0k$drj$1@node1.news.atman.pl>
References: <p4dakb$a6j$1@node2.news.atman.pl> <1fz90to1qzf67.dlg@tyczka.com>
NNTP-Posting-Host: 89-69-207-111.dynamic.chello.pl
Mime-Version: 1.0
X-Trace: node1.news.atman.pl 1516921684 14195 89.69.207.111 (25 Jan 2018 23:08:04 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Thu, 25 Jan 2018 23:08:04 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
In-Reply-To: <1fz90to1qzf67.dlg@tyczka.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit