Pardhu DatabaseAsValue 11-10-24
Pardhu DatabaseAsValue 11-10-24
Assessment 3
Descriptive Questions
1. How does Datomic's use of immutable data structures benefit historical data
analysis?
Datomic’s are special for their immutability data structures. Immutability
ensures the preservation of history, clear logs. It allows the datomic to maintain a
complete history of all data states and have a track changes, updates and
deletions over time.
As Immutability does not override the current data state, it creates a new
version of data. Datomic allows a straightforward and clear analysis of changes in
data. This allows to make a note of all the previous versions of the state of the
data.
As the data states remain, it is easier to handle the data for modelling and
also increases efficiency of the datomic reducing the errors.
2. Define the key differences between command messages and query messages in
unit testing.
Command messages are used to command the system to perform some
actions and make changes to the system state whereas query messages are
used to retrieve the information from the system without making any changes to
the system.
The CRUD operations can be classified as the command messages where
as select, fetch data are query messages.
Unit Testing for command messages ensures that the commanded
changes are made to the system when the command is passed. In query
messages, unit testing ensures that the accurate or correct data is retrieved from
the system related to query.
Multiple-Choice Questions
3. In ROP, which type is often used to encapsulate both success and failure?
a. a) Dictionary
b. b) Result
c. c) Array
d. d) Class