Re:Show HN: Sauron – A web framework in Rust that adheres to...
by bazza451 on Friday April 26, 2019 @01:46PM
(#19760055)
Didn’t mean callbacks, meant shape of the code with indents could get large and difficult to grep. JSX style macro over the top might help .
[ Parent
| on HN ]
Re:Show HN: Sauron – A web framework in Rust that adheres to...
by ivanceras on Friday April 26, 2019 @02:40PM
(#19760610)
In that case, breaking up the functions into several smaller functions helps. The rule of thumb of the size of a function body shouldn't be larger than the size of a computer screen.