Re:Routes don't look flat enough to me
by larusso on Tuesday February 14, 2023 @01:40AM
(#34786214)
Thanks for the hint with the „iteration“ function. I haven’t touched Closure in some years but had a problem a few month ago where I wanted to iterate over items returned from a REST Api which where presented in a pageable API with rust. I managed to cook up a solution with a custom iterator trait impl. Doesn‘t work with async though and I had a hard time to find a solution/search term for this problem. Don‘t know if any of this is applicable to rust but at least another resource.
Re:Routes don't look flat enough to me
by Spivak on Tuesday February 14, 2023 @09:54AM
(#34790153)
To have parity with the original article, now do it without recursion / bounded stack depth because you're worried that your data might blow out the stack.
Re:Routes don't look flat enough to me
by winrid on Wednesday February 15, 2023 @02:18AM
(#34800973)
That's not a solution because you manually turned the input into a valid TS array. You also manually turned the method names into strings, and they aren't in the input... that's part of the fun :)
Re:Routes don't look flat enough to me
by dmurray on Tuesday February 14, 2023 @05:23AM
(#34787553)
If you're not allowed write a nice idiomatic recursive version of this in a few lines, why use Clojure in the first place? Just use Java like Sun Microsystems intended.
Re:Routes don't look flat enough to me
by iLoveOncall on Tuesday February 14, 2023 @06:07AM
(#34787795)
> Pixelated Noise is a software consultancy and we're always looking for interesting projects to help out with. If you have unmet software development needs, we would be happy to hear from you.
Yeah the code presented on that article doesn't really make me want to hire those guys.
Fun exercise, but a waste of time
https://codepen.io/winrid/pen/JjajYGR
Yeah the code presented on that article doesn't really make me want to hire those guys.
All I see is grey boxes with some small text. Can't bo bothered to work my eyes out.