4
22 Comments

JavaScript framework, but no JavaScript?

Hi Indie Hackers!

I plan starting a side project which will be heavy on the front-end with a very simple back-end. I'm looking for a JavaScript framework to use in order to accelerate development, something like React, Angular or Vue...

The catch is - I would prefer to not write the code in JavaScript, because I don't really like it. I would prefer to write in another language that would then compile to JavaScript, but also integrate well with a good front-end framework.

I have been programming for many years now and I'm proficient in C++, Java and Python. I would ideally have an expressive language like Python that compiles to JavaScript and can be used with a mature framework.

Any ideas?

on May 16, 2020
  1. 4

    I would say that this would add unnecessary overhead to your project, but if you really want something that transpiles into javascript check out elm or typescript.

    1. 1

      I can use JavaScript as well, I just wanted to check on the alternatives. Thanks for the suggestions. Any experience using elm or typescript with one of the popular frameworks?

      1. 2

        I haven't really used elm or typescript much. But I would recommend react and typescript as those two play well together. Personally I use vue with javascript.

    1. 1

      or transcrypt, python to js transpiler.

      https://www.transcrypt.org/

  2. 2

    You should give React, a try. There are numerous resources to learn from and the community is great as well. I have built large projects using minimum knowledge of React.

    While python also seems like a great option, I have never tried it 'on the web', personally. Although, You should check it out.

    1. 2

      The Python to JS libraries don't seem to be very mature, so I guess I will stick with either JavaScript or maybe TypeScript.

  3. 2

    Typescript; strongly typed JavaScript.
    You can use React with Typescript

    1. 1

      OK, I think I get it. TypeScript seems to be very useful for large projects with many developers working on the code. In my case it will be only me, so maybe the overhead is not worth it.

      1. 1

        To be honest, there's very little overhead and it can actually be pretty useful with things like autocompletion in editors like VSCode. We were just two people using it and it made our lives easier.

    1. 1

      I know Java, but I actually would want to use it for anything anymore... I even like the modern C++ versions (C++11, C++14) more than Java, but thanks for the suggestion.

  4. 1

    This seems interesting to me. Do share how it turns out. You can Hire Backend Developer if you want to have a strong backend.

  5. 1

    Without java establishment, a ton of utilizations and sites can't work. In spite of the fact that java has more highlights in view of its quick, reliable, and secure cycle. These highlights upgrade a person to learn java to sparkle in their profession.
    https://sites.google.com/sevenmentor.com/javaclassesinpune/home

  6. 1

    Sounds like a perfect vue project, just saying.
    Vue with Nuxt.js for example.

    This I purely my personal opinion since I have no experience with React.. yet.

  7. 1

    Thanks everybody for the good discussion! I think I will go with React and pure JavaScript. I've been writing some small amount of JavaScript for more than 10 years now, but I guess I have to take a time to learn the modern language features and best practices to be more efficient. I took a look at Vue as well and it also seems nice, but I like that learning React may be more useful if I want to move into native apps with React Native.

  8. 1

    Web assembly?

    1. 1

      What do you mean exactly? Use Python or another language to compile to web assembly?

  9. 1

    Javascript after es6+ is amazing to work with.

    Combine that with React and you have some superpowers.

    1. 1

      I think this is maybe the solution I'm going to go for.

      1. 1

        Nice if it is a big project have a look at https://kea.js.org/ they just did a huge update as well.

        Easiest state management I have seen