by xupybd · 6y ago · 0 comments
I've also used Elm for another little side project, and it was super fun to learn, but it was a bit mind-bending at first.
I think Svelte is a fairly safe choice because it's actively developed and because it's not too different from Angular/React/Vue.
If there's any possibility that you'll have to hand this code over to someone else, I think Elm is a much less safe choice.
So, to echo tomerbd's reply: Elm for fun; Svelte for profit.
I haven't used Elm yet.
Svelte seems great, but it seems to be developed by one person primarily. Also, that person lives in NY and the project looks paused at the moment.
I'm currently writing a blog about trying as many front end frameworks/languages as I can. I'm going with this approach because I want to see what I can learn from each of them. For example, I've learned from Elm that compilers can be much friendlier. I've learned from Svelte that people are more willing to accept what appears to be familiar.
You may learn something completely different.
I've not used Elm so maybe that is better. React has good support for type checking. I would use that.
I'd say it depends on your teams skill set and level of disciple. The best defence against a buggy codebase isn't a programming language or framework, its good all fashioned discipline.
"Just don't write bugs", "just write perfect code", etc
Given that you and your team has all the discipline you need, you could still argue that type checking the codebase in your head is time consuming and is better spent on higher level concepts.
A typesystem can get in the way and slow down development if it's too strict of course, but I feel typescript does a good job of keeping it optional enough.
There is no clear answer here, but at least refactoring is much easier and safer given that your types are sound.
You are putting words in my mouth. I do not believe that you can write perfect code or avoid bugs. Just like I do not believe there is this perfect programming language or framework out there that magically creates clean code.
> you could still argue that type checking the codebase in your head is time consuming
This again, depends on the particular history and skill-set of your team. For example, TypeScript fits very well if you are familliar with C#, while CoffeeScript fits very well to those comfortable with python/ruby, ClojureScript for those who like clojure, ESLint for those comfortable with JS ... etc
Navigating through code, refactoring, or simply figuring out what to pass as function input can become a challenge in the absence of types.
It is still worthwhile imo to have something that catches mistakes even great people make.
Though evancz now works at NoRedInk. https://www.noredink.com/about/team