Paul J. Lucas

Paul J. Lucas @pauljlucas

About: C++ Jedi Master

Location:
San Francisco Bay Area
Joined:
Jan 21, 2017

Paul J. Lucas
articles - 66 total

Implementing “Did you mean ...?” Suggestions

Implementing “Did you mean ...?” suggestions in C.

Learn More 1 0Aug 21

Anonymous Structures in C

Uses for anonymous structures in C.

Learn More 5 0Aug 10

“Why Learn C” Book Announcement

An announcement of forthcoming book "Why Learn C."

Learn More 35 15Jul 31

A Tale of Two Threads (APIs)

A comparison of the standard C threads API and that of POSIX threads and writing a standard wrapper around pthreads.

Learn More 2 0Jul 21

Attributes in C23 and C++

Attributes in C23 and C++ for better diagnostics and optimization.

Learn More 1 0Jul 14

nullptr in C23

The new nullptr keyword in C23.

Learn More 12 3Jul 8

Unreachable: The Standard Function for Inserting Undefined Behavior

Using the unreachable function in C and C++.

Learn More 2 4Jul 6

Go-Like Channels in C

Implementing Go-like channels in C.

Learn More 1 0Jun 27

Clearing Up Misconceptions about Copyright

Clearing up misconceptions about copyright.

Learn More 16 7Apr 24

Choosing an Appropriate Integer Type in C and C++

While “int” is typically used as the default integer type, it’s often not the most appropriate.

Learn More 3 0Sep 13 '24

The Obscure “restrict” Keyword in C

A description of the "restrict" keyword in C.

Learn More 2 0Sep 10 '24

Inline Functions in C and C++

All about inline functions in C and C++.

Learn More 0 0Sep 9 '24

Switch Statement Oddities

A careful reading of the C or C++ grammar will reveal that the switch statement can be used in some odd ways.

Learn More 3 0Sep 5 '24

Proper Header File Etiquette

The proper way to create and include header files in either C or C++.

Learn More 11 2Aug 31 '24

C++ Interview Questions

A few questions I’d ask a candidate during an interview for a job programming in C++.

Learn More 5 0Aug 18 '24

C Interview Questions

A few questions I’d ask a candidate during an interview for a job programming in C.

Learn More 6 2Aug 15 '24

A Generic SWAP() Macro in C

How to implement a generic SWAP() macro in C.

Learn More 4 2Aug 8 '24

Waiting for... a Debugger

How to make your program wait on start-up for a debugger to attach.

Learn More 6 0Aug 1 '24

Everything You Ever Wanted to Know about Sundials

A programmer’s nerdy interest in sundials.

Learn More 20 2Jul 26 '24

Casting to the Same-Sized Unsigned Type

Given an integral expression, how to cast it to an unsigned type of the same size.

Learn More 3 1Jul 10 '24

Variadic Functions in C++

How to declare and implement functions with a variable number of parameters in C++.

Learn More 13 3May 7 '24

Variadic Functions in C

How to declare and implement functions with a variable number of parameters in C.

Learn More 11 1Apr 27 '24

Custom C++ Stream Manipulators

Implementing custom stream manipulators in C++.

Learn More 7 0Apr 9 '24

Declaring Multiple Variables in a “for” Loop Initialization Clause

How to declare multiple variables in a for-loop initialization clause.

Learn More 20 1Mar 13 '24

DIY Home Security Camera System

How I DIY’d my own home security camera system.

Learn More 145 8Feb 11 '24

Compound Literals in C

A description of compound literals in C.

Learn More 11 1Feb 9 '24

Software Career Advice

After tinkering with computers for 45 years, here’s my advice for a career in software development.

Learn More 138 22Feb 6 '24

Unions & std::variant in C++

A description of unions in C++, their uses, how they differ from unions in C, and std::variant, C++’s type-safe alternative.

Learn More 11 0Feb 4 '24

Career Retrospective

A retrospective of my tinkering with computers for 45 years.

Learn More 103 24Feb 1 '24

C Const Conundrum

Descriptions of const and the new constexpr in C23, and when to use which.

Learn More 3 5Jan 30 '24