YoVDO

IIFE in C++ for Performance and Safety

Offered By: CppNow via YouTube

Tags

C++Now Courses C++ Courses Code Readability Courses Code Safety Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the concept of Immediately-Invoked Function Expressions (IIFE) in C++ and their applications for enhancing performance and safety in a 22-minute conference talk from CppNow. Discover how this technique, commonly used in JavaScript, can be applied to C++ programming to create local scopes for variables, preventing global scope pollution. Learn how IIFE can lead to cleaner, safer, and more performant code when initializing objects that require multiple steps. Delve into topics such as const initialization, return type deduction, object selection, and readability. Gain insights on when to use IIFE and when to avoid it, along with important considerations for optimization. Access the accompanying slides for a comprehensive understanding of the presented concepts.

Syllabus

Intro
Jason Turner
Const Initialization
Return Type Deduction
Object Selection.
Readability
When Not to use it
A Note About Optimization


Taught by

CppNow

Related Courses

Your Favorite Undefined Behavior in C++
CppNow via YouTube
Under the Hood - Assembly, System Calls, and Hardware in C++
CppNow via YouTube
Carbon Language Successor Strategy - From C++ Interop to Memory Safety
CppNow via YouTube
Value Oriented Programming Part 1 - You Say You Want to Write a Function
CppNow via YouTube
Introducing a Memory-Safe Successor Language in Large C++ Code Bases
CppNow via YouTube