What is the difference between Visualg and Portugol?

Asked

Viewed 8,920 times

24

I see here a great rummage in the tags and . By the tag wiki, it seems that Visualg would be the interpreter and Portugol would be the language itself.

  • Visualg is regarded as a programming language?1
  • If yes, there is syntactic difference between them?
  • What is the distinction between these two entities?
  • Portugol was formally defined in the 1980s by Professors Mannso and Nicolodi. Is Portugol taught in colleges still compatible with this definition? Or was there any way to add more functionality? Or each teacher follows his own language?
  • What is the correct spelling? visualg, Visualg, Visualg, Visualg, VISUALG?

Additional readings

(That even then I was not fully satisfied and I continued in doubt)

Notes

  1. I’m using a softer definition of programming language that includes pseudocodes

5 answers

21


First let’s get the definitions of both.

Definition of Portugol:

Portugol is a pseudo-language algorithmic widely used in description of algorithms, which stands out for the use of commands in Portuguese, which facilitates learning the logic of programming, accusing the beginner with the programming formalism.

Visualg Definition (Algorithm Viewer) :

Visualg is an application for Windows that allows you to edit, interpret and run algorithms with a language close to structured Portuguese as a normal computer program.

A second definition of Visualg:

Visualg is a very powerful yet simple tool, similar to the Portugol, of great popularity in academic circles and present in most used books.

Now the questions:

Visualg is regarded as a programming language?

Visualg is an interpreter created by IT Support, he reads and interprets in a language next to structured Portuguese(Portugol) as a normal computer program.

The current Visualg Patent is on behalf of one of the developers who created the interpreter, Professor Antonio Carlos Nicolodi

There is syntactic difference between them?

As in Update, until Version 2.0, Visualg’s official language was Portugol, however, since it caused many drawbacks by accents, words with or without "ç". In short it is a version of Portugol that is not Case Sensitive, and especially in its commands is accepted in more than one way for example what for Portugol is only this basic structure: x de 1 ate 10 faca in the language of Visualg can be FAÇA ATÉ for example (capital letters, without the cedilla and with an accent). Structurally speaking there is almost nothing , since it is also a pseudo code the way to structure the data is the same

What is the distinction between these two entities?

I believe that the definition and the previous answers explain this question.

Portugol was formally defined in the 1980s by Professors Mannso and Nicolodi. Portugol taught in colleges is still compatible with this definition? Or was there any how to add more functionality? Or each teacher follows his own language?

There is no date set for the Creation of Portugol, what we could find was that from 72 , with the establishment of the Decree n° 70.370, with the creation of the CAPRE (Commission for the Coordination of Electronic Processing Activities), which investments, improvements and standardizations related to the technical area of the industry, leading to the belief that in the mid-70s Portugol was also created since among the definitions of CAPRE is:

coordinate training programs at all levels of techniques making use of existing resources in universities, schools and research centers

From 2005 (year of the release of Visualg) began to be used in numerous universities and places of education, however as the teacher himself clarified, it is still the standard taught to the places of teaching, the same is no longer valid for Visualg, choose to teach with Visualg , currently means to learn a dialect of Portugol, but not it, at least not 100%, its form of development is the same( after all is a pseudocode too), but with some improvements that differs it from Portugol, but if you use Visualg for teaching it will be the standard compiler language (modified English).

Note: It lacks more technical sources for a complete result, however, as stated in another reply, @Josédiz had contact in the 1970s, possibly arising between the period dated (72) and which he found in his books(77).

What is the correct spelling? visualg, Visualg, Visualg, Visualg, VISUALG?

On the creators website is Visualg, with the "V" and the "A" capital so I believe this is the correct spelling. Note: Currently if you enter the official page of Visualg 3.0(current) is written Visualg, in the manual this visualg and visualg, but until version 2.0 was Visualg.

Personal opinion: Change I believe was more a form of marketing , the new logo of Visualg , is with the G and not the A in capital while in the previous versions is in the old spelling. In the manual it appears different from both the site and previous versions, I believe that there was no care to write in the correct spelling precisely because it is assembled to be something didactic, preferring the content than to take care of the way Visualg writes, today I don’t see much problem of writing the way you want, precisely why.

UPDATE

I contacted Professor Antonio Carlos Nicolodi, one of the creators of Portugol and Visualg and that’s what he said:

When I did the Visualg (https://pt.wikipedia.org/wiki/Visualg) along with Professor Cláudio in the first versions until 2.0 was only compatible with pure portugol because in PORTUGOL accents are commonly used and Ç (c cedilla) in expressions (commands and functions) and in Visualg not, also in PORTUGOL there are only simple commands for the resolution of problems, without worrying about some features like LIMPARTELA that clears the user screen, for example. After version 2.5 I and the Cláudio created new commands and features, which Portugol did not have or had not.

In the pseudo language of Visualg (until version 2.5), both the teacher Claúdio, when I was, we created a language similar to Portugol 'cause it was tiny and they didn’t accept "C, C" and accents like, " is, " of our Portuguese language.

Where in PORTUGOL appeared in the commands of many literatures (books and magazines) such as:

Ex.

For x from 1 to 10 Make ....

VISUALG 2.0 or 2.5 would look like this:

for x from 1 to 10 knife // (until and not until or knife and not do) And how this caused a lot of inconvenience for many users (students/teachers) may even not work in Visualg, leaving the user confused because he did not know if he had typed correctly or not even having properly copied the available materials, I always warned them that the Visualg Language was a version functional but not equal to PORTUGOL (so should-without taking care)

From the time that Prof. Claudio left me alone developing this project and I created version 3.0, (http://visualg3.com.br/)

in this version I decided that this would change, so by compatibility, when the algorithms were written in lowercase could be from ancient form

ex. for x from 1 to 10 knife

But when the commands are written in capital letters they can write with accentuation and Ç (c cedilla) thus:

ex. FOR x up to 10

References

  • 7

    Wow, a lot kindness your share your knowledge :)

  • Daniel Gentil, see if you can clarify this: if in 1977 UFMG already used Portugol to teach structured algorithms in the courses of the area of exact sciences (in the discipline of Computer Programming), how is it that "Portugol was formally defined in the 1980s by Professors Mannso and Nicolodi"?! There is something wrong with this statement that portugol was created by these two teachers... ;)

  • @Josédiz had little contact, but yes I know, however it is worth to define that the Portugol of Visualg and the pattern are not the same, is like sql... I will change some points of the answer, however as the own in email said "Visualg’s language was a functional version but not equal to PORTUGOL" i.e., Portugol != Portugol, but with the same name

  • @Josédiz I will also add some considerations thanks for the help and for that vision!

  • In this image installation, clearly shows that the spelling would be "Visualg". Perhaps an acronym of "Visual Algorythimus"

  • Acronym of Algorithm Viewer* still yes, in the last stable version (3.0) it is Visualg (with V and G), but still, in the case it would be by the mark, since in the previous ones it was not

Show 1 more comment

12

I made contact with portugol in 1977, as support in the learning of structured algorithms. For this reason, I wondered the statement that "Portugol was formally defined in the 1980s". Now, how something could have been created in the 1980s if years before it was already taught to hundreds of students in the Computer Programming discipline at UFMG?

I also realized that there are other pages on the web that bring the same disinformation, trying to associate the creation of portugol with specific people... As said by Joseph Goebbels, "A lie repeated a thousand times becomes truth".

Portugol is only a pseudo language for formalizing structured algorithms, in which the technique of successive refinements is used. This technique involves starting from an abstract point and gradually reducing the level of abstraction, until it is possible to encode the algorithm in some computer language. At the time, UFMG’s exact science courses used language Algol, compiled, available on large computer (mainframe) of Burroughs. Later, with the advent of microcomputers and the launch of the Turbopascal by the company Borland, Pascal became the language preferred by some educational institutions for teaching computer programming. This in the 1980s.

The origin of portugol is related to the ideas and books of Niklaus Wirth, at the time. It is not by chance related to the languages Algol and Pascal.

In my opinion, any attempt to implement interpreters and compilers of "portugol" curtails all the freedom of creation available in portugol. It stops being portugol and becomes only a caricature of the same.


Here is a text found on the back cover of the book Algorithms and Data Structures:
A pseudolanguage (PORTUGOL) was introduced that allows the reader to develop algorithms in Portuguese in a simple and intuitive way, regardless of programming language (loaded with constraints and requirements).
The implementation of algorithms developed in PORTUGOL is done with ease from a mapping to the desired programming language.

  • his inquiry reinforces the thesis that the language of Visualg is more a derived dialect, just as it is done with java, openjdk... from the moment Voce simplifies the language(commands, functions) to a form that everyone understands no longer considers it to be the same language, I will add in my response some developmental differences I believe this will help. but I have a similar point of view, I had contact with Visualg, not portugol and the contact I had with portugol found very similar to pascal and not the structure I saw in the compiler

  • 1

    I found a reference that points to what you said: http://dicionario.sensagent.com/portugol/pt-pt/. Even in it distinguishes Portugol and PORTUGOL

  • 1

    @Jeffersonquesado Yes, the more I read articles about Portugol, the more I find inaccuracies. Besides they created products with names like Portugol IDE, Portugol Online, G-Portugol, Portugol Studio etc etc, which confuse more than help...

9

The language that Visualg interprets is very simple: it is a Portuguese version of the pseudocodes widely used in the books of introduction to programming, known as "Portugol". The Visualg language allows only one command per line: thus, there is no need for structure separator tokens such as the semicolon in Pascal. There is also no concept of command blocks (corresponding to Begin and end of Pascal and to { e } of C), nor unconditional deviation commands such as goto.

In the current version of Visualg, with the exception of input and output routines, there is no embedded subprogram, such as Inc(), Sqr(), Ord(), Chr(), Pos(), Copy() or other. The basic format of our pseudocode is as follows::

algoritmo "semnome"
// Função :
// Autor :
// Data : 
// Seção de Declarações 
inicio
// Seção de Comandos 
fimalgoritmo

The first line consists of the keyword algorithm followed by its name bounded by double quotes. This name will be used as a title in the data reading windows (in future versions of Visualg, we may use this data in other ways).

The following section is the variable declaration section, which ends with the line containing the starting keyword. From this point on is the section of commands, which continues to the line where the keyword fimalgoritmo is.

Source: http://eletrica.ufpr.br/~Rogerio/visualg/Help/linguagem.htm

7

2

The VisuAlg is a program that edits and executes algorithms with a language close to structured Portuguese as if it were a normal computer program.
The Portugol is a pseudo-language that has been used since the mid-1970s in handouts, textbooks in technical electronic teaching. Nowadays also widely used to start studies in programming for the individual who is starting undergraduate in computer science. (To train the basics, logic and structure of algorithms)
Now you may be wondering:
Ta mas and what is the difference between Visualg and the pseudo-language Portugol?
Come on, come on... Initially, the Visualg program project was based on the pseudo-language Portugol because one of those involved was the creator of the language. After the creator of Portugol left the Visualg project... The other developer continued the project to optimize and improve the environment and the language itself.
These optimizations and improvements that took place over a long period, brought some novelty as the SENÃO which until then was otherwise, the DO which until then was KNIFE, the UNTIL until then was up, not that until then was not,...
The correct spelling is VisuAlg.
Regarding the question:
Portugol was formally defined in the 1980s by Professors Mannso and Nicolodi. Is Portugol taught in colleges still compatible with this definition? Or was there any way to add more functionality? Or each teacher follows his own language?
Taking into account that the two have the same principle, the same basis, the same logic and similar syntax (as I explained above Visualg had improved syntax), many teachers assimilate the two languages because they are similar or even teach the two letting the student choose one in which will direct the studies in the subject.
For a better explanation http://visualg3.com.br/portugol-portugues-estruturado-e-visualg-como-tudo-comecou/.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.