随笔分类 -  Javascript

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页
摘要:With our Redux implementation lousy with State ADT based reducers, it is time to hook it all up to a React Shell. Having already built out some UI/UX 阅读全文
posted @ 2019-02-11 20:02 Zhentiw 阅读(402) 评论(0) 推荐(0)
摘要:With a well defined demarcation point between Redux and our State ADT based model, hooking up to a Redux store is no different than any other Redux ba 阅读全文
posted @ 2019-02-11 19:54 Zhentiw 阅读(182) 评论(0) 推荐(0)
摘要:When using ADTs in our code base, it can be difficult to use common debugging tools like watches and breakpoints. This is mainly due to the common pat 阅读全文
posted @ 2019-02-08 17:17 Zhentiw 阅读(140) 评论(0) 推荐(0)
摘要:Not only will we need to give our initial state to a Redux store, we will also need to be able to reset our state at any time by dispatching an action 阅读全文
posted @ 2019-02-08 17:11 Zhentiw 阅读(213) 评论(0) 推荐(0)
摘要:Redux provides a convenient helper for combining many reducers called combineReducer, but it focuses in on specific attributes on our state, making it 阅读全文
posted @ 2019-02-07 22:10 Zhentiw 阅读(176) 评论(0) 推荐(0)
摘要:Proxies allow you to use functions that haven't yet been defined on an object. This means that you can invoke a function then create that function if 阅读全文
posted @ 2019-02-07 17:44 Zhentiw 阅读(433) 评论(0) 推荐(0)
摘要:Among the features introduced to the language of JavaScript in ES2019 is Array.prototype.flat. In this lesson we'll see just how easy the flat method 阅读全文
posted @ 2019-02-07 16:46 Zhentiw 阅读(155) 评论(0) 推荐(0)
摘要:The typical Redux Reducer is function that takes in the previous state and an action and uses a switch case to determine how to transition the provide 阅读全文
posted @ 2019-02-05 19:34 Zhentiw 阅读(384) 评论(0) 推荐(0)
摘要:By using the State ADT to define how our application state transitions over time, we clear up the need for a some of the boilerplate that we typically 阅读全文
posted @ 2019-02-01 17:32 Zhentiw 阅读(196) 评论(0) 推荐(0)
摘要:When we start to accumulate functions that all work on a given datatype, we end up creating a bunch of boilerplate code in almost every function to ha 阅读全文
posted @ 2019-01-31 20:24 Zhentiw 阅读(203) 评论(0) 推荐(0)
摘要:When building our stateful computations, there will come a time when we’ll need to combine two or more state transactions at the same time to come up 阅读全文
posted @ 2019-01-31 19:39 Zhentiw 阅读(384) 评论(0) 推荐(0)
摘要:We explore a means to represent the combination of our stateful computations using familiar composition. We dive into what makes this possible by talk 阅读全文
posted @ 2019-01-30 16:54 Zhentiw 阅读(300) 评论(0) 推荐(0)
摘要:The true power of the State ADT really shows when we start combining our discrete, stateful transactions. We start looking at another construction hel 阅读全文
posted @ 2019-01-30 16:40 Zhentiw 阅读(158) 评论(0) 推荐(0)
摘要:Recentlly, I am learning crocks.js ADT libaray. In the beginning, it is hard to understand when to use 'runWith', 'evalWith', 'execWith'. Until I went 阅读全文
posted @ 2019-01-29 17:22 Zhentiw 阅读(219) 评论(0) 推荐(0)
摘要:Using put to update our state for a given state transaction can make it difficult to modify a given state based on its previous value. In this lesson 阅读全文
posted @ 2019-01-29 17:13 Zhentiw 阅读(144) 评论(0) 推荐(0)
摘要:Stateful computations require the ability for their state to change overtime. We take a look on one way to replace the state portion of our stateful d 阅读全文
posted @ 2019-01-29 16:36 Zhentiw 阅读(196) 评论(0) 推荐(0)
摘要:We take a closer look at the get construction helper and see how we can use it to lift a function that maps the state portion and updates the resultan 阅读全文
posted @ 2019-01-29 16:15 Zhentiw 阅读(149) 评论(0) 推荐(0)
摘要:When you need to generate a data set, a generator function is often the correct solution. A generator function is defined with function* and then you  阅读全文
posted @ 2019-01-23 21:36 Zhentiw 阅读(138) 评论(0) 推荐(0)
摘要:A Javascript Proxy object is a very interesting es6 feature, that allows you to determine behaviors whenever a property is accessed in a target object 阅读全文
posted @ 2019-01-23 21:18 Zhentiw 阅读(272) 评论(0) 推荐(0)
摘要:As a beginner of Crocks.js, it was a problem for we to figure out when to use .map() and when to use .chain(). Of course, using the docs help: map: St 阅读全文
posted @ 2019-01-23 17:13 Zhentiw 阅读(438) 评论(0) 推荐(0)

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页