Tootfinder

Opt-in global Mastodon full text search. Join the index!

No exact results. Similar results found.
@fanf@mendeddrum.org
2024-05-01 10:42:01

maciej.codes/2022-06-09-local- - Local async executors should be the default in Rust.

@shuttle@mastodon.online
2024-02-29 16:00:07

Last month, we had a talk from @ddprrt about Async Rust and usage of async in Rust traits!
We've teamed up again to bring you an article that summarises async Rust while still covering the important bits that you want to know.
Check it out: shuttle.rs/blog/2024/02/29/asy

@aral@mastodon.ar.al
2024-03-03 13:48:51

You can now create HTML and CSS fragments in Kitten.
This introduces two new file extensions (.fragment.html and .fragment.css) and you can import these fragments into your pages and into other components and fragments as if they were JavaScript modules*.
HTML fragments also support slots.
Example:

Screenshot of terminal window on left, web browser on right.

Terminal window has hx (Helix Editor) 
running, showing 23 lines of code, with the first two highlighted:

import Styles from './Styles.fragment.css'
import Markup from './Markup.fragment.html'

export default async () => kitten.html`
  <page css>
  <h1>HTML and CSS fragments</h1>

  <${Markup}>
    <div>I’m content from index.page.js for the default slot.</div>
    <content for='other'>
      <div>I’m content from index.page.js for …
Screenshot of terminal window showing hx (Helix Editor) with two panes.

Left pane, selected, shows source of Markup.fragment.html:

<div class='box'>
  <p>I’m some HTML from Markup.fragment.html.</p>

  ${SLOT}

  <p>I’m some other HTML Markup.fragment.html.</p>

  ${SLOT.other}
  
  <p>I’m yet more HTML Markup.fragment.html.</p>
</div>

Right pane shows source of Styles.fragment.css:

/* I’m some CSS */
:root {
  --accent-colour: red;
  --border-width: 2px;
}

div {
  border: var(--border-wid…
@inthehands@hachyderm.io
2024-03-03 16:58:20

@…
(With apologies if Mastodon is the wrong place to send this inquiry…)
I’m looking at using TelemetryDeck on my personal web site, because (1) it looks really good and (2) I know at least one of the people behind it is cool.
But…the integration instructions don’t mention using `async` or `defer` attrs on the <script> tag. Won’t tha…

@khalidabuhakmeh@mastodon.social
2024-04-02 16:31:01

I really wish #dotnetMAUI had solved the `async void` issue with the eventing system. Having them in a codebase is triggering me.

@toxi@mastodon.thi.ng
2024-04-26 14:36:52

#ThingUmbrella #ReleaseFriday[1] 🚀 — As announced a couple of weeks ago, a lot of my recent work has been centered around async iterables and addressing the conceptual overlap between the various packages related to those, specifically:

@tenderlove@mastodon.social
2024-05-01 17:38:50

Thought about reading a post on async programming, but I just keep deferring it

@JGraber@mastodon.social
2024-02-23 19:01:50

#Python Friday #215: Async & Await
improveandrepeat.com/2024/02/p

@shuttle@mastodon.online
2024-05-03 20:04:40

It's been a while, but it's time for Fix the Bug again! ✨
What's wrong with this code? (hint: think async!)

@aral@mastodon.ar.al
2024-05-01 10:35:38

If you use a parameter object in JavaScript, even if you specify its shape using JSDoc, you’ll only get errors if required properties are missing; not if there are extra properties provided.
e.g.,
```js
class A {
/**
@param {{
id:string
}} params
*/
constructor (params) {
Object.assign(this, params)
}
}
// Error:
new A({})
// No error:
new A({id: 'x', foo:'bar'})