Sunday, September 18, 2016

What is a string Value....?

So then what is a string value..?
Unary operators and parathetical statements are strings indeed and
they are central in our discovery as to..."What is a string value ?".
To the system everything is an object. The initial object is termed <void>. Void is not nothing.It is a model.
It is a blueprint of an idea.The idea is one of a space for action.
For example, in Mathematics the plus sign ("+") denotes the operation 'addition'....
In operations like addition, take 2+3=5 for instance, the place of action is with the unary operator at the begining of the equation
2[+]3 followed by the '=' operator [=] followed by the result [5]. Note that it is a sequence of states.
The unary operator "+", the plus sign, does one thing (it is unary) and operates upon the data stores in one way only.
No matter the numbers being added together the operation produces the sum of the munbers.
In commputer programming as in Mathematics certain sigils denote something other and that other is concretely defined.
In computer science as in Math the paranthesis () is mapped to the idea or concept to 'do this first' within the operation.
The string composed of the two sigils in certain arangement "()" tells us how to proceed...do this first.
The two marks thus placed are signified as an expression telling us and the system without ambiguity what is intended in the order of operation.
So then the results of 9/(4+5)+5 is: 6, where-as the results of 9/4+(5+5) is: 12.25. This is fundemental to the correctness of our programs.
The square brackets also denote or are mapped to an idea.. that of a schema or model of a space to define unambigousely a specific data structure.
[<TypeName>]...read CLASS is a model of, or, blueprint for an instance of a thing, but,
it's not the actual thing...just a specification for describing the thing (the CLASS). Those something
elses are again and again and again data structures or stores and each is an object.
[]... is not a data structure. It is a place where there is a data structure.....To the system everything is a data structure
to be operated upon or a place where the operations "()" and data "[]" reside.... a kind of of conceptual <void> where stuff happens
or things can be built like models of objects and the objects themselves and these objects can then interact in meaningful and powerfull ways.

What is a string value...?

What is a string value ?
Seems like a fair question. Five simple words.

Computational thinking can help us to solve this most interesting question.
Type into the shell your name.
An error message will be displayed. In my example the host console screen displays this error message:
...
Steve : The term 'Steve' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Steve
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (Steve:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
The error message is very informative.
First it echoes the input requesting action from the system. In my example it outputs my name Steve followed
by a colon separator and the familiar "The term 'steve' is not recognized as the name of a cmdlt, function, script file,
or operable program..." Notice that in the output of the error message that the data expressed in the part, 'The term 'Steve', is
in single quotes. A clue.
The experience of PowerShell is interactive. Interactive means that PowerShell is doing at least three things. It is
accepting input, interprting it, and operating upon it. This is fundemental I know, but, it is not trivial. It is interactive.
The error message encourages us to '...and try again.'
So we type: 'Steve' (with single quotes) and PowerShell quickly echoes to the hosts console screen: Steve
All is right with the world.
I then type '55555' (with the single quote marks) and the engine echoes to the hosts console monitor: 55555
As was to be expected.
I type 55555 (with no single qoute marks) and the engine displays 55555.
I type: 12 + 2.
The engine displays 14.
Hmmmm.