Fuzz Map
11–20 of 20 posts
Re: Fuzz Map
#12How is it able to test code coverage in the browser? Can JavaScript step through JavaScript?
Re: Fuzz Map
#13How is it able to test code coverage in the browser? Can JavaScript step through JavaScript?
I'll speculate. They add extra lines (most probably via AST, not lines of chars) to the code which register if code run. Can't confirm that with code or anything. I saw similar techniqies in test coverage tools.
_cover(123);
after each line, where 123 is the line number.Could be a fun project to write a bookmarklet that does this to the current page, then lets you use it and then tells you which parts of the code have not been used.
Re: Fuzz Map
#14Re: Fuzz Map
#15Re: Fuzz Map
#16It's really sad most of the front-end community has moved from Redux. This could be coupled with Redux to give you possible transitions of interfaces or how a particular session has transitioned.
Re: Fuzz Map
#17It's really sad most of the front-end community has moved from Redux. This could be coupled with Redux to give you possible transitions of interfaces or how a particular session has transitioned.
What are they using now?
With SPAs becoming less popular, more state moving to the server again (trying to keep local state in sync with remote DB state for a long lived session is a PITA), and React hooks making medium-size state management more accessible, bigger frameworks such as Redux became less popular.
Nowadays you have usually have a lot of individual sections of components with hooks-based state, rather than having everything connected to a central Redux store. You usually still have some form of global state management though, in the form of e.g. a shared react-query cache (used for data fetching). Besides that libraries like react-hook-form that handle state management for specific use cases have also become more popular.
Re: Fuzz Map
#18It's really sad most of the front-end community has moved from Redux. This could be coupled with Redux to give you possible transitions of interfaces or how a particular session has transitioned.
Later, I started using one single context wrapping the whole thing. This provided most of the benefit of redux - all the code was in DataProvider.js - at the cost of one file. I found that the organization provided (ha ha)less need to go down the whole immutable path. This was just a practical thing, but it has worked extremely well for me.
Re: Fuzz Map
#19Earlier quoted context omitted.
What are they using now?
In early days React, which was also the time where SPAs were popular, Redux was popular, as with an SPA you usually have to manage a lot of local state, which is benefits a lot by having a central managed state. With SPAs becoming less popular, more state moving to the server again (trying to keep local state in sync with remote DB state for a long lived session is a PITA), and React hooks making medium-size state ma…
Re: Fuzz Map
#20It's really sad most of the front-end community has moved from Redux. This could be coupled with Redux to give you possible transitions of interfaces or how a particular session has transitioned.
After a couple of decades programming I've come to think the size/status of something like Redux is today (mature, stable, moderate size community of long-term users who are focused on actually building things with it) is the perfect kind of project to depend on. Projects that have survived the hype cycle are what you want, not projects that are currently in the eye of the storm. The fact that it seems like yesterday's thing is good, it puts off exactly the right kind of people.