Re:Show HN: 10-minute programming challenge. Let's do more o...
by prezjordan on Wednesday August 08, 2012 @03:50PM
(#4357674)
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
Re:Show HN: 10-minute programming challenge. Let's do more o...
by vineet on Wednesday August 08, 2012 @08:40AM
(#4355188)
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.
Re:Show HN: 10-minute programming challenge. Let's do more o...
by snippyhollow on Wednesday August 08, 2012 @07:14AM
(#4354943)
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.
Re:Show HN: 10-minute programming challenge. Let's do more o...
by nemetroid on Wednesday August 08, 2012 @12:58PM
(#4356628)
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?
Re:Show HN: 10-minute programming challenge. Let's do more o...
by pbjorklund on Wednesday August 08, 2012 @08:48AM
(#4355223)
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.
Re:Show HN: 10-minute programming challenge. Let's do more o...
by TimJRobinson on Wednesday August 08, 2012 @06:00PM
(#4358316)
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.
Re:Show HN: 10-minute programming challenge. Let's do more o...
by brador on Wednesday August 08, 2012 @05:36AM
(#4354693)
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 :)
Re:Show HN: 10-minute programming challenge. Let's do more o...
by Deestan on Wednesday August 08, 2012 @05:54AM
(#4354731)
> 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.
Re:Show HN: 10-minute programming challenge. Let's do more o...
by delinka on Wednesday August 08, 2012 @06:36AM
(#4354844)
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.
Re:Show HN: 10-minute programming challenge. Let's do more o...
by hnriot on Wednesday August 08, 2012 @11:51AM
(#4356211)
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.
-- Sudoku verifier
-- library generator (scan all of the music files on your drive and compile a list of artists)
-- dictionary app (using Wordnik API)
-- flexible calculator that can detect postfix v. prefix
-- Sudoku solver
-- Hidato solver (which is essentially King's tour, but cooler)
-- tumblr API wrapper (or really any OAuth service)
-- n-gram language classifier
I just put in a 2.4km address and it came out to ~2,500 steps.
See this permalink (click "go")
http://missstep.com/?origin=Clayallee%209%2014191%20Berlin,%...
"The fastest route is 2,4 km, which will take approximately 24,855 to 33,140 steps if you walked it."
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.
I would use that.
Such a shame that Google started limiting and charging for their APIs :(
I think Google's limits are per IP address, so doing the lookups client-side should keep my app working for any reasonable amount of use.
Woo!
Finding & registering the domain was part of the 15 minutes. As was setting up (and propagating) the DNS.
So the problem is the copy I wrote. I'll leave it be since my 10-minute limit is over. But I agree I should've said "The shortest walk is x miles..."
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 :)
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.
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.
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.