Framework
-
Comparison AngularJS, ReactJS, and Vue.JSFramework/SPA 2020. 4. 11. 08:53
1. Overview Angular React Vue Backed by Google Facebook Community Prevalent Architecture MVC Flux FLux Architecture flexibility No Yes Yes CLI angular-cli No official CLI, but create-react-app is used Vue-cli Documentation Simple somehow limited Adequate Code Reusability Yes No, only CSS Yes, CSS and HTML Main feature Mature framework with Modularity The Node Tree, Virtual DOM The kind of amalga..
-
Application ContextFramework/SPRING 2020. 4. 10. 23:38
1. Overview Application-context in spring means nothing but it is the core component of spring container in spring framework. Ideally, we can say application-context one of the Spring Containers in Spring Framework and another container is bean-factory. The configuration for application-context is loaded by one of the concrete implementations of ApplicationContext interface. The ApplicationConte..
-
N+1 ProblemFramework/ORM 2020. 4. 10. 16:23
1. Overview N+1 problem is a performance issue in Object Relational Mapping that fires multiple select queries (N+1 to be exact, where N= number of records in a table) in a database for a single select query at the application layer. 2. Problem To understand N+1 problem, let's consider a scenario. Let’s say we have a collection of User objects mapped to t_users table in a database, and each user..
-
Comparison between AngularJS and ReactJSFramework/SPA 2020. 4. 10. 16:20
1. Overview The primary difference between AngularJS and ReactJS lies in the state of its management. AngularJS has data binding bundled in by default, whereas React is generally augmented by Redux to give unidirectional data flow and work with immutable data. Both are opposing approaches and there is no consensus on what is better: mutable/bi-directional data binding or immutable/unidirectional..
-
Two-way bindingFramework/SPA 2020. 4. 10. 16:15
1. Overview Data binding in AngularJS is the synchronization between the model and the view. It means if a value of a scope model changes it automatically updates the same value in the view and similarly if the value in the view changes it automatically updates the value in the scope model. 2. Description 2.1 Data Model AngularJS applications usually have a data model. The data model is a collec..
-
Portable Service Abstraction (PSA)Framework/SPRING 2020. 3. 6. 09:47
1. Overview Spring Framework helps implementing technical aspects of the application like security and transactions in a declarative way by providing annotations to capture settings for those aspects. When creating the object tree, it then decorates the instance 2. Example 2.1 Security and Transactions Spring components using services like security and transactions @Component class MyService { p..
-
Dependency Injection (DI)Framework/SPRING 2020. 3. 5. 19:24
1. Overview for dependency injection, Spring can automatically wire up your objects together. So basically what'll happen is that Spring will look for a class that matches a given property. And it'll actually match by type, so the type could be either the class or the interface. Once Spring finds a match, then it'll automatically inject it. Hence it's called Autowired. 2. Dependency Injection wi..
-
Data Caching with RedisFramework/Node.js 2020. 2. 22. 14:48
1. Overview Redis (Remote Dictionary Server) is an in-memory data structure project implementing a distributed, in-memory key-value database with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indexes. 2. Intuition 2.1 Index search case We have this index over here for s..