Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

Sofya: The New Programming Language That's Easier Than Python

When many people are first learning how to code, they find it difficult and when they ask, "How can I get better at coding?" they are usually told, "With time and practise it will get easier." . But instead of using so much time and effort to get better at coding using hard programming languages, what if coding could get better for you instead of you getting better at coding ? Well, this is the…

Sofya is a new programming language that aims to be easier to learn than Python, especially for beginners. The language was created with the goal of making programming easier and more enjoyable for everyone.

To demonstrate the simplicity of Sofya, let's compare it to Python. Imagine we want to create a program that displays the numbers from 1 to 20. In Python, the code would look like this:

```python

for number in range(1, 21):

print(number)

```

However, in Sofya, the same program would be much simpler:

```sofya

Variable Number is 0

Do this { Increase Variable[Number] by 1 Write Variable[Number] on the screen }

Until Variable[Number] = 20

```

Several factors make Sofya more beginner-friendly than Python:

1. **Simpler commands**: Sofya's command for creating a loop, "Do this...Until Variable[Number] = 20," is easier for beginners to remember than Python's "for number in range(1, 21):."

2. **English-like syntax**: Sofya's syntax is closer to English, making it more intuitive for those new to programming. For example, declaring a loop variable in Sofya is simply "Variable Number is 0," whereas Python requires the more complex "number in range(1, 21)."

3. **Easily understandable code**: Sofya's syntax allows beginners to quickly understand the purpose of each line of code. In Sofya, the line "Increase Variable[Number] by 1" clearly indicates that we are incrementing the value of the variable "Number" by 1. In contrast, Python's "range(1, 21)" command may be less immediately clear to someone new to programming.

If you're interested in trying out Sofya or contributing to its development, you can find the language's repository on GitHub: [Sofya Version 1.0](https://github.com/oyweraa-hue/Sofya-Version-1.0). Feel free to ask any questions in the comments, and I'll do my best to answer them. Thank you for reading!

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Sunday 16 August →