3 ms·
Ahh I see. So if I may use an analogy: I have an html page with all my details, etc. Then say I want to create a markdown version of it, or a pdf version, or a
by b0afc375b5 4y ago
Ahh I see. So if I may use an analogy:
I have an html page with all my details, etc. Then say I want to create a markdown version of it, or a pdf version, or a docx version.
The first approach would be to manually rewrite my details to each format, as markdown, as pdf, as docx, essentially duplicating work each time.
The second approach, which is akin to defunctionalisation, would be to separate my details (data) from the format. So that would mean I would store my data in json format, then use a cli tool/program to generate it in html format, in pdf format, or in docx format.
I hope I got the basic idea right.