Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <ca50fd408802f216f88efa431ca90b90@www.novabbs.com>
Deutsch   English   Français   Italiano  
<ca50fd408802f216f88efa431ca90b90@www.novabbs.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: minforth@gmx.net (minforth)
Newsgroups: comp.lang.forth
Subject: Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!]
Date: Mon, 9 Sep 2024 21:16:49 +0000
Organization: novaBBS
Message-ID: <ca50fd408802f216f88efa431ca90b90@www.novabbs.com>
References: <nnd$61e0ad9a$48ed61c2@b4d945e456041481> <vaubf7$tbke$1@dont-email.me> <nnd$04cff141$0193ba04@301336b8dd8ed69a> <vbfqnd$v4c4$1@dont-email.me> <vbkdu0$1v8lq$1@dont-email.me> <3e230bf1758f2f1970c8c43512032e0d@www.novabbs.com> <nnd$32690b01$49b74327@97bd85089db44cd3>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
	logging-data="1464382"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="0+ejqm+s29REto3A2x2P4fP+XaUXf51pZgtYBR0nEqI";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: d2a19558f194e2f1f8393b8d9be9ef51734a4da3
X-Rslight-Site: $2y$10$.oSElgAIYKX3f9QWJ3z2J.y9LxvHmb5UAsXRLkDIGhjH.BCXa1D3O
X-Spam-Checker-Version: SpamAssassin 4.0.0

On Mon, 9 Sep 2024 15:15:32 +0000, Hans Bezemer wrote:
> I won't dispute that using the "locals" shortcut *may* save some
> programming time - but to me, the moment you decide to put the whole
> shebang in locals, you enter another mindset. Because at that moment you
> cease to consider the algorithm itself, but start banging out code.
>
> You no longer consider "do I need that, do I need that now, do I need
> that here", you just start creating more local variables. Somehow that
> kills my train of mind..

The thing is that your train of mind is focused on optimising the
parameter flow via the stack. you are doing stupid work that an
intelligent compiler does automatically today. it makes much more sense
to focus your brainware on the algorithms or automation tasks to be
solved.

Since such algorithms/tasks are mostly formulated mathematically or
logically, an almost 1:1 translation of such formulations by using
locals
is straightforward and less error prone. Use descriptive names and the
code
becomes quasi commented simultaneously.