r/AskComputerScience • • 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

2 Upvotes

9 comments sorted by

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)

1

u/lasopamata69 Nov 08 '25

I understand, I think I already understood the part referring to Spanish and I do understand English a little, but in complex operations sometimes it confuses you so much because you want to relate one thing to another or have already done it unconsciously😅

The idea that I save everything in a central library distributed by functions (for large and repetitive operations) is also not to overload the code since when calling a specific function in my programs, as can sometimes happen when loading an entire library for a complex function that is used several times and could be, for example, 15 lines that correspond to the function, but in reality they only occupy a minimal part of the library that I install, and thus I only try to activate the function that I want when I want and leave the library deactivated. new (in my mind it has a logic but I don't know how to explain it)