6
Cyanide
2y

Any way to code frontend without JS?

Comments
  • 3
  • 9
    Yes, any way.
  • 2
    You could try Rust or Go (has 2 MB runtime though...), but sadly WASM isn't anywhere mature yet
  • 1
    Now that I think about it people seem to really like Elm, maybe give that a look
  • 4
  • 8
    Yes, just use HTML5.
    Or use TS.
    Or use some other language and compile to WASM.
    Or develop your own browser.
  • 3
    Do what they do on phones. Write an app.
  • 1
    Sure, u can use java. GWT, for example... Gonna be painful, yes, but... Possible.
  • 1
    full and proper ssr not a possibility?
  • 1
    Many options. Many. Some better, some worse. Some more production ready, some less so.
  • 1
    @12bitfloat Elm doesn’t seem to be in active development anymore, unless I’m mistaken. So maybe better use something inspired by what Elm was doing?
  • 2
    I heard coffeescript is pretty hip today.
  • 2
    html5 - the way to go for all form inputs
    CSS3 - layout, styling and even some animation

    Personally, I'd go with a relatively straightforward front end framework, such as UIkit, which provides html, CSS classes and associated javascript in neat, pre-built modules. It is easy to use and very lightweight. There's also a brilliant config tool if you use V2.
  • 2
    php? not a fan tho
  • 1
    There's that library that lets you run python in the browser.

    WASM allows you to offload some tasks to it but definitely isn't a replacement for JS (no DOM access)

    You have TypeScript but if you hate JavaScript, TS won't really catch your attention.

    There are probably many transpilers from other scripting languages.
  • 3
    No, Carl, your $30 landing page doesn't need JavaScript.
  • 1
    Technically, if all your website does is send GET/POST requests by user clicking things and you don't mind page reload behavior, HTML forms are enough.

    Also, WASM?
  • 2
    @vintprox Not only WASM.

    Other technos here :

    Blazor Server Side.

    As a developper you never to JavaScript (Except maybe some very EDGE cases)

    Now, i'm putting out app in production in a couple of months (10K daily users), we'll see if it holds
  • 2
    Yes! C++, Rust, C#, Dart, Swift, Kotlin, Java, …
    Oh! You mean frontend like… websites! Not many good options there. TS… I guess is a bit less retarded than JS.
  • 5
  • 2
    @localpost it was obvious that a german made that website lol
Add Comment