Discussion:
Do not use var / what about import [Confusion by John Harris]
(too old to reply)
Mild Shock
2024-03-24 13:04:41 UTC
Permalink
Attention to John Harris <***@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
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.
Mild Shock
2024-03-24 13:06:23 UTC
Permalink
Or try another hobby than JavaScript.
Like for example bird watching.
Post by Mild Shock
In case you are about to go on a fishing spree
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
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.
John Harris
2024-03-25 15:31:12 UTC
Permalink
On 24/03/2024 13:04, Mild Shock wrote:

<snip>
Post by Mild Shock
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
Mild Shock
2024-03-27 23:28:53 UTC
Permalink
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
  <snip>
Post by Mild Shock
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
Mild Shock
2024-03-27 23:35:49 UTC
Permalink
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.
Post by Mild Shock
Something else that is outdated. Why go into
the pain of making you own website? Start writing
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
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
   <snip>
Post by Mild Shock
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
Mild Shock
2024-03-28 23:03:03 UTC
Permalink
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.
Post by Mild Shock
In case you are about to go on a fishing spree
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
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.
Loading...