The noun of “Outlet” and the verb of “Action” like reading book for computer language

As for Swift language which controls iPhone APP, there is interesting definition: “Outlet” and “Action”.

For those who are not so familiar with Swift or computer language, please see “Outlet” like noun and “Action” like verb from language definition.

One of the key roles about noun is it can be subject in sentence. In this respect, “Outlet” works like subject on program while its meaning can be more detailed with its property, or what I would see as if adjective. Why “Outlet” looks noun is it always connect to object. It appears the name of object.

On the other hand, “Action” do something as its name suggests. Mathematically, “Action” is like function itself. It deals with the input and show the output on its rule. In some cases, the input may not exist, which is different from mathematical function. But, it always has the output so it always do something whenever it is called. Technically, we can control the timing of when “Action” should be called as verb has the rule of tense.

To image things above easily, let’s see a switch of some light. If you switch on some light, the blub lights up your room clearly. This kind of incident can be seen on iPhone APP in a lot of views. In this case, the switch can be “Outlet” and “Action” is lighting up.

As you know, there are many types of switch in the world; size, color or shape. This kind of features can be the property of switch. So, you can choose the design of switch as “Outlet”. Next, you can create “Action” as if you can decorate how the bulb lights up your room. How many light bulbs you need? Yellow or Blue light fits your room? Do you like heavy power battery type? This kinds of desire could be shown as your “Action”.

If you get familiar with these “Outlet” and “Action”, you can see the script of programing as if you read some story on a book.

The first step may be difficult but this could be interesting.