r/AskComputerScience • u/lasopamata69 • Nov 08 '25
Language dictionaries
Hello guys, I have a question Is it useful to create a library of commands translated into my language? For those who speak English or have more knowledge of the language, I suppose it is not a problem but I only speak Spanish and understand English a little, however I have focused on creating libraries in my programs that absorb large and useful functions or are directly basic functions that I commonly use as a print=print and I place them in my own library that stores basic functions separated by the usefulness they have (commons, connections, etc.) and on one side of that I place functions that I normally reuse in a new function in Spanish and only the I call in the code, but I don't know what is correct or what is best for my code, it is not difficult for me to write my function since it normally completes the functions that I will use when I am starting to write them
View all comments
Show parent comment
2
u/AlternativeGoat2724 Nov 08 '25
I think that making a library of translated names will be more work, and more overhead than you might ultimately want to deal with in the end. Some functions may be overloaded, and can take different numbers of arguments. Depending on how complete you need your thing to be, this may be a problem for you to implement.
For part 1, my advice is to learn the functions and their names in English. That way, if other people need to read your code it is more readable, and if you need to read other people's code for some reason, you would have an idea of what the things do.
For the second part though, having the library contain a function which calls several other functions to return a result is what you do in defined functions. I think that this is ok. If you are just working by yourself, and no one will be looking over your code, you can do it in english or spanish, as you see appropriate for your situation (With a group of people, agree on a language with them would be the best choice)
Generally I code for myself in English, and for my univeristy in French (as technically, I need to submit all my work in French, not English... although the professors don't actually care that much, and many students code in English regardless of the language)