[–] 11 points 2 years ago (1 child)

thanks to wasm any language is a browser running language.

Theoretically yes, practically you may have to deliver a whole runtime depending on the languagey making websites even bigger and slower to load initially. And unless it's a webapp with data processing on the client the perceived performance benefits may be negligible.

  • source
  • parent
  • context
  • [–] 1 point 2 years ago (1 child)

    Keeping the clean version around seems dangerous advice.

    You know it won't get maintained if there are changes / fixes. So by the time someone may needs to rewrite the part, or application many years later (think migration to different language) it will be more confusing than helping.

  • source
  • parent
  • context
  • If it's a microservice architecture using something like openapi and code generators could be a solution. Then the proper classes / types are created during the build step.

    Does not avoid the fields being unused, or service B using an older version before being rebuild.

    The approach would be similar as a library, but works across different languages while changing the definition only on one place.

  • source
  • view more: next ›