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

    From Mild Shock@janburse@fastmail.fm to comp.lang.javascript on Sun Mar 24 14:04:41 2024
    From Newsgroup: comp.lang.javascript

    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.


    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Mild Shock@janburse@fastmail.fm to comp.lang.javascript on Sun Mar 24 14:06:23 2024
    From Newsgroup: comp.lang.javascript


    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.



    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From John Harris@niam@jghnorth.org.uk.invalid to comp.lang.javascript on Mon Mar 25 15:31:12 2024
    From Newsgroup: comp.lang.javascript

    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

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Mild Shock@janburse@fastmail.fm to comp.lang.javascript on Thu Mar 28 00:28:53 2024
    From Newsgroup: comp.lang.javascript

    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


    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Mild Shock@janburse@fastmail.fm to comp.lang.javascript on Thu Mar 28 00:35:49 2024
    From Newsgroup: comp.lang.javascript

    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



    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Mild Shock@janburse@fastmail.fm to comp.lang.javascript on Fri Mar 29 00:03:03 2024
    From Newsgroup: comp.lang.javascript

    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.



    --- Synchronet 3.20a-Linux NewsLink 1.114