logoalt Hacker News

embedding-shapeyesterday at 8:16 PM1 replyview on HN

Both in the frontend and the backend, I've usually used "If it calls your code, it's a framework, if you call its code, it's a library", and would seem to fit here too. An argument parser you'd call from your main method, then do stuff with what it returns. In Crust, it seems you instead setup the command + what will happen when it's called, then let the framework call your code.


Replies

codybontecouyesterday at 9:09 PM

That’s… actually a great definition. I’m going to try to retain that.

show 1 reply