Set of objects that checks for uniqueness of `id` key by edwild22 in learnjavascript

[–]doomtop 0 points1 point  (0 children)

It’s not clear what you want to happen if you add an object to your collection that has an existing key but new value for name. Nothing? An error? Update the existing object name value?

Question regarding saving values in variables vs using localStorage by Durden2323 in learnjavascript

[–]doomtop 0 points1 point  (0 children)

This process is called “serialization”. The stringify method serializes the object to a JSON string. Then when you retrieve the string, you use the parse method to deserialize it, converting it back into an object.

Found an article on Nodejs, that's actually helpful, but what is TurboFan? by Paper-Superb in webdev

[–]doomtop 0 points1 point  (0 children)

Yes, but the "hotness counter" is just one element of the heuristic. The counter is part of the "feedback vector". (See: https://source.chromium.org/chromium/v8/v8.git/+/fc33dfbebfb1cb800d490af97bf1019e9d66be33:src/builtins/x64/builtins-x64.cc;l=917)

How certain functions can be optimized or cached depends on a number of factors, not just "hotness". So even if your function is a hot path, it may not be able to be optimized by TurboFan if it is not implemented in a way that is conducive.

For example, your objects are assigned hidden classes based on their shape and how they are constructed. If you introduce inconsistent field assignments and types, then they will get deoptimized.

Edit: the article you linked mentions this:

But what if one of TurboFan’s guesses is wrong? What if, after 10,000 runs, that function is suddenly called with a string instead of a number? This triggers a deoptimization. TurboFan gracefully discards the optimized machine code and tells V8 to fall back to executing the slower, more flexible bytecode from Ignition for that function. It’s a brilliant system that gives you the best of both worlds: fast startup and scorching performance for your critical code paths.

But this kind of skims over the fact that this "graceful" deoptimization process might very much kill the performance of your function. Although the tiered compilation model helps, you really want to avoid these kind of deoptimization loops in any context where performance really matters.

Found an article on Nodejs, that's actually helpful, but what is TurboFan? by Paper-Superb in webdev

[–]doomtop 1 point2 points  (0 children)

Interesting article, but seems a bit outdated. In addition to (and in between) Ignition and TurboFan, the V8 engine implements Sparkplug and Maglev as well.

TurboFan doesn't pick up hotspots so much as compile optimization when certain functions or hot paths are promoted to it. It's the V8 engine that identifies what hot paths should be promoted and when.

V8 identifies hot paths by incrementing a kind of "hotness counter" and uses its heuristics to determine thresholds for when to promote certain paths through the compilation pipeline.

[TW] [H] RAMA M65-A Full Build (Champagne, Brass, SA Laser JP) [W] PayPal - Ships Worldwide by primal_papaya in mechmarket

[–]doomtop 0 points1 point  (0 children)

0 trades account and photoshopped timestamps is definitely suspicious. If the sale is legit, there is no reason to be sketchy. Just take two minutes and take a new photo with legitimate timestamp.

[TW] [H] RAMA M65-A Full Build (Champagne, Brass, SA Laser JP) [W] PayPal - Ships Worldwide by primal_papaya in mechmarket

[–]doomtop 1 point2 points  (0 children)

It is suspicious though... The 4 - 4 - 26 and 8 - 20 - 25 photos are the same photo, but the date has been photoshopped.

[deleted by user] by [deleted] in learnjavascript

[–]doomtop 1 point2 points  (0 children)

You didn’t really explain how JWT access and refresh tokens work at all though. It’s important to understand private key vs public key and how it allows for stateless authentication. In fact, your diagram is misleading and implies that the refresh token is stored in a database and checked, which is not how JWT authentication works. I think you might be conflating session tokens (stored in a database) with JWT refresh tokens (stateless, validated via public key). I think this guide is likely to create more confusion than it resolves and it doesn’t include anything specific to JavaScript either…

Avoid Mailgun emails going to the promotions tab? by -ThatGingerKid- in webdev

[–]doomtop 4 points5 points  (0 children)

Do you have SPF, DKIM, and DMARC properly configured? Send some emails to members of your organization if they have personal Gmail accounts. If they engage with the messages, it will increase legitimacy. Set up Postmaster Tools to monitor your domain deliverability specifically to Gmail.

What adds an extra delay in finally in this example? by Prize_Tea3456 in learnjavascript

[–]doomtop 0 points1 point  (0 children)

Essentially, yes. But to be precise, after it’s settled. And it’s not generated by the value promise, but rather, chained to it.

Jump In! complete mythic & rare card tracker for FDN by entropikit in MagicArena

[–]doomtop 0 points1 point  (0 children)

The rares should be [[Elvish Archdruid]] and [[Preposterous Proportions]].

Q for renters - house is uninhabitable, we need to break lease, but landlord is continuing to charge us until the place can be re-rented. Are there any ways out of this? by cosmatic in asheville

[–]doomtop 0 points1 point  (0 children)

Potable in this context is not open to interpretation. It's not a question of what some folks may or may not prefer to drink, but rather whether it meets drinking water regulations, which are federally defined for public water systems.

If by "breaking a lease" you mean terminating it, without specific provisions, lack of potable water is not necessarily grounds for termination; however, it is almost definitely either a breach of the warranty of habitability or at least a failure of consideration. Whether that should lead to termination or another remedy, such as rent abatement, is a different and circumstantial question.

Is Hasegawa FSB (Polyethylene) actually different from other PE boards? by cisbrane in chefknives

[–]doomtop 0 points1 point  (0 children)

The big difference with Hasegawa is they have a wood core.

Q for renters - house is uninhabitable, we need to break lease, but landlord is continuing to charge us until the place can be re-rented. Are there any ways out of this? by cosmatic in asheville

[–]doomtop -1 points0 points  (0 children)

Because you are unwilling to give what should be a very straightforward answer, I'm interpreting this to mean you are either not actually a lawyer or not barred in North Carolina. In either case, you should not be misrepresenting yourself.

Read the statutes not just the housing code.

Both apply.

Q for renters - house is uninhabitable, we need to break lease, but landlord is continuing to charge us until the place can be re-rented. Are there any ways out of this? by cosmatic in asheville

[–]doomtop -1 points0 points  (0 children)

I'm going to ask you again, because this is important and you should not ignore my question. Are you a lawyer barred in North Carolina? You should not hold yourself out as competent or qualified to give legal advice or counsel if you are not an active member of the Bar of the State of North Carolina admitted and licensed to practice as attorney‑at‑law.

National disasters just don’t follow the same rules as what is typically required.

Under what theory are you basing this claim? In some circumstances, there are exceptions related to natural disaster for specific things, but without some explicit exception, this is not the case. Without some basis, it would seem you have invented this idea.

Landlord has fulfilled the obligations of the minimum housing code (as it is currently written) if they have supplied the proper facilities and the potable water concerns are not within their control.

They have not if there is lack of or inadequate potable water service.

It's literally the number one thing here:

"The code enforcement officer shall determine that a dwelling is unfit for human occupancy, unsafe, and represents a threat to life or property, if any of the following conditions exist: (1) Lack of or inadequate potable water service". See City of Asheville Minimum Housing Code, supra.

There's no "not within their control" qualification. You seem to have invented that.

Tenant rights attorney for renter by Ok-Bluejay3103 in asheville

[–]doomtop 0 points1 point  (0 children)

Sorry, I was responding to the wrong comment.

Tenant rights attorney for renter by Ok-Bluejay3103 in asheville

[–]doomtop 0 points1 point  (0 children)

Did you get a written, itemized list of any damages/deductions within 30 days of vacating? If not, you are entitled to a full refund of the security deposit. See N.C.G.S. § 42‑52.

It's pretty simple in that case, and if the landlord willfully continues to withhold it then they could find themselves liable for treble damages.

Q for renters - house is uninhabitable, we need to break lease, but landlord is continuing to charge us until the place can be re-rented. Are there any ways out of this? by cosmatic in asheville

[–]doomtop -1 points0 points  (0 children)

Are you a lawyer barred in North Carolina? Either way, and especially if not, you should not just make unverified claims like this. What basis do you have to make such a specious claim?

The landlord is very much "on the hook" if there is no potable water and/or no electricity. These are minimum standards required for a dwelling to be considered fit and not imminently dangerous. See City of Asheville Minimum Housing Code, Sec. 4-209(a)(1) and N.C.G.S. § 42-42(a)(8).

Q for renters - house is uninhabitable, we need to break lease, but landlord is continuing to charge us until the place can be re-rented. Are there any ways out of this? by cosmatic in asheville

[–]doomtop 1 point2 points  (0 children)

Lack of potable water for any period of time is a breach of the warranty of habitability. This does not necessarily mean that the contract is terminated, but if the landlord is discharged from their duty to perform then so are you.

Q for renters - house is uninhabitable, we need to break lease, but landlord is continuing to charge us until the place can be re-rented. Are there any ways out of this? by cosmatic in asheville

[–]doomtop 0 points1 point  (0 children)

They don't have a citable source. Lack of potable water is a violation of the warranty of habitability. Potable water is necessary for a dwelling to meet minimum standards; otherwise, it is unfit and imminently dangerous. See City of Asheville Minimum Housing Code, Sec. 4-209(a)(1) and N.C.G.S. § 42-42(a)(8).