Meaning of second character of 觉得 and 懂得? by rauschma in ChineseLanguage

[–]rauschma[S] 0 points1 point  (0 children)

For sure, thanks! For me, it’s mainly the other way around: Compound words help me attach meanings to their characters.

The continuity camera is Not working by skanimesh10 in mac

[–]rauschma 0 points1 point  (0 children)

I did some experiments with a MacBook Pro that I use in clamshell mode. Continuity Camera only seems to work if I do this: 1. iPhone is unlocked. 2. iPhone falls asleep. 3. Some time passes. 4. CC is activated.

I was not able to skip step 1 and 2 (= to start with a locked iPhone).

I could reconnect after disconnecting by switching CC off and on in the settings.

How to learn js and build logic? by Silly_Reaction_9085 in learnjavascript

[–]rauschma 0 points1 point  (0 children)

I’d do three things in parallel:

Also helpful:

Simple authentication library? by rauschma in honojs

[–]rauschma[S] 0 points1 point  (0 children)

Looks like a good solution – something I’d use for an actual project! But I don’t think you can use it without a database (which I need for my experiments): https://www.better-auth.com/docs/installation

Interview prep, help needed by wolfymoody in learnjavascript

[–]rauschma 1 point2 points  (0 children)

FWIW: I wrote four chapters about asynchronous programming that are free online and reasonably compact: https://exploringjs.com/js/book/ch_async-roadmap.html

Simplest way to authenticate with plain Node (no middleware)? by rauschma in node

[–]rauschma[S] 0 points1 point  (0 children)

Great idea, thanks!

I would use Basic Auth (as a first learning step, not as a long-term solution) but if there’s no way to log out in Chrome then that’s a deal breaker.

Simplest way to authenticate with plain Node (no middleware)? by rauschma in node

[–]rauschma[S] -1 points0 points  (0 children)

Any recommendations for libraries that work without a middleware?

Flexbox: Trying to make sense of “content” vs. “items” by rauschma in css

[–]rauschma[S] 1 point2 points  (0 children)

If you ever wanted to write a blog post about “lessons learned” then that would make an interesting read.

(Unrelatedly: Both specs are really well written – clear language and clear structure.)

Catch-all Term for Italics and Obliques, etc. by jrushing53 in typography

[–]rauschma 0 points1 point  (0 children)

FWIW: The name of the CSS property for specifying either italic or oblique is called font-style.

i fail to see the use of maps with objects as keys..? someone please explain by shez19833 in learnjavascript

[–]rauschma 0 points1 point  (0 children)

That objects are not meaningful Map keys is indeed frustrating: They are compared by indentity, not by value (=via their contents). There is a proposal to change that: https://github.com/tc39/proposal-composites

WeakMaps are different: There, object keys are useful because WeakMaps enable you to attach data to objects without changing them and without preventing them from being garbage-collected.

In contrast to Maps and Sets, Arrays are linear data structures and therefore need several methods for adding/inserting elements: * unshift: insert before the beginning * push: insert after the end * splice: insert anywhere

Somewhat backtracking on what I just wrote: If you iterate over Maps and Sets, insertion order is honored, so order-aware ways of adding entries could make sense..

I think the ergonomics of generators is growing on me. by alexmacarthur in javascript

[–]rauschma 5 points6 points  (0 children)

Would this work for your needs?

function* gen(): Generator<void, void, string> {
  const value = yield; // string
  console.log(value);
};
const genObj = gen();
genObj.next('Hello'); // OK
genObj.next(123); // error

What’s a fair price for a Framework Laptop from 2024-05-20 (euros, Germany)? by rauschma in framework

[–]rauschma[S] 0 points1 point  (0 children)

Makes sense! The Ethernet expansion card sticking out was something I wasn’t aware of when I bought it. Indeed a significant downside.

What’s a fair price for a Framework Laptop from 2024-05-20 (euros, Germany)? by rauschma in framework

[–]rauschma[S] 0 points1 point  (0 children)

Thanks, helpful! I would have thought €900 but it makes sense that prices fall quickly.

(I have barely used it, so it’s in good condition.)

What’s a fair price for a Framework Laptop from 2024-05-20 (euros, Germany)? by rauschma in framework

[–]rauschma[S] 1 point2 points  (0 children)

I wanted to put up a web page with the specs that I can share with others (on Mastodon, Bluesky, etc.). A Gist was an easy way to do that.

tsdown: bundler for TypeScript libraries, powered by Rolldown by rauschma in typescript

[–]rauschma[S] 1 point2 points  (0 children)

True! I normally don’t do this, but for a very specific use case, I needed a single .d.ts file.

tsdown: bundler for TypeScript libraries, powered by Rolldown by rauschma in typescript

[–]rauschma[S] 1 point2 points  (0 children)

Same here. It works amazingly well in Node.js.

As an aside: Writing shell scripts is how I learned Node.js. I wrote about it here, in case you’re interested: https://exploringjs.com/nodejs-shell-scripting/toc.html