Bloatware Reduction via File Descriptors
Bloatware Reduction via File Descriptors
Original problem
- write to a file, or,
- 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 (...)