Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
divan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
481.
▲
by
divan
4y ago
Thank you for sharing your story. Continuing the geek vibe, I believe the best starting point to make sense of inner workings of incentive systems and rewards is SDT - Self-Determination Theory. It's 70+ yr old theory of motivation in
482.
▲
by
divan
4y ago
- Self-Determination Theory (SDT) by Deci and Ryan - finish (and probably re-read). It's a major theory in psychology on human motivation, and it's one of the worldview-shifting reads for me. It's as nerdy and scientific as
483.
▲
by
divan
4y ago
I read the book around 3-4 years ago and regularly returning to the exploit vs explore and randomness concepts. 37% rule is something I regularly talk about as well, but mostly to help other people make sense of the dilemmas "should I
484.
▲
by
divan
4y ago
There are some drug harm rankings, yes, but I haven't studied it so can't say what's the actual consensus of the field experts. I think I just saw this "alcohol is more harmful from alcohol" a few times in the artic
485.
▲
by
divan
4y ago
Haha, yes. Also "alcohol and sex" - it always went like "you don't drink, so don't like sex either". I even started to suspect that some people have never experienced sex in a sober state, hence the link.
486.
▲
by
divan
4y ago
> A candy bar isn't good for you Oh it's very good for you, especially if low on glucose at the moment. Sugar is not bad per se. Glucose is the main molecule that transfers energy in your body, so we love sweet taste for a reas
487.
▲
by
divan
4y ago
Sorry to hear that. But I actually see this comparison a lot in the literature. Both heroin and alcohol are dangerous, but as alcohol is socially acceptable and widely available in a different forms, the perception of the danger differs. It
488.
▲
by
divan
4y ago
I'm from Ukraine, and as other post-soviet countries, Ukraine had all the typical soviet issues with alcohol consumption. It wasn't unusual to go to school in the early morning and see people (neigbours) vomiting at the street in
489.
▲
by
divan
4y ago
> I doubt that, given that you never tried it, nor drugs. By knowing I mean "understanding". I.e. I understood the concept of addiction and realized that I'll probably "like" alcohol too. Sorry to hear you had to
490.
▲
by
divan
4y ago
You're right. In post-soviet countries people generally drink to get intoxicated on purpose. In Europe and US, from my experience, drinking culture is much more healthy. I do have respect for that. Yet, if alcohol was invented today it
491.
▲
by
divan
4y ago
Yes, that's how I explained it myself as well - a lot of people have life and jobs they hate, they're overstressed and here is a cheap and socially approved (pressured even) way to deal with it. I had a programming as a hobby sinc
492.
▲
by
divan
4y ago
I never tried alcohol and never felt compelled to. As a kid I wondered what's happening with those drunk people I had a chance to see. So I read some books in library about alcohol (my mother was librarian, so that was my internet back
493.
▲
by
divan
4y ago
> burn down their homes and cars, slander them Do you suggest that people read recommendations from Stanford and start burning your home, because you disagree with those? Stanford really has that level of control over people minds? Im
494.
▲
by
divan
4y ago
I'm actually glad someone puts it into one list. I grew up in a society that used words like "disabled" left and right, as an insult. As a child I never saw ramps for the wheelchairs, and seldom saw people on a wheelchair (on
495.
▲
by
divan
4y ago
To be clear "Jan 2006" - is a format string. Current date would yield "Dec 2022", obviously. R example - it's "Long month, hour, decimal minute", so something like "December 15 35" So you got Go
496.
▲
by
divan
4y ago
Very much so? Let's put it to the pragmatic challenge. What will be the output of Go's "Jan 2006" and of R's "%B %h %M" format strings? Don't google.
497.
▲
by
divan
4y ago
Here, quick example from today. Working with an R-script and needed to check date functions [1] and you got mm/dd/yyyy literally in the docs. Good luck figuring out what "%a" or "%D" means, btw. Another recent
498.
▲
by
divan
4y ago
mnemonic is just a memory aid, it can be anything. if you prefer other term, feel free to use it, but the point still holds - it's a 1234567-based date that you remember once (most people can do it) and it helps remembering what should
499.
▲
by
divan
4y ago
Why inventing things instead of googling them? Here, why ISO 8601 support was dropped (spoiler: it's an unparsable mess) https://github.com/golang/go/issues/734 Design mistake )))
500.
▲
by
divan
4y ago
Can you elaborate in details how exactly you tripped by this? Like, when you need to present current date so it looks like "11 December, 2022" - where your issue starts with Go's approach? Can you walk me through your thought
501.
▲
by
divan
4y ago
Just remember the date and use it in your date formatting string. If you want today to be printed as "December 11" put "January 2" in your Format() call. If you want "11 December", put "2 January". No
502.
▲
by
divan
4y ago
Because they're not that smart as HN commenters, obviously. Be compassionate.
503.
▲
by
divan
4y ago
> Your assertions do not make that a reality What reality? I write Go almost daily for 9 years and was running Golang meetups in two countries for years. I think I have pretty good grasp of what actual problem real people have with dates
504.
▲
by
divan
4y ago
Well, maybe subset of software you written or touched is much smaller than the whole set of software billions of other people wrote or touched.
505.
▲
by
divan
4y ago
Most people can remember "January 2nd" and don't think about US-date vs non-US date.
506.
▲
by
divan
4y ago
> is exclusively US-centric It's literally not a problem at all. It's just one bit of information to remember in your head (I explained in a sibling comment how common US-style date in software, so for anyone who used computer
507.
▲
by
divan
4y ago
But why? It's so handy in practice! I work a lot with times (not just dates) and having strings like "15:04" make it immediately recognizible, consise and just right. What I actually lack in Go's time is ability to work
508.
▲
by
divan
4y ago
I'm not a member of a Go team. I can comment though as a non-US citizen. This "bizzare" US order (month-day-year) is SO COMMON in software that it's very familiar. Like most of the software historically was born in US, a
509.
▲
by
divan
4y ago
With both approaches you have to remember some sort of mapping technique for date formatting. What I claim that Go's approach is far superior and easier to remember and use. Leaving aside "oh, but we used to letters" thing, o
510.
▲
by
divan
4y ago
This clause is just about slight inconvenience for non-US citizens to remember the order of month and day, and not about not using letter-mapping approach, which in some languages is using the whole alphabet. Are you intentionaly trying to
More ›