Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Never put off till run-time what you can do at compile-time. -- D. Gries


devel / comp.lang.javascript / Re: Do not use var / what about import [Confusion by John Harris]

SubjectAuthor
* Do not use var / what about import [Confusion by John Harris]Mild Shock
+- Re: Do not use var / what about import [Confusion by John Harris]Mild Shock
+* Re: Do not use var / what about import [Confusion by John Harris]John Harris
|`* Re: Do not use var / what about import [Confusion by John Harris]Mild Shock
| `- Re: Do not use var / what about import [Confusion by John Harris]Mild Shock
`- Re: Do not use var / what about import [Confusion by John Harris]Mild Shock

1
Do not use var / what about import [Confusion by John Harris]

<utp8d7$1otqp$1@solani.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.javascript
Subject: Do not use var / what about import [Confusion by John Harris]
Date: Sun, 24 Mar 2024 14:04:41 +0100
Message-ID: <utp8d7$1otqp$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Mar 2024 13:04:39 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1865561"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:cFTfSAHnxfu3C4ab1XBMlnwXu7k=
X-User-ID: eJwFwQkBgAAIA8BK8g7iCLL+EbwLS8mFZ6QHg6OG4l19tyPnjQqUzagQLurSLwD2eqFw3zMehlRyrUN/Ug0U/w==
X-Mozilla-News-Host: news://news.solani.org:119
 by: Mild Shock - Sun, 24 Mar 2024 13:04 UTC

Attention to John Harris <niam@jghnorth.org.uk>
In case you are about to go on a fishing spree
for F.U.D. like here:

Fear, Uncertainty and Doubt
https://de.wikipedia.org/wiki/Fear,_Uncertainty_and_Doubt

Be warned, your findings might mostlikely come out
as lame accusations. Judging from your JavaScript
tutorials your are stuck somewhere in the yesterdays
yesterday of JavaScript, you write:

> First, inside a function definition
> var v;
> makes v a local variable.
> [...]
> However, in 2015 two other kinds of variable
> were introduced that do have block scope. They
> are declared using the keywords const and
> let instead of var.
https://www.jghnorth.org.uk/notes/JSfeats.html

Why not just admit that var is practically deprecated,
and make a fresher of your nonsene tutorials, remove it?
It's probably only still there for backward compatibility.

4 Reasons Why ‘var’ is Considered Obsolete in Modern JavaScript
https://plainenglish.io/blog/4-reasons-why-var-is-considered-obsolete-in-modern-javascript

Also I doubt you can run Dogelog Player for JavaScript
with your mindset, it requires ES6 modules.

Re: Do not use var / what about import [Confusion by John Harris]

<utp8gd$1otrd$1@solani.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.javascript
Subject: Re: Do not use var / what about import [Confusion by John Harris]
Date: Sun, 24 Mar 2024 14:06:23 +0100
Message-ID: <utp8gd$1otrd$1@solani.org>
References: <utp8d7$1otqp$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 24 Mar 2024 13:06:21 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1865581"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:TdXM0SkgcjU3yf4KKPVlIgRU4MU=
In-Reply-To: <utp8d7$1otqp$1@solani.org>
X-User-ID: eJwFwYcBwDAIA7CXyrAJ54SR/0+oBKOwwwk6Hp5+KHSJKHRyF0pl3+1L6cnjdyPyTGrioNTcQmrMs6Yt+QNIThUP
 by: Mild Shock - Sun, 24 Mar 2024 13:06 UTC

Or try another hobby than JavaScript.
Like for example bird watching.

Mild Shock schrieb:
> Attention to John Harris <niam@jghnorth.org.uk>
> In case you are about to go on a fishing spree
> for F.U.D. like here:
>
> Fear, Uncertainty and Doubt
> https://de.wikipedia.org/wiki/Fear,_Uncertainty_and_Doubt
>
> Be warned, your findings might mostlikely come out
> as lame accusations. Judging from your JavaScript
> tutorials your are stuck somewhere in the yesterdays
> yesterday of JavaScript, you write:
>
> > First, inside a function definition
> > var v;
> > makes v a local variable.
> > [...]
> > However, in 2015 two other kinds of variable
> > were introduced that do have block scope. They
> > are declared using the keywords const and
> > let instead of var.
> https://www.jghnorth.org.uk/notes/JSfeats.html
>
> Why not just admit that var is practically deprecated,
> and make a fresher of your nonsene tutorials, remove it?
> It's probably only still there for backward compatibility.
>
> 4 Reasons Why ‘var’ is Considered Obsolete in Modern JavaScript
> https://plainenglish.io/blog/4-reasons-why-var-is-considered-obsolete-in-modern-javascript
>
>
> Also I doubt you can run Dogelog Player for JavaScript
> with your mindset, it requires ES6 modules.
>
>

Re: Do not use var / what about import [Confusion by John Harris]

<uts5c2$15gfu$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: niam@jghnorth.org.uk.invalid (John Harris)
Newsgroups: comp.lang.javascript
Subject: Re: Do not use var / what about import [Confusion by John Harris]
Date: Mon, 25 Mar 2024 15:31:12 +0000
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uts5c2$15gfu$1@dont-email.me>
References: <utp8d7$1otqp$1@solani.org>
Reply-To: jgharris@ic4life.net
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 25 Mar 2024 16:31:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="85fbdc2855927fc2a95347f7c2d02528";
logging-data="1229310"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/CsCfNLvtJ8/f60V/cyyUeTOUDxhZco0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:hMicf2MtlrZ83VfawPxnkq4pQA0=
In-Reply-To: <utp8d7$1otqp$1@solani.org>
Content-Language: en-US
 by: John Harris - Mon, 25 Mar 2024 15:31 UTC

On 24/03/2024 13:04, Mild Shock wrote:

<snip>

> your JavaScript
> tutorials your are stuck somewhere in the yesterdays
> yesterday of JavaScript,

<snip>

a) It was written back when this group's FAQ was still being updated.

b) It's job was to introduce JavaScript to novice programmers who knew
nothing about the language.

c) It's aged much better than the FAQ as it concentrates on fundamentals
rather than current practice.

There's nothing stopping you writing a replacement document.

John

Re: Do not use var / what about import [Confusion by John Harris]

<uu2a3l$1tahh$1@solani.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.javascript
Subject: Re: Do not use var / what about import [Confusion by John Harris]
Date: Thu, 28 Mar 2024 00:28:53 +0100
Message-ID: <uu2a3l$1tahh$1@solani.org>
References: <utp8d7$1otqp$1@solani.org> <uts5c2$15gfu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Mar 2024 23:28:53 -0000 (UTC)
Injection-Info: solani.org;
logging-data="2009649"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:RJY6nDg91RV7gFoKpKFUGpFOibQ=
In-Reply-To: <uts5c2$15gfu$1@dont-email.me>
X-User-ID: eJwFwQkBwDAMAkBLpAHSyemT+pewO6XDp2iZenpE13QqBcK3M3X3LMcCnR0nnTBQzTEUa7q1q95XIWLzBw1AE3k=
 by: Mild Shock - Wed, 27 Mar 2024 23:28 UTC

Something else that is outdated. Why go into
the pain of making you own website? Start writing
blogs and use forums like for example:

https://medium.com/

https://qiita.com/

Time to invest: a) Time to register at the blog
service site plus b) Time to learn their markup language.
a) Takes usually 1 minute and b) takes around 5 minutes.

Write a blog about how you, John Harris, sees the
future of Garbage Collection and Datastructures, or
any other topic of your choice, I hope the topic

is not how to burp in a pub, by misunderstanding the
Drinkers Paradox. PyPy recently fixed a 10 years
old bug releated to their garbage collection:

Fixing a Bug in PyPy’s Incremental GC
Carl Friedrich Bolz-Tereick - 2024-03-26
https://www.pypy.org/posts/2024/03/fixing-bug-incremental-gc.html

John Harris schrieb:
> On 24/03/2024 13:04, Mild Shock wrote:
>
>   <snip>
>
>> your JavaScript
>> tutorials your are stuck somewhere in the yesterdays
>> yesterday of JavaScript,
>
>   <snip>
>
> a) It was written back when this group's FAQ was still being updated.
>
> b) It's job was to introduce JavaScript to novice programmers who knew
> nothing about the language.
>
> c) It's aged much better than the FAQ as it concentrates on fundamentals
> rather than current practice.
>
> There's nothing stopping you writing a replacement document.
>
>   John
>

Re: Do not use var / what about import [Confusion by John Harris]

<uu2agk$1tan6$1@solani.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.javascript
Subject: Re: Do not use var / what about import [Confusion by John Harris]
Date: Thu, 28 Mar 2024 00:35:49 +0100
Message-ID: <uu2agk$1tan6$1@solani.org>
References: <utp8d7$1otqp$1@solani.org> <uts5c2$15gfu$1@dont-email.me>
<uu2a3l$1tahh$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 27 Mar 2024 23:35:48 -0000 (UTC)
Injection-Info: solani.org;
logging-data="2009830"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.1
Cancel-Lock: sha1:TcF9l0WJXJ2/keIEcmTUM+8Flt0=
X-User-ID: eJwFwYEBwDAEBMCVBP90HCT2H6F3MB5OOEHHYtNRcacJG/kuiiKJBs5kr3xbd7VN+B73aWBGw7X0WY7I/lc3Fbk=
In-Reply-To: <uu2a3l$1tahh$1@solani.org>
 by: Mild Shock - Wed, 27 Mar 2024 23:35 UTC

Or another topic of choice could be to make
some testing across Prolog systems, like
Dogelog Player, Trealla Prolog, Scryer Prolog

who knows what Prolog system. Scryer Prolog
is an especially curious Prolog system, it
even doesn't have garbage collection at all,

and you can let it crash by filling the memory
with garbage. I guess they don't know how
to read a paper, like for example this paper:

[3] Carlson, M. et al. (1988): Garbage collection for Prolog based on
WAM. Communications of the ACM 31, 6, 719–740, June 1988
http://dl.acm.org/doi/10.1145/62959.62968

Which even has nice pictures, that help you
understand the issues and algorithmic suggestions.

Mild Shock schrieb:
> Something else that is outdated. Why go into
> the pain of making you own website? Start writing
> blogs and use forums like for example:
>
> https://medium.com/
>
> https://qiita.com/
>
> Time to invest: a) Time to register at the blog
> service site plus b) Time to learn their markup language.
> a) Takes usually 1 minute and b) takes around 5 minutes.
>
> Write a blog about how you, John Harris, sees the
> future of Garbage Collection and Datastructures, or
> any other topic of your choice, I hope the topic
>
> is not how to burp in a pub, by misunderstanding the
> Drinkers Paradox. PyPy recently fixed a 10 years
> old bug releated to their garbage collection:
>
> Fixing a Bug in PyPy’s Incremental GC
> Carl Friedrich Bolz-Tereick - 2024-03-26
> https://www.pypy.org/posts/2024/03/fixing-bug-incremental-gc.html
>
>
> John Harris schrieb:
>> On 24/03/2024 13:04, Mild Shock wrote:
>>
>>    <snip>
>>
>>> your JavaScript
>>> tutorials your are stuck somewhere in the yesterdays
>>> yesterday of JavaScript,
>>
>>    <snip>
>>
>> a) It was written back when this group's FAQ was still being updated.
>>
>> b) It's job was to introduce JavaScript to novice programmers who knew
>> nothing about the language.
>>
>> c) It's aged much better than the FAQ as it concentrates on
>> fundamentals rather than current practice.
>>
>> There's nothing stopping you writing a replacement document.
>>
>>    John
>>
>

Re: Do not use var / what about import [Confusion by John Harris]

<uu4sv7$1umf0$1@solani.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mild Shock)
Newsgroups: comp.lang.javascript
Subject: Re: Do not use var / what about import [Confusion by John Harris]
Date: Fri, 29 Mar 2024 00:03:03 +0100
Message-ID: <uu4sv7$1umf0$1@solani.org>
References: <utp8d7$1otqp$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 28 Mar 2024 23:03:03 -0000 (UTC)
Injection-Info: solani.org;
logging-data="2054624"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.2
Cancel-Lock: sha1:yJ/9CEstZrAhIguPXWjsfXnSINM=
In-Reply-To: <utp8d7$1otqp$1@solani.org>
X-User-ID: eJwNy8ERACEIBLCWPGAXKOcE6b8E/WYmUH4sN4KGwShGmuzMKvFAnE46/pjZ6FjwYzlILgl1M7wqDNd5visuQA0Ujg==
 by: Mild Shock - Thu, 28 Mar 2024 23:03 UTC

I guess John Harris mind will soon explode.
There is more isomorphism on the horizon:

pg-mem is an experimental in-memory
emulation of a postgres database. It
works both in Node or in the browser.
https://www.npmjs.com/package/pg-mem

Poor John Harris, give this man some valium
and an ice pack so that he can cool down.

Mild Shock schrieb:
> Attention to John Harris <niam@jghnorth.org.uk>
> In case you are about to go on a fishing spree
> for F.U.D. like here:
>
> Fear, Uncertainty and Doubt
> https://de.wikipedia.org/wiki/Fear,_Uncertainty_and_Doubt
>
> Be warned, your findings might mostlikely come out
> as lame accusations. Judging from your JavaScript
> tutorials your are stuck somewhere in the yesterdays
> yesterday of JavaScript, you write:
>
> > First, inside a function definition
> > var v;
> > makes v a local variable.
> > [...]
> > However, in 2015 two other kinds of variable
> > were introduced that do have block scope. They
> > are declared using the keywords const and
> > let instead of var.
> https://www.jghnorth.org.uk/notes/JSfeats.html
>
> Why not just admit that var is practically deprecated,
> and make a fresher of your nonsene tutorials, remove it?
> It's probably only still there for backward compatibility.
>
> 4 Reasons Why ‘var’ is Considered Obsolete in Modern JavaScript
> https://plainenglish.io/blog/4-reasons-why-var-is-considered-obsolete-in-modern-javascript
>
>
> Also I doubt you can run Dogelog Player for JavaScript
> with your mindset, it requires ES6 modules.
>
>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor