Bloatware Reduction via File Descriptors

Original problem

  1. write to a file, or,
  2. write to console

Bloatware solution (psuedo-code):

if (output === 'file') {
    file.write (...)
} else if (output === 'console') {
    console.log (...)
}

Bloatware Reduction

Invent file descriptors and let underlying machinery figure out what to do:

fd.write (...)

See Also

Table of Contents
Blog
Videos
References
Books