Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acemarke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
721.
▲
by
acemarke
7y ago
One of the best articles I've seen on writing documentation is "What Nobody Tells You About Documentation" [0]. It divides docs into four categories: Tutorials, How-To Guides, Discussions, and References. I'm currently
722.
▲
by
acemarke
7y ago
I agree that you need a pragmatic approach to using types. That said, I also strongly believe that meaningful use of TS is a vital requirement for any project that will be maintained over time or involves multiple people. I wrote my though
723.
▲
by
acemarke
7y ago
Cypress actually _just_ released Firefox and Edge support a couple weeks ago: https://www.cypress.io/blog/2020/02/06/introducing-firefox-a... The Edge support kinda came for free thanks to its switch to
724.
▲
by
acemarke
7y ago
I'd say absolutely yes, it is. I wrote up my experiences learning TypeScript here: https://blog.isquaredsoftware.com/2019/11/blogged-answers-le...
725.
▲
by
acemarke
7y ago
I'd suggest using Yarn's "offline mirror" functionality, which lets you commit the exact set of packages into the repo, then install them when the repo is checked out without needing additional network requests. https:&
726.
▲
by
acemarke
7y ago
Multiple problems here: - "jQuery interview questions" - Clickbait format - The fact that Morioh.com has been called out _repeatedly_ for stealing content from other sites without attribution (as in, entire articles)
727.
▲
by
acemarke
7y ago
> Redux requires tons of boilerplate Not _required_. There's both "inherent" and "incidental" complexity around Redux [0]. We've created our new Redux Toolkit package [1] to specifically eliminate the &quo
728.
▲
by
acemarke
7y ago
Yarn v1's "offline mirror" feature is explicitly meant for this use case. I wrote about it a few years ago, and have been successfully using it since then: https://blog.isquaredsoftware.com/2017/07/
729.
▲
by
acemarke
7y ago
Which is indeed one of the points of Redux. The more of your app you can write as pure functions, the more of it is predictable and easily testable, so you don't have to worry about how it's going to behave. That's part of wh
730.
▲
by
acemarke
7y ago
Noted! https://github.com/reduxjs/redux/issues/3592#issuecomment-58... :)
731.
▲
by
acemarke
7y ago
A few other differences: - The classic desktop GUI frameworks (Qt, wxWidgets, MFC, Swing, WinForms, etc) are based on a completely OOP inheritance and ownership model. You are responsible for instantiating widget instances, configuring the
732.
▲
by
acemarke
7y ago
If you can take a few minutes to read through https://redux.js.org/style-guide/style-guide#use-plain-javas... , and specifically the "Detailed Explanation" section there, I talked through all the perceived an
733.
▲
by
acemarke
7y ago
I'm not sure what point you're trying to make here. Both of those examples are _specifically_ about using React to do the actual DOM manipulation. React-Bootstrap is a set of React components that know how to generate the correct
734.
▲
by
acemarke
7y ago
If you look back at a typical 2011-ish jQuery app, the exact opposite is true. You might have a modal visible in the page, but the only indication code-wise that the modal existed was in the DOM itself, because there was a one-time mutation
735.
▲
by
acemarke
7y ago
Because React, more so than the other frameworks, puts such a strong emphasis on "the UI output is entirely based on your state", while at the same time there are some limitations to tracking state in ways that are inherently tied
736.
▲
by
acemarke
7y ago
As I've mentioned elsewhere in the thread: - Our new Redux Toolkit package ( https://redux-toolkit.js.org ) simplifies most common Redux use cases, - Our new Style Guide docs page recommends patterns that result in simpler co
737.
▲
by
acemarke
7y ago
Sorry, I have no experience with Flutter or knowledge of how Redux is being used with it, other than having seen one or two random comments where the two names appeared together.
738.
▲
by
acemarke
7y ago
Note that we specifically recommend _against_ using Immutable.js, and that there's many misunderstandings about the hypothetical performance benefits that Immutable.js provides: https://redux.js.org/style-guide/sty
739.
▲
by
acemarke
7y ago
I'm a Redux maintainer. There's a bunch of reasons why Redux took off: - In 2014, a year after introducing React, Facebook announced the "Flux Architecture" concept [0]. Since it was mostly just a pattern and not a lib
740.
▲
by
acemarke
7y ago
> because utilities like the excellent `redux-toolkit` weren't and still aren't as widespread as they should be. hey, I'm trying to broadcast it as much as I can :) fwiw, the adoption curve is definitely going up: https:&
741.
▲
by
acemarke
7y ago
As I've already said in this thread, we're currently working on a docs rewrite to try to update things for today's target audience: https://github.com/reduxjs/redux/issues/3592 . As part of tha
742.
▲
by
acemarke
7y ago
See the docs for the original Flux Architecture: https://facebook.github.io/flux/docs/in-depth-overview Redux was originally designed as a Flux implementation: https://blog.isquaredsoftware.com/201
743.
▲
by
acemarke
7y ago
Understanding the original context and intent of a tool is important. Back in 2017, I wrote a post that covered the overall intent behind Redux's design [0], as I was already seeing that folks didn't know the background. That la
744.
▲
by
acemarke
7y ago
FWIW, we have some rules of thumb in the Redux docs for when it _might_ make sense to put data in the Redux store: https://redux.js.org/faq/organizing-state#do-i-have-to-put-a... We're currently working on a major
745.
▲
by
acemarke
7y ago
Hi, I'm a Redux maintainer. You may be interested in my suggested resources for learning React and Redux: https://blog.isquaredsoftware.com/2017/12/blogged-answers-le... https://blog.isquaredsoftwa
746.
▲
by
acemarke
7y ago
Thanks, and you're welcome! I obviously didn't _create_ Redux, but I'll take a decent amount of credit for helping keep it relevant over the last few years (docs work, blog posts, answering questions, React-Redux updates, Red
747.
▲
by
acemarke
7y ago
Hi, I'm a Redux maintainer. Please check out our new official Redux Toolkit package. It includes utilities to simplify several common Redux use cases, including store setup, defining reducers, immutable update logic, and even creating
748.
▲
by
acemarke
7y ago
FWIW, I'm a Redux maintainer, and I personally have never understood the point of trying to limit what actions are being dispatched. As long as your reducers and action creators are well typed, it shouldn't matter what other acti
749.
▲
by
acemarke
7y ago
Looks like it's primarily because it turns on the "PnP" feature by default, which keeps packages cached in compressed files instead of extracting them into `node_modules`. Most tools rely on files being on disk in `node_modu
750.
▲
by
acemarke
7y ago
Looks like `json-server` is a real server, whereas Mirage is a tool for mocking `XmlHttpRequest` and `fetch` on the client side in the browser.
More ›