14 comments

[ 3.6 ms ] story [ 50.7 ms ] thread
I was expecting physical routes, as in a program that takes a geographical configuration and makes it look like the London Tube map. Oh well.
Well, from the title I had expected something about miniziming elevation changes for eg bike routes. Not even a flat design map?
I dunno. Looks like a big step back in readability.

Fun exercise, but a waste of time

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.
Simple, readable, type-checked code in TypeScript: https://www.typescriptlang.org/play?target=6#code/C4TwDgpgBA...
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.
I thought about it, but it's just so unmotivated in this case. URLs would have to be hundreds of path segments long.
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 :)
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.
> 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.

What code?!

All I see is grey boxes with some small text. Can't bo bothered to work my eyes out.

Can I ask you why? (I'm not related with the company)