4 ms·
Show HN: 10-minute programming challenge. Let's do more of these.
- mibbitier 14y agoOVER_QUERY_LIMIT Such a shame that Google started limiting and charging for their APIs :(
- pud 14y agoI just fixed this by changing all API lookups from server-side to client-side. 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!
- nandemo 14y agoI'm curious, did you just happen to have a domain name containing the word "step"? Or that was done after the initial 15 minutes?
- pud 14y agoI did not already have the domain. Finding & registering the domain was part of the 15 minutes. As was setting up (and propagating) the DNS.
- epaga 14y agoyou should totally have recorded your screen while doing all of this, that would be incredibly educational. great stuff!
- nandemo 14y agoImpressive. I suppose if you iterate a thousand times (only 30 working days!) you're bound to generate a big hit. :-)
- brink 14y agoYou may be able to do it fast, but do you really learn anything new?
- beobab 14y agoIt says fastest route, but would someone walking prefer the shortest?
- brador 14y agoIn 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 :)
- Deestan 14y ago> 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.
- delinka 14y agoSo 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.
- Deestan 14y agoNo, these are all walkable.
- hnriot 14y agoI 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.
- eddie_the_head 14y agohttp://www.reddit.com/r/dailyprogrammer http://www.reddit.com/r/dailyprogrammer
- vineet 14y agoThis 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.
- jmduke 14y agoIt's certainly not comprehensive, but here's the shortlist of stuff I make to try out a new language, in order of increasing complexity: -- 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
- vineet 14y agoThanks for sharing. My list has much more CRUD apps with different UI challenges (like a single person todo list).
- prezjordan 14y agoI 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 http://programthis.net
- snippyhollow 14y agoFor 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.
- pud 14y agoIs it possible you're reading it wrong? 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,%20Germany&destination=Clayallee%201400%2014191%20Berlin,%20Germany http://missstep.com/?origin=Clayallee%209%2014191%20Berlin,%...
- deleted 14y ago[deleted]
- subsystem 14y agoLocalization issue: var miles = prettyDistance.replace(",","").replace(/[A-Za-z$-]/g, "");
- snippyhollow 14y agoI don't think I'm reading it wrong. Your link gives me: "The fastest route is 2,4 km, which will take approximately 24,855 to 33,140 steps if you walked it."
- tantalor 14y agoAre those metric steps or imperial?
- JfromSw 14y agoHad the same issue. Put in a 0,1 km walk, came out to 1k+ steps
- nemetroid 14y agoIt'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?
- yitchelle 14y agoOK, I'm confused, what exactly is the challenge here? The creation of a website (one with its own domain) that calculates the number of steps?
- TamDenholm 14y agoTech used?
- tantalor 14y agoFrom first glance, JavaScript, Google Maps API, and jQuery.
- pbjorklund 14y agoGuess 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. I would use that.
- basugasubaku 14y agoI get: "The fastest route is 232 マイル, which will take approximately NaN to NaN steps if you walked it."
- brechin 14y agoI like the simple implementation. One small UI complaint: the text on the button is hard to read because of low contrast.
- TimJRobinson 14y agoYou 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.