Dwarves
Memo
Type ESC to close search bar

Software Modeling

This is how I approach a new topic or knowledge, starts with why, understand the concept and figure out how to make it happen.

Why do we need Software Modeling

This can be summed up into 2 definitions:

What is Software Modeling

According to Wikipedia, Software Modeling came out in a lengthy definition. So I took the privilege to paraphrase it like below:

Software Modeling is how to turn an activity of an object from reality to a form that computers can understand and execute.

How to do Software Modeling

People create things to help them solve a problem, instead of doing that themselves. Tools are made to help us do the work easier. The purpose of Software Modeling is to reconstruct the actions that an application needs to take, or the product owner wants to happen.

Action

I’ll take the marketplace as an example of Action in the business world. A marketplace, such as Joolux & Purchasing Care, is a platform where buyer and seller exchanges the goods. An action in marketplace can be defined as:

→ Buyer buys Product from Seller

Model of a Marketplace System

After defining an action, we need to break it down and find the core objects. In this case:

→ Core Object: Buyer-Product-Seller

AARRR Framework

In the business world, AARRR is a habitual method. AARRR is a funnel to analyze the business growth and business development orientation of a company.

Our Design team is using this to follow the final goal of an application or a system. By applying AARRR, designers won’t get lost along the way, or happen to conduct redundant things. The action of an application/ system will go through the end of the AARRR funnel, which lets us know how that action derives revenue stream.

Huy Nguyen : So we need to define the core object before or after applying the framework? Is there any way to locate the core object without using AARRR? Khiem Vo: Normally, an application comes with a landing page. That page displays a tagline, or a short description on the app’s purpose. For instance, take a look at sudo.fm. We get to see a song name, a menu bar for sound control and basic function of a music site. That’s how we know the main action of sudo.fm is a music player. Huy Nguyen: So before identifying the core object, we should spend some time understand the application. But what if it’s a new project with no product or landing page? Khiem Vo: For that case, we’ll adapt the waterfall structure. It means to collect the requirement. What’s the idea of that app? What problem is it trying to solve? Huy Nguyen: And Design team will conduct that part? Khiem Vo: Personally I don’t think that work belongs to a specific team. I’d prefer both Designers and Developers to understand the requirement and come up with a direction. Software Modeling is how we get there, by analyze the system requirement and what should we do to make it happen.

After that, we’ll find out the relationship between them.

Entity Relationship Diagram (ERD)

A relationship between core objects is demonstrated in a form of an entity relationship diagram (ERD).

ERD helps to show

Components of ERD

An ERD should have these things to keep in mind

ERD helps simplify the database, giving us the first impression on a system, what kind of object, how many table and the relationship between them. To create an action, we need to add state - the status of how core object will change during the process of an action.

State Machine Diagram (SMD)

Purpose

Components

To create a completed main action, every object needs its own SMD. The core of a SMD is to define the correct state of an object, and whether or not if that state is related to the system. There are some state which the system doesn’t cover. Based on the requirement and the business scope, we will decide which state is necessary.

Important Notes

Giang Vu: I notice you’ve mentioned the different state between the real world and in SMD system. Do you have any example for that? Khiem Vo: Sure. Let’s look at a marketplace for grocery. The object will be the products. Grocery is perishable goods, which means “rotten” or “fermented” is also a state. But we don’t need to list that into the SMD, because it’s unrelated. We only do it if the states are “shipped”, “packed” or “returned”. Giang Vu: So that means the state will need to be business-oriented? Khiem Vo: True. Another thing to remember is we only have to list out the states if it’s a part of the system flow.

Use Cases Diagram (USD)

Definition

Components

→ In USD, we don’t need to follow any order. The items should be listed out randomly and regroup it into sub-system to create UI or interface.

Huy Nguyen: If two actors are conducting one action, we have to 2 different results. Would it be possible to display it on the same USD? Hieu Phan: Actually each actor will have a separate use case. Giang Vu: Does that mean each boundary system is made for one actor only? Khiem Vo: As I know, boundary system allows us to create different interfaces for different actors. It’s about how many scenario can possibly happen. But I’m not sure one actor can involve in more than one interface at a time.

Component Diagram

Definition

Components

Through a component diagram, a source code can contain

Recap

Software Modeling in Agile team

When we have the insight and the view of the Product Owner, it’s easier to create an effective and outstanding outcome. This also reveals the spirit we’ve been pursuing - Craftsmanship, by providing client with values from their own perspective.