Show HN: I built an online programming language
codigo.so
codigo.so
[Ctrl + Enter] list all built in functions
As a native speaker of Portuguese, I think it would look nicer the verbs were all in the same conjugation, simple present. You have "retornar" (return) which is in infinitive form and "escreva" write which is in the present imperative mode. I would choose to put all the verbs in the simple present:
retorna => return faz => do escreve => print
I couldn't find the Portuguese version for "break", but in my opinion it should be "quebra" or "interrompe".
If this project becomes open source, I'll be happy to contribute.
I am also a pt_BR speaker. To be completely frank, I would say I'm more comfortable programming in English. In the “test” example, for instance, I wouldn't know which alias to use, whether 'verdadeiro' or 'verdade'. But it's pretty cool in English. Kudos
In teaching, simplification is really important. Take a look at this [1] simple script in Portuguese and tell me if it seems intuitive to you. This is the situation of most of the people trying to learn to code here in Argentina/Latam using very large and professional programming languages. I hope this can help them.
[1] https://codigo.so/editor.pt/fb3e08c2-e929-4379-81fa-c3126bbd...
I have been teaching programming/data for the past 2 years and you're right, simplification is of utmost importance for students. Actually, when teaching programming with Python, I go with them in the process of translating their logic to English first then it's almost a 1-to-1 mapping with the instruction set (for simple algorithms). Same goes for SQL.
Anyhow, nice concept here, curious to see where it goes!
For the HN audience it doesn't add much value.
Regarding programming languages, one of the first job I had was with WinDev, using the French dialect. It was a horror to deal with it, and makes it especially hard to switch to something else if you get too comfortable with it. Something that people pushing for translation miss is that a programming language isn't an actual language where you have words that you compose. It is a set of operators/keywords to express a logic or to produce an effect. The actual operators/keywords do not matter that much when you're learning: "for", "var", "while", "if" are just keywords that you map in your mind to the actual effect they produce. They could technically be replaced by shapes or emoji without creating too much learning issues (terrible idea, please do not do this). By learning the same English keywords that everybody is using you can at least easily switch between technologies and get access to the wider international community.
This scratches a peculiar itch that I have which isn't quite addressed by other solutions (codepen, stackblitz, replit, etc). Can you import libraries at all?
Yes, I'm building it, you can see some examples at https://codigo.so/editor.en/ [Ctrl + Enter] list all built in functions
> by other solutions (codepen, stackblitz, replit, etc)
No, codigo.so is a pseudocode interpreter specially designed for people who don't speak English.
Also, since this is supposed to be pseudocode, maybe it would be better to replace the atribution operator with something else, and the comparison operators with their math variants.
>Backed by AWS startup programs
What does that mean ?