4 votes
Accepted

Variable assignment in ECMAScript specification in detail

Your understanding is correct, but the explanation gets confusing because you are mixing terminology from lower-level languages like Java with the terminology from ECMAScript specification, which ...
JacquesB's user avatar
  • 58.7k
2 votes
Accepted

How can I minimize the number of captured variables in lambda expressions?

An obvious way is to capture a reference to an object. That reference is just one variable and allows you to access many values.
gnasher729's user avatar
  • 44.7k
2 votes

Is global state really always bad?

First of all, the question is for what things are global. Global variables in an application are global to the application context. What if the same code is used as an instance of a web application ...
Maarten Bodewes's user avatar
2 votes

What’s the standard used to deploy .env files?

Secrets can be stored in some sort of vault. For example, for AWS it's a secrets manager service. What this does is move the secrets from your environment file to a central location. That way no ...
Jon Raynor's user avatar
  • 11.4k
2 votes
Accepted

ECMAScript Primitives: Immutability vs Value Type

ECMAScript is specified at a higher level than languages like C++, giving more implementation freedom as long as it conforms to the required semantics. For example, ECMAScript does not specify whether ...
JacquesB's user avatar
  • 58.7k
1 vote

ECMAScript Primitives: Immutability vs Value Type

"You could just say that primitives are stored directly in a variable. Such a value could never take any effect on other variables" That's not true. This is where the metaphor that ...
Filip Milovanović's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible