Expression-based Programming for Better Code? - Jason Turner - NDC Toronto 2026

Expression-based Programming for Better Code? - Jason Turner - NDC Toronto 2026

🎙 Jason Turner 👥 227K 📅 July 23, 2026 ⏱ 60 min 👁 6K 📄 expert opinion 🧭 2026-08-13
Available in: English (current) Français

Keywords

C++expression-basedRVOtail callcode quality

Summary

Jason Turner’s talk at NDC Toronto 2026 explores the concept of expression-based programming in C++, arguing that treating statements as expressions can lead to better code. He begins by discussing return value optimization (RVO) and tail call elimination, demonstrating with examples how compilers handle these optimizations. Turner emphasizes that RVO is not dependent on optimization levels and is guaranteed in certain cases, while tail call elimination is toolchain-dependent. He then contrasts expression-based and statement-based code patterns, showing that expression-based approaches often lead to more efficient and cleaner code, especially when combined with RVO. He provides several examples, including string initialization and enum-to-string conversion, illustrating how expression-based code can reduce function size and improve performance. Turner also touches on the importance of function length limits and cyclomatic complexity, suggesting that expression-based programming can help manage these. The talk concludes with practical advice for writing more expression-based C++ code, such as using constexpr functions and avoiding unnecessary assignments. Throughout, Turner engages with the audience, encouraging questions and interaction.

166 words

Critical Evaluation

Value of the Information & Strength of the Argument

The talk provides valuable insights into C++ optimization techniques, particularly RVO and tail call elimination, with clear examples and demonstrations. Turner’s argumentation is solid, based on his extensive experience and practical testing. He effectively shows how expression-based programming can lead to more efficient and maintainable code, though some claims are anecdotal and not backed by formal studies. The interactive format adds value, as audience questions clarify points and provide real-world perspectives.

Scientific Rigor, Source Quality, Title Accuracy

The talk demonstrates scientific rigor through practical examples and compiler behavior analysis. However, sources are limited to the speaker’s own experience and compiler documentation, with no formal citations. The title accurately reflects the content, which is focused on expression-based programming in C++. The talk is well-structured and technically accurate, though some claims are based on personal observation rather than peer-reviewed research.

147 words

Title / Content Match

The title accurately reflects the content, which explores the benefits of expression-based programming in C++.

Quality & Reliability

8/10

The talk is based on the speaker's extensive experience as a C++ expert and educator, with practical examples and references to compiler behavior. However, it is largely anecdotal and lacks formal citations or empirical studies.

Key Moments

Cited Sources

  • NDC Conferences — Conference organizer and event information.
  • NDC Toronto — Specific conference website for NDC Toronto.

Concurring Sources

  • C++ Core Guidelines — Guidelines that often recommend expression-based style and efficient use of RVO.

Contribution & Novelties

The talk offers a fresh perspective on C++ programming by advocating for expression-based style, which can lead to more efficient and readable code. It provides practical examples and compiler-specific insights that are valuable for developers. The emphasis on RVO and tail call elimination as tools for better code is a useful contribution to the C++ community.

Pour aller plus loin :

94 words

Radar Profile

The radar profile shows high scores in quantity and quality of information, with a strong technical level. The reliability is slightly lower due to the lack of formal citations. Overall, the talk is informative and technically sound, but relies heavily on the speaker's experience.

Reliability 7/10

💬 Sur les 0 commentaires analysés, aucune tendance n'est disponible.