[–] 1 point 3 days ago

Script kiddies are like "eww Java", but this is actually great. If it's output and runtime are performant and not overly bloated this can be pretty awesome. Bringing the gigantic amount of pre-existing Java software to the browser. I would like to see comparisons with Go's WASM

  • source
  •  

    Hi. I want to get my little cousins into computers, and since they're kids, making games are really fun for them. I made a game with them with Love2D and they had a blast (I put their faces on the characters) but I think Love2d is a bit too hard for them.

    My main motive for them is to make something and be creative. Programming is just a tool for that.
    So something simpler with less code and mental load that let's them create stuff more simply is good.

    What do you guys suggest?

     

    cross-posted from: https://programming.dev/post/54211132

    Hi people. I'm creating a system using HTMX
    It's a server using clj-kit, which renders "components" using hiccup and HTMX based on the requests.
    A component generator basically. But it also has some JSON APIs which return pure data.

    The details don't matter. It just exposes REST APIs, user calls REST API with their own custom params and get their custom component.

    The goal is so this can be used for progressive rewrite and enhancement of legacy systems, and the components to be usable in multiple systems, reducing work.
    In order for the user of the system to be able to use these components, they should also add HTMX to their client, and call the service. for example

    <div hx-get="https://component.service/componentx?data-url=https%3A%2F%2Fdata.source%2Fdata" hx-trigger="load">
    

    This is the architecture I thought of. Is this ok? This HTMX article on security says it's not ok to call HTMX with external sources. So what is the best way you suggest to create such system?

    I'm halfway through it already, but I would like to hear what others have to say and your suggestions. Maybe HTMX isn't the right choice at all? I felt like it is.

    Thank you.

    view more: next ›