08 2018 档案

摘要:Due to the way that React Context Providers work, our current implementation re-renders all our compound component consumers with every render of the  阅读全文
posted @ 2018-08-29 03:34 Zhentiw 阅读(491) 评论(0) 推荐(0) 编辑
摘要:If someone uses one of our compound components outside the React.createContext <ToggleContext.Provider />, they will experience a confusing error. We 阅读全文
posted @ 2018-08-29 03:32 Zhentiw 阅读(264) 评论(0) 推荐(0) 编辑
摘要:Recentlly works with AngularJS + ocLazyLoad, our project have break down into multi small modules. For example mainApp module | -- vendor module | -- 阅读全文
posted @ 2018-08-29 00:48 Zhentiw 阅读(242) 评论(0) 推荐(0) 编辑
摘要:There is now a new, recommended, way to register a provider, directly inside the @Injectable() decorator, using the new providedIn attribute. When you 阅读全文
posted @ 2018-08-29 00:34 Zhentiw 阅读(1698) 评论(0) 推荐(0) 编辑
摘要:Using Object Oriented Programming, OOP, style allows us to apply Inversion of Control, IoC, and more patterns. An IoC container helps decoupling depen 阅读全文
posted @ 2018-08-28 01:17 Zhentiw 阅读(1757) 评论(0) 推荐(0) 编辑
摘要:Our current compound component implementation is great, but it's limited in that users cannot render the structure they need. Let's allow the user to 阅读全文
posted @ 2018-08-27 14:44 Zhentiw 阅读(333) 评论(0) 推荐(0) 编辑
摘要:There is no applicationContext.xml file. Too much XML Namespaces helped Enter Java Configuration Create main/java/com.pluralsight/AppConfig.java: 1. S 阅读全文
posted @ 2018-08-27 03:02 Zhentiw 阅读(303) 评论(0) 推荐(0) 编辑
摘要:Aspect Oriented Programming, AOP, allows to reuse logic across an entire app in a very neat way, decoupling it from the business logic. Kaop-ts bring 阅读全文
posted @ 2018-08-26 04:26 Zhentiw 阅读(659) 评论(0) 推荐(0) 编辑
摘要:It’s handy to inspect an element in your browser’s DevTools when you need to experiment or tweak it’s styles, however, it can be very tricky to try an 阅读全文
posted @ 2018-08-23 03:18 Zhentiw 阅读(230) 评论(0) 推荐(0) 编辑
摘要:Add context to our application. main/resources/applicationContext.xml: Using annotation for @Service @Repository @Controller: /repository/HibernateCus 阅读全文
posted @ 2018-08-22 01:46 Zhentiw 阅读(179) 评论(0) 推荐(0) 编辑
摘要:Jest is a fantastic testing library, but maybe you've been putting off the switch because migrating all of your existing tests from another library se 阅读全文
posted @ 2018-08-22 01:10 Zhentiw 阅读(336) 评论(0) 推荐(0) 编辑
摘要:Maid enables you to write your tasks in Markdown. Create a maidfile.md or a README.mdthen add Headers to list out your tasks with codeblocks including 阅读全文
posted @ 2018-08-18 22:22 Zhentiw 阅读(223) 评论(0) 推荐(0) 编辑
摘要:In this lesson we'll use React Live to preview and edit a component directly in the browser. React Live is a great tool for rendering interactive docu 阅读全文
posted @ 2018-08-18 21:53 Zhentiw 阅读(258) 评论(0) 推荐(0) 编辑
摘要:In this lesson we'll use mdx-deck to create a slide deck using Markdown and React. We'll look at adding multiple slides, code snippets, and importing 阅读全文
posted @ 2018-08-17 02:42 Zhentiw 阅读(423) 评论(0) 推荐(0) 编辑
摘要:You often find duplication between the name of a prop and a variable you will assign to the prop. JSX allows you to spread an object containing your n 阅读全文
posted @ 2018-08-17 02:13 Zhentiw 阅读(192) 评论(0) 推荐(0) 编辑
摘要:Meet some problem when trying to install node-sass on windwos. Company has proxy settings, need to remember to set proxy settings in .npmrc file: 阅读全文
posted @ 2018-08-16 17:58 Zhentiw 阅读(108) 评论(0) 推荐(0) 编辑
摘要:Previous we have seen constructore injection: https://www.cnblogs.com/Answer1215/p/9484872.html It would be easier to using autowire to reduce the cod 阅读全文
posted @ 2018-08-16 01:06 Zhentiw 阅读(274) 评论(0) 推荐(0) 编辑
摘要:Previous we see how to do Setter injection: https://www.cnblogs.com/Answer1215/p/9472117.html Now let's see how to cover setter injection to coustruct 阅读全文
posted @ 2018-08-16 00:50 Zhentiw 阅读(180) 评论(0) 推荐(0) 编辑
摘要:Problem with ngModleOptions before 1.6: You repeat a lot, code doesn't look nice, from v1.6: We also have the ability to override specific options, wh 阅读全文
posted @ 2018-08-14 15:33 Zhentiw 阅读(219) 评论(0) 推荐(0) 编辑
摘要:In CustomerServiceImpl.java, we hardcoded 'HibernateCustomerRepositoryImpl' To remove hardcoded Repository, we can use Setter Injection. First, we def 阅读全文
posted @ 2018-08-14 02:26 Zhentiw 阅读(276) 评论(0) 推荐(0) 编辑
摘要:Insertion sort is a very intuitive algorithm as humans use this pattern naturally when sorting cards in our hands. In this lesson, using TypeScript / 阅读全文
posted @ 2018-08-13 20:29 Zhentiw 阅读(228) 评论(0) 推荐(0) 编辑
摘要:A palindrome is a string that reads the same forward and backward, for example, radar, toot, and madam. In this lesson we discuss how to approach the 阅读全文
posted @ 2018-08-10 18:42 Zhentiw 阅读(194) 评论(0) 推荐(0) 编辑
摘要:The anagram test is commonly used to demonstrate how an naive implementation can perform significant order of magnitudes slower than an efficient one. 阅读全文
posted @ 2018-08-10 18:26 Zhentiw 阅读(222) 评论(0) 推荐(0) 编辑
摘要:Vue watchers allow to perform async updates as a side effect of a property change. This lesson shows you how you can watch properties on your class ba 阅读全文
posted @ 2018-08-08 02:08 Zhentiw 阅读(3061) 评论(0) 推荐(0) 编辑
摘要:Vue models, v-model, allow us to use two-way data binding, which is useful in some cases such as forms. This lesson shows how to use it by creating a 阅读全文
posted @ 2018-08-08 01:48 Zhentiw 阅读(2143) 评论(0) 推荐(0) 编辑
摘要:Components can specify requirements for its props, such as the types you’ve already seen. If a requirement isn’t met, Vue will warn you in the browser 阅读全文
posted @ 2018-08-06 01:46 Zhentiw 阅读(458) 评论(0) 推荐(0) 编辑
摘要:We mainly need to modify our Model and REST endpoint code to enable swagger Document. model/Book.java: By doing this, we can get each model defination 阅读全文
posted @ 2018-08-06 00:34 Zhentiw 阅读(414) 评论(0) 推荐(0) 编辑
摘要:1. We have the BookEndpoint.java: 2. Creating a test for the REST endpoint: 阅读全文
posted @ 2018-08-04 23:07 Zhentiw 阅读(286) 评论(0) 推荐(0) 编辑
摘要:1. Create a rest folder with JAXRSConfiguration.java: 2. Create Endpoint file: BookEndpoint.java: 阅读全文
posted @ 2018-08-04 22:31 Zhentiw 阅读(472) 评论(0) 推荐(0) 编辑
摘要:Vue provide some shortcut methods: @mousemove.stop is comparable to e.stopPropogation() @mousemove.prevent this is like e.preventDefault() @submit.pre 阅读全文
posted @ 2018-08-04 15:38 Zhentiw 阅读(172) 评论(0) 推荐(0) 编辑
摘要:So what is a Bean, in JavaEE, any class expect Entity are Bean. One usefully thing in Bean is Dependency injection. Just like Angular, it is just a Cl 阅读全文
posted @ 2018-08-03 02:00 Zhentiw 阅读(211) 评论(0) 推荐(0) 编辑
摘要:This lesson shows how you can extend and reuse logic in Vue components using TypeScript inheritance. It will take you through extending a component, i 阅读全文
posted @ 2018-08-02 23:03 Zhentiw 阅读(2802) 评论(0) 推荐(0) 编辑
摘要:Code for upload iamges: chooseImage: choose the images to upload previewImage: preview the image and enable slide Upload to the server: 阅读全文
posted @ 2018-08-01 16:45 Zhentiw 阅读(324) 评论(0) 推荐(0) 编辑
摘要:When we create Entity and Respority, we also need to do validations to protect our data. In Java, validations are built-in, using decorators. For Type 阅读全文
posted @ 2018-08-01 16:17 Zhentiw 阅读(395) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示