lumberjackstian
lumberjackstian on Hacker News
Ask HN: Has anyone joined the growth.design UX course and has opinions?
Ref: https://members.growth.design/product-psychology-mastery/They have a really nice home page on biases and they do monthly case studies on various things (headpsace this month, a couple of months ago was tik tok) and they sounds pretty cool.Wondering if anyone here has used the actual course though and if there're any opinions on it?
What Does Memory Safety Mean in D?
Ask HN: Foursquare Pilgrim/Places vs Google Places APIs. Which to Use Today?
Hey! I'm currently in a travel-related startup (yeah I know, great timing :p ... anyway) and have gone with google places for place data.I tried the Foursquare places API initially but felt the results were crap in Oslo/Norway at least. But the restrictions on what to store are quite annoying, and I'm wondering if I should give Foursquare's Pilgrim APIs a good go again, or if my initial...
Task-based async/await in swift
It's basically, (C(n) + M(n) + kD(n)) / n
Where M is moves, C is comparisons, k is a some constant, and D is "distance".
And are there any languages where lazy is not a failure in your opinion?
Edit: removed link to wrong swift feature proposal.
Template arguments need to be known at compile time, and the extra set of parens is how templates parameters are declared in D.
The docs on static if may shed some more light: https://dlang.org/spec/version.html#staticif
There's a wanting implementation of a sumtype in the standard library (https://dlang.org/phobos/std_variant.html#.Algebraic), and a much better one as a package: https://code.dlang.org/packages/sumtype
Another reason is the (ironically) dynamic nature of a return type. E.g.
auto whatDoesItReturn(int i)() { static if (i == 0) { return int.init; } else { return string.init; } }
Template code can do that quite easily and then you don't have a choice but to write auto as the return value.
What would be fantastic if the documentation could be given access to the the compiler's return type inference, so that it could document the auto returns with a little more info.
Another way useful approach would be to implement protocols like in swift, or traits like in scala/rust/others, signatures in ml, etc. Then you would be able to define the interface of what a function returns.
Ask HN: In hindsight, what would you do differently for a startup tech stack?
I'm mostly curious about the context of a startup (because I'm doing that now). And I'm wondering what kind of things people wish they did in hindsight given their situation.I for e.g. already wish I had spent a "bit" less time on ideating and a bit more time on getting in to flutter (as now I've gone in to an iOS mode and I know that's not scalable at the start since we won't have man power to...
Ask HN: What is difficult about submitting reviews today?
Hey HN!I'm doing some research in to current review systems (i.e. restaurants, bars, activities, etc), and I was hoping that some of you might take a few minutes of your precious time to answer a short questionnaire below regarding pain points when it comes to reviewing things online?1. Where do you submit reviews today? 2. What is difficult today about submitting reviews? 3. When in the past...
Tasker: Swift library for task management, async/await, url interception
https://www.theregister.co.uk/2018/11/30/wekaio/
https://www.hpcwire.com/off-the-wire/wekaio-places-in-top-fi...