triptych , to Random stuff
@triptych@social.lol avatar

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

scottjenson , to Random stuff
@scottjenson@social.coop avatar

My experimentation with + programming has been a mixed bag:
Pros:

  • It often gets it right the first try
  • It's faster to change the prompt than edit the code
  • it can explain code fairly well

Cons

  • I can ask the exact same prompt and get different code that WONT work!
  • After several iterations, the code just stops compiling
  • I frequently save revisions of files so I can upload a working file and iterate from there.
  • It's SO SLOW to wait for it to type out
scottjenson OP ,
@scottjenson@social.coop avatar

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 Designer the fact that I can build a working prototype in or so damn fast is remarkable.

jobsfordevelopers Bot , to Random stuff
@jobsfordevelopers@mastodon.world avatar
nixCraft , to Random stuff
@nixCraft@mastodon.social avatar

As a developer, what one thing would you never admit to anyone? 🤔

msgood531 ,

@nixCraft that I use a loosly typed programming language

(hypothetical example obviously)

mobileatom , to Random stuff
@mobileatom@flipboard.com avatar

Why use Web Components over traditional DOM manipulation? #WebComponents #HTML #JavaScript

https://gomakethings.com/why-use-web-components-over-traditional-dom-manipulation/?utm_source=flipboard&utm_medium=activitypub

Posted into Coding is Living @coding-is-living-mobileatom

hongminhee , to Random stuff
@hongminhee@todon.eu avatar

If you are hesitant to use , an server framework in , what are the main reasons?

hongminhee , to Random stuff
@hongminhee@todon.eu avatar

is an server framework in & . 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)
client and server
• HTTP Signatures
• Middleware for handling webhooks
protocol

If you're curious, take a look at the Fedify website! There's comprehensive docs, a demo, a tutorial, example code, and more:

https://fedify.dev/

davidbisset , to Random stuff
@davidbisset@phpc.social avatar
foss_android , to Android
@foss_android@mstdn.social avatar

freeCodeCamp
freeCodeCamp's open-source mobile app

freeCodeCamp.org is an online learning platform offering a comprehensive curriculum in 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/

Download: https://play.google.com/store/apps/details?id=org.freecodecamp

ALT
  • Reply
  • Loading...
  • rauschma , to Random stuff
    @rauschma@fosstodon.org avatar

    We are finding out that Twitter worked well for spreading the word about our free newsletter on and tooling.

    :mastodon: I’m hoping that Mastodon can do that, too. Boosts appreciated!

    Current issue: https://ecmascript.news/archive/es-next-news-2024-04-09.html
    Subscribe here: https://ecmascript.news
    Mastodon account: @ecmascript_news

    zirias , to Random stuff
    @zirias@techhub.social avatar

    Recently, I was looking for a simple ... and found surprisingly little. A pretty hacky one relying on calling external tools, several only working with specific GUI toolkits (like , , ...) 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" input with X11?

    Might attract wayland zealots, let's address this: X11 has lots of problems, that doesn't automatically make wayland the solution.

    zirias OP ,
    @zirias@techhub.social avatar

    When even thinking about writing your own , the first challenge is to convert a textfile to some source for your programming language (to have all the emoji data available):
    https://unicode.org/Public/emoji/15.1/emoji-test.txt

    I've seen people use for that 🙄 ... I'd assume might be a popular choice as well, or maybe oldschool ... or whatever "fancy" scripting language.

    Well, it's nothing good old can't do! 😏

    A first draft fed each and every line to , and (surprise) was slow as hell, but turns out simple shell patterns are sufficient for the job as well 😎

    image/png

    linuxmagazine , to Random stuff
    @linuxmagazine@fosstodon.org avatar

    From today's Linux Update newsletter: Pete Metlcalfe shows you how to use your favorite libraries on client-side web pages with https://www.linux-magazine.com/Issues/2024/278/PyScript

    aral , to Random stuff
    @aral@mastodon.ar.al avatar

    🍞 Kitten toast, anyone?

    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³.

    Video:

    https://vimeo.com/925828491

    Source code:

    https://codeberg.org/kitten/app/src/branch/main/examples/streaming-html/toast/index.page.js

    Enjoy!

    :kitten: 💕

    ¹ Almost half of which is CSS.
    ² https://ar.al/2024/03/08/streaming-html/
    ³ https://codeberg.org/kitten/app

    nrk9819 , to Firefox
    @nrk9819@mastodon.social avatar

    Everytime I want to love @firefox , I realize that it doesn't support View Transitions API 😭😭😭😭😭😭😭

    brianleroux , to Random stuff
    @brianleroux@indieweb.social avatar

    The argument shouldn't be why use node:test (or any builtin) but rather why not.

    And no, an appeal to popularity is not a valid argument.

    anatudor Bot , to Random stuff
    @anatudor@mastodon.social avatar

    Sometimes I code cool things.

    If you're a patron on Patreon, you may have already seen this interactive demo and the filter effects the basics of which it illustrates here.

    Now it's public for everyone to see on https://codepen.io/thebabydino/pen/ZEPKeLz

    I hope you like it, getting the layout right ended up being hundreds of hours of work.

    Demo illustrating the feColorMatrix used to suppress/ select individual RGB channels. Offers multiple comparison and test image options. Viewport adaptive.

    Crell , to Random stuff
    @Crell@phpc.social avatar

    My team has spent the last year catching up on many upgrades, both language version and frameworks.

    The hardest, that require the most reworking? It's not the stuff. It's the framework and associated bits.

    alephoto85 , to Programming Italian
    @alephoto85@livellosegreto.it avatar

    [TUTORIAL] SolidJS - Guida per iniziare

    @programmazione

    Una libreria JavaScript dichiarativa, efficiente e flessibile per la creazione di interfacce utente.

    https://www.solidjs.com/guides/getting-started

    blastoise , to Random stuff
    @blastoise@infosec.exchange avatar

    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.

    aral , to Random stuff
    @aral@mastodon.ar.al avatar

    New blog post: Streaming HTML

    https://ar.al/2024/03/08/streaming-html/

    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.

    Enjoy + let me know what you think.

    :kitten: 💕

    ALT
  • Reply
  • Loading...
  • jensimmons , to Random stuff
    @jensimmons@front-end.social avatar

    Dear people who make websites,

    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…

    kubikpixel , to Random stuff
    @kubikpixel@chaos.social avatar

    «JavaScript Bloat in 2024»
    – by @nikitonsky

    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.

    ☝️ https://tonsky.me/blog/js-bloat/

    robrich , to Random stuff
    @robrich@hachyderm.io avatar

    "8 year old is learning , 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 . And now we know why.

    davidbisset , to Random stuff
    @davidbisset@phpc.social avatar
    kraktoos , to Random stuff
    @kraktoos@fosstodon.org avatar

    is actually really cool and simple. A breath of fresh air coming from a framework war background

  • All
  • Subscribed
  • Moderated
  • Favorites
  • supersentai
  • WatchParties
  • Rutgers
  • jeremy
  • Lexington
  • cragsand
  • mead
  • RetroGamingNetwork
  • loren
  • steinbach
  • xyz
  • PowerRangers
  • AnarchoCapitalism
  • kamenrider
  • Mordhau
  • WarhammerFantasy
  • itdept
  • AgeRegression
  • mauerstrassenwetten
  • MidnightClan
  • space_engine
  • learnviet
  • bjj
  • Teensy
  • khanate
  • electropalaeography
  • neondivide
  • fandic
  • All magazines