5 ms·
> At least when the controllers are all classes I can unit test them. You can usually very easily transform lambas in function, so testing shouldn't be a probl
by Zababa 5y ago
> At least when the controllers are all classes I can unit test them.
You can usually very easily transform lambas in function, so testing shouldn't be a problem.
- jhgb 5y agoLambas, the famous Elvish mathbread?
- jameshart 5y agoBut if I'm not writing my controllers using inline lambda syntax, but as functions in classes in a controllers directory,, what's the value of this minimal route declaration syntax over a 'heavierweight' solution that... also puts my controller declarations in methods of classes in a controllers directory?