willriker
How CSS works: Creating layers with z-index
How CSS works: Parsing and painting CSS in the critical rendering path
Re:Show HN: RootCause – Record, Replay and Reproduce JavaScript Errors
on Wednesday April 04, 2018 @01:03PM (#16756671)
I believe they are both classified as analytics tools which is why they are blocked. It's annoying that uMatrix will still block a tool even if you purposefully navigate to their site (versus if the tool is used for analytics on a different company's site).
Front end development in 2017 (year in review)
Re:Understanding redux-saga: From action creators to sagas
on Thursday October 12, 2017 @01:33PM (#15459656)
Another benefit of redux-saga not mentioned here is the ability to build stateful sagas. For example, something like a game loop can be encoded in a saga like this:
export default function* playGame({ getState, selectors }) { yield take(GAME_READY);
const refreshDelay = 1000 / FPS;
while (true) {
yield take(START_GAME_PLAY);
while (true) {
const {
gameState: {
speed,
isPlaying,
gameTime,
},
} = getState();
if (!isPlaying) {
// game play has stopped
break;
}
const timeDelta = refreshDelay * speed;
yield put(setGameTime(gameTime + timeDelta));
// sleep
yield call(delay, refreshDelay);
}
}
}
Re:Understanding redux-saga: From action creators to sagas
on Thursday October 12, 2017 @12:58PM (#15459393)
One key advantage of redux-saga is testability-- since sagas are essentially functions with their arguments passed in by the saga middleware, it is easy to inject mocked dependencies in a test environment.