Articles
Deep-dive technical articles on computer science, networking, and systems programming.
18articles
3topics
1 hof reading
C / C++
C++ Streams and Formatting Manipulators
How to control output formatting in C++ using ios_base flags, setf/unsetf, precision, width, fill, and stream manipulators.Comments
Best practices for writing code comments, documentation tools like JavaDoc and Doxygen, and using CVS and XML documentation comments.Debug and Release Builds
The differences between debug and release builds, symbol tables, and how to use GDB for debugging compiled programs.Game Trees
An introduction to game trees and the minimax algorithm for building AI in two-player games like chess and tic-tac-toe.Global Variables
Why global variables are harmful to software design, and what environment variables and lessons from C and .NET era teach us.Introduction to C++ Streams
A comprehensive introduction to the C++ stream I/O library, covering cin, cout, cerr, clog, stream operators, error handling, and character-level input.Introduction to Operator Overloading
How C++ operator overloading lets you define the behaviour of operators for user-defined types, covering member functions, global functions, friend functions, and unary operators.Introduction to Templates
How C++ templates enable generic programming, template functions, behind-the-scenes instantiation, overloading, specialisation, explicit instantiation, and template classes.Macro Overloading
How a macro and a function can share the same name in C, and how to force the function version to be called by wrapping the name in parentheses.Macro Usage
A key rule for defining macros in C, always parenthesize macro definitions to avoid operator precedence bugs.Magic Numbers
Why hardcoded numeric literals in code are harmful, and how to replace them with named constants, macros, enumerations, or typed constants.Null Pointer
Why NULL is reserved for pointer operations in C, how it is defined, and why mixing it with integer zero causes problems.Processor Modes
Why grouping similar CPU instructions together improves performance by reducing mode-switching overhead, illustrated with the Pentium MMX example.Type Qualifiers
The three C type qualifiers, const, volatile, and restrict, what they mean, and how to apply them to variables, pointers, and objects.Networking
Introduction to DHCP
How DHCP dynamically allocates IP addresses, message structure, options, the DORA flow, leases, and bindings.Introduction to DNS
A comprehensive introduction to the Domain Name System, name space, resolution, caching, and DNS configuration.RFC
What an RFC is, how the RFC Editor works, the types of RFCs, the Internet standards track, and the tradition of joke RFCs.Linux
Debug and Release Builds
The differences between debug and release builds, symbol tables, and how to use GDB for debugging compiled programs.Linux Bootup
A walkthrough of the Linux boot process, from kernel initialization through init, runlevels, and getty login.Tutorials
Step-by-step guides, usually with code on GitHub. Practical and to the point.
GDB step-by-step debugging What is GCC Using GCC Static Library Dynamic Libraries GCC Compilation Phases All tutorials