Browser not supported. Please use Google Chrome or Microsoft Edge to access Ringle.
ringle-logo
Eloquent Language
Beautiful code = Beautiful language
Updated: 2024.09.05
3 min read · Intermediate
material_image

When talking to my colleague in tech about beautiful code, I learned that it was not unlike language. Beautiful code is “maintainable, readable, easily understood, and (ideally) efficient.” We chatted a bit more about the importance of implementation, too, and I learned that quick fixes can cause issues later down the road. Like a ripple effect [1], a rushed implementation can cause disruptions that might first be minor but later lead to disaster. Code, then, truly is no different from any other language. Although human neural processing of code is different from the processing of language, good language is also readable, easily understood, and efficient.

Readability in code is easier said than done—it refers to code that is easily comprehensible and later revisable by others. It’s one of the earlier things a coder learns in their careers, and readability in written language functions similarly. Written words must use a vocabulary that targets the appropriate audience, and vocabulary words must be well-defined when using industry-specific terminology [2]. Likewise, the message of a written piece should come through clearly during reading.

Strong code should also be easy to understand, or eloquent [3]. Strong language is no different. In speaking, pronunciation contributes to understandability, but moreover, eloquent words are persuasive, moving even. Eloquence in language is a bit more subjective, and it requires first a level of basic readability and fluency. Once readability and fluency are established, then with regular practice comes eloquence.

Finally, effective and beautiful code is also efficient. Efficiency in coding often refers to coding runtimes and the use of specific and appropriate algorithms. By comparison, though, efficiency in language involves concision. In writing, using as few words to convey as much meaning as possible represents efficiency. On a grammatical level, efficiency might be seen simply as the avoidance of run-ons. However you might choose to look at it, efficiency in language is just as important as it is in code.

Comparing coding languages and spoken languages is probably more like comparing apples to oranges. At the end of the day, though, what’s important to keep in mind is that English is not about advanced vocabulary or perfect grammar. Like code, it’s a game of optimization, of readability, and ultimately of understandability. Language is a tool, after all, and it’s useful just as long as others understand you. Code is imperfect because we are imperfect; so too is language.

*This material is designed for the exclusive use of Ringle students on the Ringle platform.