@rauschma@fosstodon.org avatar

rauschma

@rauschma@fosstodon.org

Topics: #JavaScript #TypeScript #fedi22

Other interests:
– Languages: German, English, French, Spanish, Dutch, Mandarin
– Sustainability, degrowth, permaculture, urbanism
– Tiny houses
– Education
– Psychology, getting out of one’s head, heart-centered living
– Minimalist spirituality: Advaita, Daoism, Buddhism, Christian mysticism, J. Krishnamurti, …

I live in Munich. http://pronoun.is/he

Non-tech:
– :pixelfed: Photos: https://pixelfed.de/rauschma
– 💬 Languages: https://mastodon.social/@langtales

This profile is from a federated server and may be incomplete. Browse more on the original instance.

rauschma, to random
@rauschma@fosstodon.org avatar
rauschma, to random
@rauschma@fosstodon.org avatar

Nice PWA idea:

“Currently PWAs in a standalone window can only have one page open at a time. Some apps expect users to have many pages open at once. Tabbed mode adds a tab strip to standalone web apps that allows multiple tabs to be open at once.”

https://chromestatus.com/feature/5128143454076928

rauschma, to ubuntu
@rauschma@fosstodon.org avatar

Installing Node.js on #Ubuntu (22.04.4): It looks like a package manager is best the option.

  • apt only has a very old version. I’d love to be able to use it, but apparently that’s not an option.
  • Node’s website suggests: nvm, fnm, Brew, Docker.

I know Brew, but I don’t need yet another package manager on my Ubuntu. So, nvm?

rauschma, to random
@rauschma@fosstodon.org avatar

TIL: There is an “Edition for Web Developers” of the HTML standard:

“The focus of this specification is readability and ease of access. Unlike the full HTML Standard, this ‘developer’s edition’ removes information that only browser vendors need know. It is automatically produced from the full specification by our build tooling, and thus always in sync with the latest developments in HTML.”

https://html.spec.whatwg.org/dev/

jensimmons, to random
@jensimmons@front-end.social avatar

Are you a web developer? What do you wish you understood better? What's frustrating to get? What do you have to keep looking up over and over?

rauschma,
@rauschma@fosstodon.org avatar

@jensimmons How to access local files. Biggest issue holding cross-browser web apps back at the moment, in my opinion. Each browser seems to be different.

rauschma, to random
@rauschma@fosstodon.org avatar

It sounds funny to my ears that people now use CD terminology and write “burning an ISO image to a USB stick”.

rauschma, to linux
@rauschma@fosstodon.org avatar

: Does anyone use ? Is it worth switching to from Ubuntu? (Hardware: Framework Laptop where it is “community-supported”)

rauschma,
@rauschma@fosstodon.org avatar

Update: I ended up sticking with Ubuntu for now. Why? Better documented and supported. Both matter to a Linux newbie like me. I don’t want to fiddle.

rauschma,
@rauschma@fosstodon.org avatar

@nosherwan Framework laptop 13

rauschma,
@rauschma@fosstodon.org avatar
rauschma,
@rauschma@fosstodon.org avatar

@nosherwan I don’t much care about performance, wanted to play it safe and preferred the simpler port rules that Intel gave me. All of this tipped the scales ever so slightly in favor of Intel.

rauschma, to random
@rauschma@fosstodon.org avatar

Long-time Mac user tries out Linux on a Framework Laptop (last time I used it was in 2000: SUSE Linux, installed from CDs):
– I’m happy with installation & UI (Ubuntu).
– There is now a lot of compatible software: VS Code, 1Password, Tresorit, etc.
– Control key for shortcuts doesn’t work well for me: The macOS Command key is better placed for one-hand shortcuts such as Ctrl-V.
– Clicking with the trackpad seems tricky: The cursor always moves a little before the click is registered.

rauschma, to random
@rauschma@fosstodon.org avatar

I was looking for a Markdown note-taking app. Requirements:
– Operating systems: macOS, iOS, Linux, Android
– I don’t want to pay too much (<$5/month)

Candidates:

I’m currently trying out Joplin:
– Free sync via Dropbox—which is a bit slow. I may eventually switch to Joplin Cloud ($2.40/month).
– Relatively simple UI—which is exactly what I want. Obsidian has many features I don’t need.

rauschma, to javascript
@rauschma@fosstodon.org avatar

:

This is legal syntax:
{3:3}

Why? You can use numbers as keys in object literals. That can be useful for destructuring [1]:

> const {0:a, 2:c} = ['zero', 'one', 'two'];
> a
'zero'
> c
'two'

