Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #124324 > unrolled thread

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

Started byMild Shock <janburse@fastmail.fm>
First post2024-03-24 14:04 +0100
Last post2024-03-29 00:03 +0100
Articles 6 — 2 participants

Back to article view | Back to comp.lang.javascript


Contents

  Do not use var / what about import [Confusion by John Harris] Mild Shock <janburse@fastmail.fm> - 2024-03-24 14:04 +0100
    Re: Do not use var / what about import [Confusion by John Harris] Mild Shock <janburse@fastmail.fm> - 2024-03-24 14:06 +0100
    Re: Do not use var / what about import [Confusion by John Harris] John Harris <niam@jghnorth.org.uk.invalid> - 2024-03-25 15:31 +0000
      Re: Do not use var / what about import [Confusion by John Harris] Mild Shock <janburse@fastmail.fm> - 2024-03-28 00:28 +0100
        Re: Do not use var / what about import [Confusion by John Harris] Mild Shock <janburse@fastmail.fm> - 2024-03-28 00:35 +0100
    Re: Do not use var / what about import [Confusion by John Harris] Mild Shock <janburse@fastmail.fm> - 2024-03-29 00:03 +0100

#124324 — Do not use var / what about import [Confusion by John Harris]

FromMild Shock <janburse@fastmail.fm>
Date2024-03-24 14:04 +0100
SubjectDo not use var / what about import [Confusion by John Harris]
Message-ID<utp8d7$1otqp$1@solani.org>
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.

[toc] | [next] | [standalone]


#124325

FromMild Shock <janburse@fastmail.fm>
Date2024-03-24 14:06 +0100
Message-ID<utp8gd$1otrd$1@solani.org>
In reply to#124324
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.
> 
> 

[toc] | [prev] | [next] | [standalone]


#124326

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2024-03-25 15:31 +0000
Message-ID<uts5c2$15gfu$1@dont-email.me>
In reply to#124324
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

[toc] | [prev] | [next] | [standalone]


#124336

FromMild Shock <janburse@fastmail.fm>
Date2024-03-28 00:28 +0100
Message-ID<uu2a3l$1tahh$1@solani.org>
In reply to#124326
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
> 

[toc] | [prev] | [next] | [standalone]


#124337

FromMild Shock <janburse@fastmail.fm>
Date2024-03-28 00:35 +0100
Message-ID<uu2agk$1tan6$1@solani.org>
In reply to#124336
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
>>
> 

[toc] | [prev] | [next] | [standalone]


#124345

FromMild Shock <janburse@fastmail.fm>
Date2024-03-29 00:03 +0100
Message-ID<uu4sv7$1umf0$1@solani.org>
In reply to#124324
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.
> 
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web