Outputting Data: Why Sofya Beats Python in Simplicity

Telling a computer to output some information on the screen (or console) is one of the first things people learn in programming. Even if this is a basic concept, most programming languages can make it feel challenging for beginners in programming. In this article, we will compare how Python and Sofya allow a user to output data on the screen and why Sofya is the better choice for a beginner in Programming (Sofya is a new and simple programming language that I had made).

Let us say that we have already asked a computer user for their username in a certain app and we want to show this information on the screen. This is how Python and Sofya will approach this:

The Python Program

print(f"Hello {name}. Welcome back!")

The Sofya Program

Write "Hello" and also write Variable[Name] and also write "Welcome back!" on the screen

Analysis
From this example, we can see that Sofya is easier than Python, for beginners in programming, because of the following reasons:

  1. Sofya does not use brackets when outputting data: The Write command in Sofya, which is used to output data, does not use brackets as compared to the print() function in Python. This makes outputting data feel more natural for a beginner in programming.
  2. Sofya makes it easier to join different data types that you want to output: When you want to output a string and a variable in Sofya we use the command and also say rather than using a formatted string (f" ") in Python which makes it easier for a beginner in programming to understand.
  3. Sofya uses a simpler keyword for outputting data as compared to Python: The Write command in Sofya, which is used to output data, is much easier to remember, for a beginner in programming, as compared to the print() command in Python.

If you would like to try out Sofya for yourself or even help me develop Sofya further, you can use this link to take you to the Sofya repository on GitHub: https://github.com/oyweraa-hue/Sofya-Version-1.0.

If you have any questions, feel free to leave it in the comments and I will answer them as soon as I can. Thanks for reading.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论