However, this is not legal syntax:
> const x = {3};
SyntaxError: Unexpected number

Why? This is called a property value shorthand [2] and only works with names of variables.

[1] https://exploringjs.com/impatient-js/ch_destructuring.html
[2] https://exploringjs.com/impatient-js/ch_objects.html#object-literals-property-value-shorthands

rauschma,
@rauschma@fosstodon.org avatar

You can also destructure with computed property keys (*):

const key = 'a';
const {[key]: x} = {a:1, b:2};
assert.equal(x, 1);

(*) https://exploringjs.com/impatient-js/ch_objects.html#object-literals-computed-keys

rauschma, to random
@rauschma@fosstodon.org avatar

Worried about tech products getting worse?

Upside—it’s never been easier to compete with big tech companies: Create simple, usable products.

Many small companies are doing just that—e.g.:
– Repairable phones, earbuds, headphones: https://www.fairphone.com
– Repairable laptops: https://frame.work

Obstacles:
– Mechanisms that prevent competition—e.g., patents.
– People have to change their focus: from low prices & new features to sustainability & repairability.

rauschma, to javascript
@rauschma@fosstodon.org avatar

Upcoming iterator methods:

// Without iterator methods:
const arr = Array.from(myMap.keys())
.filter(k => isPublic(k));

// With iterator methods:
const arr = myMap.keys()
.filter(k => isPublic(k))
.toArray();

(I prefer not to do .filter(isPublic) because isPublic() may gain more parameters in the future.)

https://2ality.com/2022/12/iterator-helpers.html

rauschma, to random
@rauschma@fosstodon.org avatar

Downsides of open source software (OSS):

– Many factions—e.g. many Linux distributions & desktops. Because OSS attracts people that want to write their own software so that it exactly matches their needs(?)

– UIs seem often less polished. Because OSS has more programmers than UI designers(?)

Other than that: It’s ironic how much open source helps companies—especially small ones. IIRC, the first internet boom would not have been possible without open source projects such as Apache.

rauschma,
@rauschma@fosstodon.org avatar

Typical comment in Linux forums 😀: The hardware is really nice—apart from the Wifi not working yet.

(Note that I’m saying this as someone who really likes Linux. I also like macOS because it’s still Unix and many things are easier. But it also locks you into Apple’s ecosystem—whose downsides become increasingly difficult to ignore.)

rauschma,
@rauschma@fosstodon.org avatar

@jaandrle True!

This page is interesting: https://frame.work/linux

– If you use the officially supported distro, you’ll be fine.
– OTOH, I can’t help wonder where Linux would be if there were fewer distros. This page alone mentions several of them: Fedora, Ubuntu, Arch Linux, Manjaro XFCE, Linux Mint

rauschma,
@rauschma@fosstodon.org avatar

@assaf You sound like that’s something OSS should at least partially adopt(?)

leaverou, to random
@leaverou@front-end.social avatar

We’ve always told devs that browsers prioritize what to implement based on dev demand.

There is one exception: .

SVG is used on >65% of websites. Yet, browsers have been refusing to work on SVG, ignoring pressure and pain points from web devs.

showed SVG as the top content pain point: https://2023.stateofhtml.com/en-US/features/content/#content_pain_points

Tons of work (SVG 2, fill & stroke, and more) has sat unimplemented for years. At this point, in standards circles, we know not to touch SVG with a barge pole.

[1/2]

rauschma,
@rauschma@fosstodon.org avatar

@leaverou I don’t know if that makes any sense but maybe someone (such as Igalia) could be crowd-funded to improve browser support for SVG.

rauschma,
@rauschma@fosstodon.org avatar

@leaverou They have done it for MathML (I’m assuming with their own money): https://www.igalia.com/2023/01/10/Igalia-Brings-MathML-Back-to-Chromium.html

rauschma, to mastodon
@rauschma@fosstodon.org avatar

You can use on an (6502 processor, max. 48 KB of RAM): https://www.colino.net/wordpress/en/mastodon-for-apple-ii/

What people say about it:
– “I will never use this and yet I love that it exists.”
– “Absolutely pointless, beautiful work here”
– “All the good features are included, such as unfollow and block, and none of the bad features such as account creation and polls.”
– “I set this up as a lark, but I’m kind of falling in love with it. It’s a different and surprisingly lovely way to use Mastodon.”

rauschma, to random
@rauschma@fosstodon.org avatar

@nic for Babel: “Our source files are mostly written in TypeScript, with the exception of most of the runtime helpers that we inject in the compiled code.”

They are working on changing that and you can help: https://github.com/babel/babel/issues/16500

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines