Angular and React are two of the most popular front-end JavaScript frameworks used for web development. Both have their own unique features and advantages, and choosing between them can be a challenge. In this article, we’ll highlight the key differences between Angular and React, to help you make an informed decision.

Architecture

Angular is a full-fledged framework, meaning that it includes a comprehensive set of tools and features for building complex applications. Angular uses a component-based architecture, where components are the building blocks of an application. Angular also uses a two-way data binding approach, which means that changes in the model will reflect in the view, and vice versa.

React, on the other hand, is a JavaScript library that is mainly focused on the view layer. React uses a component-based architecture, similar to Angular, but it uses a one-way data binding approach. This means that changes in the model only affect the view, and not the other way around.

Learning Curve

Angular has a steep learning curve due to its complexity and the number of features it offers. Angular requires a solid understanding of TypeScript, which is a statically-typed programming language, and also requires a good understanding of its component-based architecture and two-way data binding.

React, on the other hand, is relatively easier to learn and has a shallower learning curve compared to Angular. React only requires a solid understanding of JavaScript and its component-based architecture.

Performance

React has a slight edge over Angular in terms of performance. React uses a virtual DOM (Document Object Model) to render changes, which is faster than Angular’s change detection mechanism. This means that React applications can handle larger amounts of data and perform better than Angular applications in certain situations.

Angular, however, provides a more comprehensive set of tools and features, making it easier to build complex applications. This comes at the cost of performance, but it is still possible to build high-performance applications with Angular using optimization techniques.

Read more »

In the realm of functional programming, Stream has gained immense popularity, and Java 8 gave it to us. Even though it’s been with us for some years now, not everyone has mastered using it. Let’s take a deep dive into the Java Stream Class.

The Stream Class

Introduced in Java 8, Stream is a sequence of elements supporting sequential and parallel aggregate operations. It helps in achieving functionality like SQL statements. However, contrary to popular belief, it’s not a data structure but more of a view onto a data structure.

1
Stream<String> stream = Stream.of("Java", "Python", "C++", "JavaScript");

Note

Stream operations exploit the capability of multi-core processors, where each task is assigned to a separate core of the processor.

Stream Class Methods

Below are examples of some methods available in the Stream class:

  1. forEach()

forEach() method helps in iterating over each element of the stream.

Read more »

8543 这个 stream 其实非常不适合跨专业的同学,有很大的难度。
我 2019 年秋季入学,UNSW 第一年实行三学期计划,相当的混乱。在 UNSW Sydney 上了一学期的课之后,就迎上了 COVID-19

2019 Term 3

COMP9021 Principles of Programming
Python 基础课,科班出身基本不用听闭着眼睛就能 HD。如果是转专业的朋友那需要花点时间提前熟悉一下

COMP9020 Foundations of Computer Science
属于基本的数学课,拿高分比较难,得花心思做题。

COMP9311 Database Systems
数据库的基本课,华人老师授课。UNSW 数据库相关的课程大部分都是华人老师。Lab会用 PostgreSQL。讲一些数据库关系和范式,本科学过的话相当简单

2020 Term 1

Read more »

I have tried many password mangers like Google Chrome built-in, iCloud Keychain, LastPass, 1Password. Each of them has different advantages in different environments. For example, iCloud Keychain works perfectly in all Apple Device. 1Password is such thoughtful product. However, each product has little defect like cross-platform problem or price That may be my defect ;-).

I found many Open Source alternatives which can be hosted and controlled by myself. The most important thing is most of them can cover all my platforms. I picked up Bitwarden as my password manager solution. And I tried to deploy it on my Oracle Always Free server.

It is quite easy if you choose to host it with docker.

Read more »
0%