Paul J. Lucas

Paul J. Lucas @pauljlucas

About: C++ Jedi Master

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

Paul J. Lucas
articles - 58 total

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 19 1Mar 13 '24

DIY Home Security Camera System

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

Learn More 139 8Feb 11 '24

Compound Literals in C

A description of compound literals in C.

Learn More 10 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 137 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

Using assert() for Less Buggy Code

Using assert() in C & C++ for less buggy code.

Learn More 1 0Jan 28 '24

typeof in C23

A description of the typeof and typeof_unqual keywords in C23.

Learn More 7 0Jan 23 '24

auto in C23

A description of the auto keyword in C23.

Learn More 4 0Jan 18 '24

_Generic in C

A description of _Generic in C11 to do compile-time type introspection.

Learn More 8 16Jan 16 '24

Unions in C

A description of unions in C and their uses.

Learn More 5 6Jan 13 '24

An Updated Cdecl — with Macro Expansion

A update on cdecl, including its new macro-expandsion feature.

Learn More 1 0Jan 5 '24

Handy C/C++ Preprocessor Macros

A set of C/C++ preprocessor macros that are useful is most any program.

Learn More 8 14Jan 2 '24

C/C++ Preprocessor Macros

The weird language of the C/C++ preprocessor macros.

Learn More 4 1Dec 31 '23