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


Groups > comp.lang.javascript > #124345

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

Path csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Mild Shock <janburse@fastmail.fm>
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> (permalink)
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==
Xref csiph.com comp.lang.javascript:124345

Show key headers only | View raw


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.
> 
> 

Back to comp.lang.javascript | Previous | NextPrevious in thread | Find similar


Thread

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

csiph-web