by notorandit · 3y ago · 0 comments
The fact that you store something in a VCS, that you pipe it through some "lint, test, deploy" pipeline doesn't make it "code".
Nowadays they call anything "code" just because you do VCS + pipeline. Most of the time it is (complex) configuration text files (like cloudformation and terraform) or some sort of documentation (like markdown).
When you can implement a generic Touring machine with whatever you call "code", then you can really call it "code", IMHO.
I use to say to my students (with a large amount of semplification), if you can implement a sorting algorithm with that, then it's code. Otherwise it is not.
The point of "docs-as-code" is not "code that produce docs", but "docs treated as code", that is, versioned in a VCS and built using similar workflows as the code they document. It's also a way of bringing technical writers and developers together and collaborate more.
[0] Maybe barring the tech writers who are still stuck using FrameMaker and the like.
Debating on the use of the words is wasted energy. Imo, what matters the most are the concepts behind them. The same can be said about the many discussions about server-less architecture.
What you described is docs _in_ code. The title is docs _as_ code, which means exactly as what the article describes, treating it as if it is code in pursuit of maintainability.
Of course you can start calling your mouse "a cat", your car "a mobility device" and yourself a genius. But reality won't easily follow.
I feel sad for your students (if you really have any) for having such obtuse teacher.
CLOCK?!