HackerTrans
TopNewTrendsCommentsPastAskShowJobs

hughpoint

no profile record

comments

hughpoint
·5년 전·discuss
I have an Aeron from ~2006 which is still in good condition, virtually no drop in the pellicle mesh despite near daily use for 12 years. The foam under the seat near the front lip has died a little, and the arm rest pads needed replacement once.

In 2018 I purchased an Aeron Remastered which for some reason I did not care for, it seemed to tilt differently in the seat and I felt the front lip more on my legs.

So I sold it and purchased an Embody, which I've been very happy with so far.

I think they are only for commercial buyers, but our office uses SitOnIt Torsa chairs (https://www.sitonit.net/productcatalog/torsa_taskchair.html) which I have found to be quite nice in quality and comfort.
hughpoint
·5년 전·discuss
This particular example is 0, [1], which is easily seen by pasting it in the console.

There may be some edge cases I'm not covering here, but JavaScript passes primitives by value (strings, numbers, etc) and non-primitives (objects, arrays, etc) by passing a copy of the reference.

What this means is if you reassign the reference inside of the method, it will only affect that scope, because the reference itself is a copy. If you modify the properties of the non-primitive, it will be modified, because the copy of the reference points to the same non-primitive.

Since primitives are passed by value then any modifications are not reflected outside of the method.

To the other poster below, in JavaScript, const with an array (object, etc) simply prevents reassignment of the variable, the array can still be modified.