3 ms·
I wonder if someone invented the "modular" programming yet. Judging by the UNIX paradigm of the command line tools, the idea is clearly out there. Instead of
by Artlav 10y ago
I wonder if someone invented the "modular" programming yet.
Judging by the UNIX paradigm of the command line tools, the idea is clearly out there.
Instead of objects, do modules - things that do one thing, and carry minimal dependencies.
You need a banana? Grab the banana module. You need a banana with ice-cream center? Feed the "center" callback of the banana module with "ice-cream" instead of "banana intestines".
You need a copier? Grab both printer and scanner.
Is there any existing language that i'm describing now?
- nitsujin 10y agoThat's functional programming.
- jolux 10y agoThe irony of this and the comment above it...
- hetfeld 10y agoYeah, it's called Procedural programming.
- maxxxxx 10y agoYou can do this with almost any language, OOP or not. Just stay away from inheritance.
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]
- deleted 10y ago[deleted]
- pjmlp 10y agoIt is what we had before objects, back when ADT meant Abstract Data Types. Objects are basically ADTs with support for polymorphism and inheritance.
- pmarreck 10y agoLisp is always an answer.