Live data from Hacker News

Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

github.com

21–30 of 46 posts

Re: Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

#21
post #12

Earlier quoted context omitted.

Well, typescript is nice. But. The amount of boilerplate I write with redux is downright annoying, add typescript to the mix and the interfaces, typedefinitions, enums, various scattered exports, actioncreators and typehelpers are just mind-boggling - I don't like it. Heck, I already have huge livetemplates in my ide to generate most of these stuff, but it feels wrong. And while we have fun writing "enterprise qualit…

Hi, I'm a Redux maintainer. We're currently working on a package called `redux-starter-kit` that contains some utilities to help simplify common concerns about Redux, including store setup, generating action creators, and writing reducer logic and immutable updates: https://github.com/reduxjs/redux-starter-kit I'd appreciate it if you could take a look, try it out, and give us some feedback. It's currently JS-only, b…

Thank you! I've been thinking of writing a cli helper to generate the boilerplate, but that would be specific to the project I'm working on.

I really loved working with angular-cli, where you can create most of the skeletons with the cli tool (which in turn is supported by webstorm).

Re: Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

#23
I was looking into how google was implemented initially with the pagerank algorithm and I think I am getting closer. Do they still use the same algorithm? I ahve no concept of how things behave when they scale or how to scale for that matter.

Re: Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

#24
post #12

Earlier quoted context omitted.

Well, typescript is nice. But. The amount of boilerplate I write with redux is downright annoying, add typescript to the mix and the interfaces, typedefinitions, enums, various scattered exports, actioncreators and typehelpers are just mind-boggling - I don't like it. Heck, I already have huge livetemplates in my ide to generate most of these stuff, but it feels wrong. And while we have fun writing "enterprise qualit…

Hi, I'm a Redux maintainer. We're currently working on a package called `redux-starter-kit` that contains some utilities to help simplify common concerns about Redux, including store setup, generating action creators, and writing reducer logic and immutable updates: https://github.com/reduxjs/redux-starter-kit I'd appreciate it if you could take a look, try it out, and give us some feedback. It's currently JS-only, b…

I recently started looking at mobx-state-tree[1] and I feel like it solves a lot of the boilerplate needed with redux in a very nice opinionated way. In particular it has built in support for tracking action history (as list of patches and snapshot), building views of computed values (selectors), organizing async action flows, and colocating all of this logic in a single model class.

It can be used on top of redux but it won't really look like redux code anymore. But since you're using immer in the starter, it wasn't going to look like redux anyway (e.g., ton of triple dots everywhere).

Do you have any opinion on mobx-state-tree? Maybe you should just bless mobx-state-tree in the starter too? (immer is built by the same mobx guy)

[1] https://github.com/mobxjs/mobx-state-tree

(I have not actually use the library yet. Secretly hoping you'll will tell me about all the cons so I don't have to do the research myself. Currently choosing a library based on which has the best saga-like support)

Re: Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

#25
post #12
post #5

Earlier quoted context omitted.

Heh. Wait, you're joking right?

Well, typescript is nice. But. The amount of boilerplate I write with redux is downright annoying, add typescript to the mix and the interfaces, typedefinitions, enums, various scattered exports, actioncreators and typehelpers are just mind-boggling - I don't like it. Heck, I already have huge livetemplates in my ide to generate most of these stuff, but it feels wrong. And while we have fun writing "enterprise qualit…

Check out ReasonML with reason-react. Immutability, reducers and type inference built in. Way less code to write and strong guarantees by the compiler.

Re: Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

#26
post #20
post #18

Earlier quoted context omitted.

I know this is going to sound like blasphemy, but is the TS version also going to support Angular?

isn't ngrx the popular store implementation for angular projects?

Pretty much. I'm using ngxs in my ng6 project at work and it'a fantasic library. Way less boilerplate than Redux w/TS.

Re: Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

#27
post #12
post #5

Earlier quoted context omitted.

Heh. Wait, you're joking right?

Well, typescript is nice. But. The amount of boilerplate I write with redux is downright annoying, add typescript to the mix and the interfaces, typedefinitions, enums, various scattered exports, actioncreators and typehelpers are just mind-boggling - I don't like it. Heck, I already have huge livetemplates in my ide to generate most of these stuff, but it feels wrong. And while we have fun writing "enterprise qualit…

State management can be simplified using streams & the meiosis pattern. No real need for redux/mobx/etc

Re: Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

#28
post #24

Earlier quoted context omitted.

Hi, I'm a Redux maintainer. We're currently working on a package called `redux-starter-kit` that contains some utilities to help simplify common concerns about Redux, including store setup, generating action creators, and writing reducer logic and immutable updates: https://github.com/reduxjs/redux-starter-kit I'd appreciate it if you could take a look, try it out, and give us some feedback. It's currently JS-only, b…

I recently started looking at mobx-state-tree[1] and I feel like it solves a lot of the boilerplate needed with redux in a very nice opinionated way. In particular it has built in support for tracking action history (as list of patches and snapshot), building views of computed values (selectors), organizing async action flows, and colocating all of this logic in a single model class. It can be used on top of redux bu…

mobx-state-tree (mst) is an addition to mobx. While mobx is a rather generic approach to manage state via composable observables and actions, mst is a strongly opinionated enhancement of it that brings in e.g. strong typing and some simplifications. While mst was great for some simple things, it soon runs into issues at complex requirements, one of them being performance. In my scenarios after running into some of these issues, I then rebuilt everything in mobx and brought in the strong typing etc. via TypeScript and code governance. This worked great so far, not much boilerplate, great state/action componentisation, also a great serialization/deserialization out of the box with serializr.

Re: Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

#29

I was looking into how google was implemented initially with the pagerank algorithm and I think I am getting closer. Do they still use the same algorithm? I ahve no concept of how things behave when they scale or how to scale for that matter.

Well now they're baking in things like piracy and fake news into the mix and I've noticed a loss in quality for regular search results over the years.

Re: Show HN: I Built a Metasearch Engine with React, Redux, Express and TypeScript

#30
post #12

Earlier quoted context omitted.

Well, typescript is nice. But. The amount of boilerplate I write with redux is downright annoying, add typescript to the mix and the interfaces, typedefinitions, enums, various scattered exports, actioncreators and typehelpers are just mind-boggling - I don't like it. Heck, I already have huge livetemplates in my ide to generate most of these stuff, but it feels wrong. And while we have fun writing "enterprise qualit…

Hi, I'm a Redux maintainer. We're currently working on a package called `redux-starter-kit` that contains some utilities to help simplify common concerns about Redux, including store setup, generating action creators, and writing reducer logic and immutable updates: https://github.com/reduxjs/redux-starter-kit I'd appreciate it if you could take a look, try it out, and give us some feedback. It's currently JS-only, b…

Hi, I've not actually used redux at any scale but I have used react a lot (sounds silly?).

I was wondering, would it be possible to have something like a strict subset of redux with minimal boilerplate and very few and very simple API functions which are redux compatible. But which can eventually be swapped with the full Redux library if need be?

Post reply on HN