Same Function, Different Languages
APL R C# Python JS C++ {w+2} |x| x + 1 x ⇒ x + 1 Lambda x: x + 1 function(x) { return x + 1; } []<> (const auto& x) noexcept(noexcept(x + 1)) → decltype(x + 1) { return x + 1; }
A simple function that adds one to x is shown in progressively more complicated programming languages, from concise notation to verbose C++. The joke is that the same trivial operation becomes increasingly elaborate, making it a reaction to overengineering, programming-language complexity, or unnecessarily complicated code. EN: A simple function that adds one to x is shown in progressively more complicated programming languages, from concise notation to verbose C++. The joke is that the same trivial operation becomes increasingly elaborate, making it a reaction to overengineering, programming-language complexity, or unnecessarily complicated code.
programming code / программный кодcode editor / редактор кодаAPL logo / логотип APLR logo / логотип RC# logo / логотип CPython logo / логотип PythonJavaScript logo / логотип JavaScriptC++ logo / логотип C++dark interface / тёмный интерфейсtext lines / строки текстаfunction / функцияmathematical notation / математическая записьcartoon faces / мультяшные лица
- @ithueti / 8727 2023-01-26
- Type
- image
- Size
- 794×377 · 28.2 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added