Live data from Hacker News

Ask HN: Help me pick a front-end framework

news.ycombinator.com

61–70 of 181 posts

Re: Ask HN: Help me pick a front-end framework

#61
> Does anyone still write plain JS?

Oh yeah. JSDoc for type docs has saved me a ton of time fighting with Typescript. I also just think TS is ugly and verbose and personally don’t care for using it.

With FE JS I am usually using types to define the params/returns of functions, or defining the shape of an object to avoid unexpected undefineds.

With JSDoc you get IDE diagnostics for your types when defined without having to appease TS’ particular rules.

For your answer I genuinely suggest running through the intro docs for a few of them to see what clicks.

Vue is alright. React is okay.

If you’re keen to learn a new language and/or have Lisp experience, ClojureScript and re-frame are a pleasure to work with

Re: Ask HN: Help me pick a front-end framework

#62

> Does anyone still write plain JS? Oh yeah. JSDoc for type docs has saved me a ton of time fighting with Typescript. I also just think TS is ugly and verbose and personally don’t care for using it. With FE JS I am usually using types to define the params/returns of functions, or defining the shape of an object to avoid unexpected undefineds. With JSDoc you get IDE diagnostics for your types when defined without havi…

Then you will write a ton of unit tests, read them and realize: "all these type checks are exactly what TypeScript is doing".

Re: Ask HN: Help me pick a front-end framework

#63
post #15

I find Vue easier to learn than React and its documentation is great.

+1. I also recommend this template[1] based on Vitesse, a starter project created by one member of Vue core team. It includes the NaiveUI library with many advanced components ready.

[1] https://github.com/arijs/vitesse-modular-naiveui

Re: Ask HN: Help me pick a front-end framework

#64

OP, I didn’t grok the description of what you’re trying to build enough to have a useful suggestion for you, but as a word of caution you’re probably going to get a lot of responses that don’t take into account you’re specific situation but instead are based on the commenter’s current favorite front end tool. As someone who is pretty new to front end development, you would do well to stick with standard tooling like…

How fast can I do the least work?

React.

Never "how can I do the most maintainable code", "how can I write good code".

Re: Ask HN: Help me pick a front-end framework

#65

Earlier quoted context omitted.

You recommend Cypress as an "obvious" choice, so I am curious whether you evaluated Playwright. If you did, why you find Cypress to be the clearly superior choice? Genuine question.

Optimizing for community size and simplicity for an outsider.

Cypress is anything but simple. It takes a lot of time to learn all the footguns and not write flaky tests.

Re: Ask HN: Help me pick a front-end framework

#66
post #27

> Because of limited time, and low confidence in UX design decisions, I would often follow the path of least resistance and the end product would be heavily influenced by the tools I used to build it. Angular with the Angular Material components library would be very "batteries-included". You don't have to decide how you store state, what testing framework to use, etc. Angular provides sane defaults for most things.…

> The gotcha is that PWAs have virtually zero access to native features.

Huh?

Lots been done in this space — what are you still missing?

Re: Ask HN: Help me pick a front-end framework

#67

If it were up to me, I'd go with the following (mostly based on the largest communities): - Typescript - React - styled-components (I've heard good things about tailwindcss too) - Jest and react-testing-library for testing - prettier and eslint for linting Just throwing it out there in case you'd like to share your code between web, desktop and mobile: - Electron (desktop) - React-Native (mobile) - React-native-web (…

These are good suggestions. I would be wary of picking something like styled-components upfront, though. If you're using something like Chakra-UI or MUI 5 (my personal favorite), they might use different styling conventions in their docs and you may just find it easier to use whatever they use.

Re: Ask HN: Help me pick a front-end framework

#69
Vue is the sort of GUI framework I would've written if I had the talent to do so. Thanks to its reactive nature, powerful things can be extremely easy. Very nice if one knows what they're doing. Power can be misused by the less experienced but what can't?

TS support is optional. and boom - a TS component right there.

I've only spent a day with Svelte but I did like what I saw. Very nice indeed. Anyone with experience building complex apps with it should chime in.

Post reply on HN