Declarative Language : SwiftUI

Submitted by jonkimsr on Sat, 12/11/2021 - 11:45

Declarative language is extremely powerful concept. You declare your data model and view model. You throw you data into it and comes out a working app. T'hat's basic clugs of it and it really works this way. 

 

I had tried to learn to code GUI app. First with Atari and Then with Windows. At the time, all we know how to was to create interrupts and deal with interrupt handling. GUI being an interactive environment with keyboard and mouse it seemed natural. But I just couldn't wrap my mind to create a application who purpose in life was to wait for event and respond. 

 

A quick venture into a Apple land with SwiftUI was an eye opening experience. It is like making your first LISP program to work and just your mind blown. Formulating a view model for data and view came natural. It matched with my visual thinking process. If you can imaging how it will look defining it wasn't too difficult and models took care of display. 

Language and which language to learn has profound affect on brain it seems. My language experience started with Pascal and ended with Modula. Both procedural language. It is language of lesser being as its control and flow are limited. Unlike mindless C programmers who can wander the space freely.

 

So it is oddly satisfying to be able to mentally create a visual and declare to start the project. Swift language is not a friend to lesser being though. It was created by C programmer who went over the cooccooc land. It was only meant for higher being. It almost feels like there is god and he is lending you unabridged scripts for you to do you measle human thing and go away. It does not want you mastering it as that will be frivolous effort. Mere human can't master these godly language where limit of vocabulary and grammar exists.

 

But we were given permission to use it, albeit a tiny portion of vast knowledge we can imitate the greatness within with few codes that we can muster. 

 

Long live the King. 10,000 year 10,000 year 10,000 10,000 years!..