
How do you build reusable code?
The crux with individual needs
Imagine you are a software developer and receive a customer request that sounds something like this:I want a CRM that can import contacts from XingNow you would start programming the CRM from scratch: choosing a programming language, selecting a framework based on criteria, programming, designing. Alternatively, you take an open-source CRM and develop a Xing extension for it. Now the next customer comes along and says:
I want a CRM that allows me to create quote PDFs based on a calculation maskOnce again, you would program everything from scratch or adapt existing software.
Logical programming allows for specifying software using terms
If you combine the two examples above, you would use the following terms in the customer conversation:- A CRM is a customer database that manages a list of customers and features such as reminders and email integration.
- Xing contacts are the contact entries on the Xing platform that can be read out using the Xing API
- Offer PDFs are automatically generated PDF documents that include a recipient in the letterhead, a greeting, an introductory text, and a table.
- A calculation mask is a form with addable offer items that collects the data for the offer PDF.
Everything with only 2 basic elements: facts and rules
The basis of logical programming is kept very simple, which makes it all the more difficult to accomplish anything meaningful with it. There are only two structural elements of logical programming: rules and facts. Facts are statements that are true. They consist of a predicate as well as parameters. An example: The table.Table<"kunden">.
With this snippet of logic code, it is possible to express that there is a table "kunden" in the database. Analogously, the column: Column<"kunden", "vorname", "text">.
Rules, on the other hand, are constructs that generate new facts from existing facts. An example: Table<table_name> -> MenuEntry<"$table_name$ ansehen">
Through these two constructs, it is possible to construct complex software from a few lines of requirements. This form of software development is also called "Feature Oriented Programming". Software consists of features or functions, each of which is described with a single line of logic code.
Feature Oriented Programming as a product of Launix
To make databases affordable for (almost) every company, we have launched a product where we offer you any software at a fixed price. This works because we can spread the costs of developing the features over several customers. Normal software development would cost 10 times more than FOP.
Click here to learn more about FOP