side-effect function
[ˈsaɪd ɪˈfɛkt ˈfʌŋkʃən]
nounpl: side-effect functions
função com efeito colateral
1. A function in programming that modifies state outside its local scope or has observable effects beyond returning a value, such as modifying global variables, performing I/O operations, or changing external data structures
The function that logs to a file and updates a database is a side-effect function because it performs actions beyond just computing and returning a result.
A função que registra em um arquivo e atualiza um banco de dados é uma função com efeito colateral porque realiza ações além de apenas calcular e retornar um resultado.
2. In functional programming, a function that violates the principle of pure functions by having consequences observable outside the function itself
Using side-effect functions can make code harder to test and reason about in functional programming paradigms.
Usar funções com efeito colateral pode tornar o código mais difícil de testar e raciocinar em paradigmas de programação funcional.
This is a technical term primarily used in software development and computer science education. In Brazil, the English term is often retained in technical documentation, though Portuguese translations are increasingly common. The concept is central to functional programming discourse, which emphasizes writing pure functions to improve code maintainability and testability.
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →