Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

extends vs includes use case

Extend is used when a use case adds steps to another first-class use case.

For example, imagine "Withdraw Cash" is a use case of an 
Automated Teller Machine (ATM). "Assess Fee" would extend 
Withdraw Cash and describe the conditional 
"extension point" that is instantiated when the ATM user 
doesn't bank at the ATM's owning institution. Notice that the basic
"Withdraw Cash" use case stands on its own, without the extension.

Include is used to extract use case 
fragments that are duplicated in multiple use cases. 
The included use case cannot stand alone and the original use case is 
not complete without the included one. This should be used sparingly and 
only in cases where the duplication is significant and exists by design 
(rather than by coincidence).

For example, the flow of events that occurs at the beginning of every ATM
use case (when the user puts in their ATM card, enters their PIN, and 
is shown the main menu) would be a good candidate for an include.
Comment

PREVIOUS NEXT
Code Example
Javascript :: filter object array 
Javascript :: object literal js 
Javascript :: how to clear array in javascript 
Javascript :: javascript remove event listener after bind 
Javascript :: render html in js.erb 
Javascript :: get query params 
Javascript :: how to add array object in javascript 
Javascript :: how to validate password and confirm password on react form hook 
Javascript :: jquery to copy two input fields into one with a space between 
Javascript :: check if an input element has focus 
Javascript :: fix slow loading images in react 
Javascript :: .includes meaning in javascript 
Javascript :: Usage rate-limiter 
Javascript :: setting live reload sublime text 3 
Javascript :: jquery xpath 
Javascript :: first n elements of array js 
Javascript :: js retrieve form data 
Javascript :: mock createRef jest react functional component 
Javascript :: vue dispatch action at tab close 
Javascript :: strupper in js 
Javascript :: jquery autocomplete search 
Javascript :: mongoose auto increment 
Javascript :: set radgrid datasource clientside 
Javascript :: js min number in array 
Javascript :: recoil js 
Javascript :: jsx else if statement 
Javascript :: line break in javascript in notification 
Javascript :: javascript delete dict value 
Javascript :: javaScript getDate() Method 
Javascript :: react testing library increase debug length 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =