I love what they do, but unfortunately r/dailyprogrammer leaves a bad taste in my mouth because they started off with challenges copied from my site - http://programthis.net
This site looks good. But I wondering if someone has a similar list of apps that are one steps larger than just algorithms - must have UI and be useful.
For my daily (walking) commuting, it says 2.4km, which is right, for 24k to 33k steps, which is wrong: that's <= 10cm steps. It's one order of magnitude away from the truth.
It's doing some text parsing on the "pretty text" returned by the Google Maps API instead of using the provided distance in meters, and it's probably failing due to some localisation issue. It strips "," from the text, maybe your locale uses "," as a decimal separator leading to the distance being parsed as 24 km?
Guess that reading the google maps api to find the walking distance function would have taken me more than 15 minutes.
The 15 minutes concept would probably make good katas to keep stuff you have already used up to date in your memory. Would love to see a collection of small challenges like this grouped under different kinds of tags. This one might be javascript, google-maps for instance.
You should record a video of you doing the next one, I'd love to see your process and tools that you use to get things done so fast. I'm always trying to be as fast as possible but even to me 15 minutes from nothing to done is mindblowing.
In general, shortest would be fastest for walking (unless the difference is large and fatigue sets in).
Or you could analyse ground gradiants for steepness and find the flatest. Combine with your own personal fitness levels and solve for a better optimal route :)
> In general, shortest would be fastest for walking
Traffic lights, crime-addled regions, embassies (I wouldn't dare jog towards a guarded embassy carrying a backpack), loose gravel paths. All these will slow down walking considerably.
Or outside the city: Marshes, mountains, thick forests, muddy hill slopes.
So put the adjective "walkable" in front. The question is the same. These things are unwalkable and therefore not able to be part of any route.
Same with your car: the places without roads are undrivable and therefore not available for routing. But with a car, the speeds are so much greater than bipedal motion, shortest vs. fastest is a viable question. When the routing system avoids obstacles, it's mostly going give you the shortest and fastest route. brador makes a good point about grade; with enough grade on the shortest route, it might not be the fastest.
I can't believe people are actually debating this. Did you really expect a check box 'jogging with backpack' mode?
It's a quick and dirty calculation that google is making about routing. Im pretty sure the google walking routes wont take you through marshes or thick forests.