Natural Language and Code Boilerplate
Sometimes it is just tedious to setup similar code routines and boilerplate once again for a new Project. I had this little idea to generate boilerplate and the basic functionality for an application by just using regular english terms. In this Journal Topic I elaborate on how to use the english Language for creating simple prototypes. How much fun ! :-)
A new chapter was released since your last visit ! Click this box to jump right in !
Defining basic terms
MAR 16, 2020 - Robin Gruenke
A language is a structured system of communication. Language, in a broader sense, is the method of communication that involves the use of – particularly human – languages. A language is a structured system of communication. Language, in a broader sense, is the method of communication that involves the use of – particularly human – languages.
As a first step, I want to create some basic terms and relations. I think of stuff in the real world and how they could be used in terms, which could be compiled to some programming languages later on.
Declaration of stuff:
number, name, description, task, calculation, address, date, currency, website
Declaration of amounts:
I have [a|an|number], some (stuff)
Declaration of boundaries:
I have a table (literally), list (like on a note)
- A table just means you would have this sort of table like the one you have at home, with these chairs you can sit on. Just imagine you would have your desk with your stuff on it. In programming, this table could translate to an object or dictionary.
- A list could be just a collection of notes you made. These notes can consist of anything of 'the' stuff !
Secondly, I want to say: 'You declare your stuff, and I ask specific questions later'. This way you can just write down what you have, and later on the compiler will ask you, for example, for a name for the calculation you noted. This way we can define variable and function names in the code, without the user to worry about them in the first place.
Note: Wonder where the rest of the article is ? In my Journal articles, I write and publish small chapters. Every now and then I add a new chapter. Just come back later !