We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to think correctly?
#31
(translated by Google translator)

I had the opportunity to add a third screenshot to OneDrive.
In this image I demonstrated the entry and exit of information from objects.

The entry of information into an object is depicted using a red line at the top of the object.
This can be either a container with a list of variables, or several individual icons.

The screenshot shows that the "sub Test" object uses three variables to operate.
In addition, we see that one of the variables is the value of a property of the GraphicsWindow object.

The icon that represents the event has a blue background.
The icon that represents information has a yellow background.
If some event transmits information to an object, then both colors are mixed (blue + yellow) and the icon of the event that transmits information has a green background.

In the diagram we see two types of events:
- "onStart" event, which does not transmit any information (blue background);
- and 5 value assignment events, whose icons have a green background.

This way we can see immediately whether an event is transmitting information or simply signaling the completion of a previous operation.
Reply
#32
Hi all.  Shy

I took the next step in developing nanoExcel using a diagram. ( screenshot 04 )
https://1drv.ms/f/s!AnoSlTzMqlL6jNo8-mr8...Q?e=Rv5dFf

This diagram shows the fact that I plan to have three new objects: "Menu", "Toolbar" and "DataView".
The action of creating a Menu is shown in the diagram by using a container that contains a list of required inputs.
Among these required inputs is the "menuList" array.
Therefore, the "array_menuList" object icon was created. The image shows that this array is currently empty.
Reply
#33
(translated by Google translator)

Hi all.  Shy
Today I added a new screenshot (05) to OneDrive, which shows the use of a container to store a code fragment.

Also, I have added the file of this diagram.
This file can be opened in a browser using the site https://app.diagrams.net/ .
This is a very good free diagram editor.
I have known this editor for many years. On one of my computers I use the desktop version of this editor. It is very comfortable.
When the diagram becomes too large to fit in the screenshot, you can get a good look at it using the editor and the diagram file.
Reply
#34
(translated by Google translator)

Off-topic

To LitDev,
I cannot restrain my desire to thank you for the most interesting task “Create a simple spreadsheet editor”.  Rolleyes
Unexpectedly for me, I liked this task so much that for several days now I have been getting real pleasure from working on the program.
I won't go into details, but my feelings prove that programming using SB-Prime and LD extensions are the MAIN VALUE of Small Basic.  Tongue

It is this value that we must show to the world.
I am sure about that.
Reply
#35
(translated by Google translator)

Hi all.  Shy
I updated the contents of the "SB Diagrams" folder in my OneDrive.
Now there is a screenshot with an image of the "nanoExcel" program window. ( ScreenShot_07 )
Nearby is a screenshot of the diagram of the algorithm of the program "nanoExcel". ( ScreenShot_06 )
In addition, I have uploaded the source files of the diagram and the SB code to the folder.

As the size of the code increases, the fundamental difference between the diagram and the code becomes clearly visible.

The diagram is information FOR A HUMAN.
The text of the program code is information FOR THE COMPUTER.

On the diagram a person sees what a person needs.
Dozens of lines of code and hundreds of characters of text are HIDDEN inside the diagram and do not prevent a person from seeing the essence of the algorithm.
At the same time, a person can study any line of code by simply expanding the desired container.

I point out that this is not the end of demonstrating the benefits of using a diagram. This is just the beginning of the conversation about what needs to be done to make using the diagram as convenient as possible.

I realize that not all people may want to use diagrams. But, I also realize that the people who like the charts MUST HAVE THE OPPORTUNITY to use them.

But, at the moment, these people are deprived of this opportunity. And around us there are fewer people who know how to think correctly.
The consequences of the prosperity of stupidity among people are fun to watch in films (Charlie Chaplin films, for example).
But it's not fun at all when people's stupidity kills you, your family and friends, destroys your home and your destiny.  Sad
[-] The following 1 user Likes AbsoluteBeginner's post:
  • litdev
Reply
#36
(translated by Google translator)

Hi all.
It seems to me that today is one of the important days in my life.
The thing is that soon one boy will have a birthday. He will be 9 years old.
As an addition to the gift, I want to give the boy the opportunity to easily master programming skills using our wonderful Small Basic.

Since this boy's father had never been involved in computer programming, he also became interested in my idea.
However, the boy's father immediately chose a system for creating programs using diagrams.
That is, I get the opportunity to really help two people at once: a child and an adult.  Rolleyes

The boy's father chose a full-fledged graphical programming environment that automatically compiles the diagram created in it into an executable file.
But, in this IDE there is a huge number of different objects. Even an adult finds it difficult to navigate through such a number of objects.
Therefore, I want to create objects of the Small BASIC language and LitDev library in this IDE.

That is, both an adult and a child will create a SB program diagram.
But, IDE will create a file of the SOURCE SB-CODE of this program, which they will simply need to paste into the SB-Prime editor and run.

- - - - -
For now, it's going to be a little tricky.
But this story will show in practice all the advantages and disadvantages of the idea of using Diagrams for the Small Basic language.

Undecided
Reply
#37
What is the graphical programming environment you refer to?
Reply
#38
(08-07-2024, 08:49 AM)litdev Wrote: What is the graphical programming environment you refer to?

This is "HiAsm".
But, with the start of the war, the Russian segment of the Internet became dangerous in terms of computer security.
Therefore, I object to downloading this IDE from their official website.

I have been watching the development of this IDE for about 20 years.
Therefore, I use my pre-war archive "HiAsm", in which antiviruses do not detect any danger.

If anyone wants to study this IDE, I can post my archive in my OneDrive folder.
The installation process takes place in Russian, but then you can select the English interface language using the IDE settings.

(by the way, in the examples available in IDE, the graphic possibilities for designing a diagram are shown very poorly. I design my diagrams differently. But, on the other hand, everyone has the opportunity to design the diagram the way they like.)
[-] The following 1 user Likes AbsoluteBeginner's post:
  • litdev
Reply
#39
(translated by Google translator)

Hi all.  Shy
It seems that I am right when I think that easy programming in the easy programming language Small Basic gives a person pleasure precisely during the creation of the program.  Rolleyes
The end result is not the main thing.
Participation in joint projects requires a person to be responsible to other team members. This responsibility reduces the pleasure.
We see with our own eyes that amateur programming does not give rise to large team projects.

This is why I think it is very important to add an additional way to CREATE code.
The greater the variety of creative tools, the more people can be creative.

I won't be able to create a quality diagram editor in C#, like https://app.diagrams.net/ for example.
But I can ask the professionals, is it possible to create a utility that will collect into one text file the code fragments located inside the diagram containers?

If this can be done, then many people will be able to draw their diagrams in any way they like and then extract ready-made SB code from them (!!!).
We can paste this code into the SB-Prime editor, compile and run it.
Such an opportunity would be a very big achievement.

Imagine, anyone can draw any diagram! If some simple rules are met in this diagram, the utility will successfully extract ready-made SB code from the diagram.
Agree, this is GREAT!
[-] The following 1 user Likes AbsoluteBeginner's post:
  • z-s
Reply
#40
In the few hours that have passed since I wrote my previous post, a confidence has emerged, grown, and strengthened within me that I can try to write a utility for extracting SB code from a diagram using Small Basic.  Undecided

This will be my own challenge. And it will be COOL !!!  Cool
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)