I used to really dislike promises until I finally understand they are just an object with special events and methods. Now I use them all the time #javascript
I've been wading into code/APIs I have zero experience with and making remarkable progress. I'm thinking of it as creating a good starting tutorial.
I'm still giving it fairly tiny utility programs (I am just prototyping crazy stuff) I'm not building anything complex. But as a #UX Designer the fact that I can build a working prototype in #javascript or #processing so damn fast is remarkable.
#Fedify is an #ActivityPub server framework in #TypeScript & #JavaScript. It aims to eliminate the complexity and redundant boilerplate code when building a federated server app, so that you can focus on your business logic and user experience.
The key features it provides currently are:
• Type-safe objects for Activity Vocabulary (including some vendor-specific extensions)
• #WebFinger client and server
• HTTP Signatures
• Middleware for handling webhooks
• #NodeInfo protocol
If you're curious, take a look at the Fedify website! There's comprehensive docs, a demo, a tutorial, example code, and more:
freeCodeCamp
freeCodeCamp's open-source mobile app
freeCodeCamp.org is an online learning platform offering a comprehensive curriculum in #web development and machine learning. The curriculum is self-paced and available free of charge. The App includes challenges, tutorials, Code Radio, and podcasts.
Contribute to freeCodeCamp: https://contribute.freecodecamp.org/
Recently, I was looking for a simple #X11#emoji#keyboard ... and found surprisingly little. A pretty hacky one relying on calling external tools, several only working with specific GUI toolkits (like #gtk, #qt, ...) and weird stuff implemented in javascript 😖 ...
So I did a bit of research regarding feasibility of writing such a tool myself. Well, on the bright side, it's perfectly possible to have an X11 window that never takes focus and still accepts mouse events, so a "virtual keyboard" can certainly be done. It starts to get messy when trying to synthesize input events for whatever window that currently has focus. It seems all you can do is create "keyboard" events with key codes in an 8bit range, so the "hack" is to temporarily fiddle with the keyboard mapping. Seriously 🤯?
Anyone knows a better way to "inject" #Unicode input with X11?
Might attract wayland zealots, let's address this: X11 has lots of problems, that doesn't automatically make wayland the solution.
I've seen people use #Javascript for that 🙄 ... I'd assume #python might be a popular choice as well, or maybe oldschool #perl ... or whatever "fancy" scripting language.
Well, it's nothing good old #POSIX#shell can't do! 😏
A first draft fed each and every line to #sed, and (surprise) was slow as hell, but turns out simple shell patterns are sufficient for the job as well 😎
A fifteen-second demo of how you can create a toast message in 42 lines of code¹ without writing any client-side JavaScript using Streaming HTML² in Kitten³.
Can any compiler engineers explain to me what makes V8 JIT compiler so vulnerable to CVEs? Confused why it is affected by so many and what about it makes it more susceptible to issues than any other compiler. #JIT#V8#javascript
Let me show you how easy it is to create a simple counter web app using the new Streaming HTML workflow in Kitten before peeling away the magic layer by layer so you learn how to make the same app using:
• HTMX & WebSockets
• Plain old JavaScript, and, finally,
• Without Kitten in pure Node.js.
Now that Safari 17.4 is available, what other new web technology — HTML, CSS, JS, Web API, media support, etc — would you like to see supported in Safari next?
What’s most needed?
What will you use it for?
Or how will it help your team serve your users?
Tell me a story…
Fast Internet is not really available these days. Not because of the connection, but because of the excessive data flow and JavaScript application on the pages. In my opinion, this is often too much of a good thing.
"8 year old is learning #Python, and after dealing with a syntax bug she asks: 'If the computer knows I'm missing a semicolon here, why won't it add it iself?' "
"I don't know. I really don't know."
... and then they learned #JavaScript. And now we know why.