unboiled.info
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
akash_rawal@lemmy.world to Programming Horror@programming.dev ·
edit-2
2 years ago

Programming HTML in Rust may have annoyed some gods.

i.imgur.com

external-link
message-square
10
link
fedilink
  • cross-posted to:
  • programminghorror@lemmy.world
52
external-link

Programming HTML in Rust may have annoyed some gods.

i.imgur.com

akash_rawal@lemmy.world to Programming Horror@programming.dev ·
edit-2
2 years ago
message-square
10
link
fedilink
  • cross-posted to:
  • programminghorror@lemmy.world
alert-triangle
You must log in or register to comment.
  • Hexarei@programming.dev
    link
    fedilink
    arrow-up
    25
    ·
    2 years ago

    Web development is, and will always be, just a game of finding increasingly cursed unique ways to concatenate HTML strings

    • cadekat@pawb.social
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      One day I’ll find a reason to use html!. One day.

    • o11c@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      The problem is that what everybody really wants is parameterization, not concatenation. But most solutions therefor are flaky even if they exist.

  • ILikeBoobies@lemmy.ca
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

    All programming was intended to take place within Rust

  • Zeth0s@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    2 years ago

    I have seen frontends written in c#. Nothing surprises me anymore

    • etler@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      After experiencing struts everything else looks great in comparison

  • Macil@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 years ago

    This looks like how React components are written if you make the weird choice of not using the JSX syntax extension for React elements. I wonder if you could make a JSX-like DSL with Rust macros. JSX really helps for making this kind of stuff bearable.

    • autokludge@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 years ago

      after a quick search … https://github.com/bodil/typed-html also leptos uses something similar

  • Ferris@discuss.online
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    Wow. Looks like my browser renders imgur nonfunctional at this point. Weird.

  • hairyballs@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    Genuine question: what’s wrong with templating engines?

Programming Horror@programming.dev

programming_horror@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming_horror@programming.dev

Welcome to Programming Horror!

This is a place to share strange or terrible code you come across.

For more general memes about programming there’s also Programmer Humor.

Looking for mods. If youre interested in moderating the community feel free to dm @Ategon@programming.dev

Rules

  • Keep content in english
  • No advertisements (this includes both code in advertisements and advertisement in posts)
  • No generated code (a person has to have made it)

Credits

  • Icon base made by Lorc under CC BY 3.0 with modifications to add a gradient
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 2 users / week
  • 2 users / month
  • 29 users / 6 months
  • 1 local subscriber
  • 2.05K subscribers
  • 35 Posts
  • 275 Comments
  • Modlog
  • mods:
  • Vacant@programming.dev
  • UI: unknown version
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org