News for hackers. Stuff that matters.
Re:I created a Fitbit clock face in TypeScript by lqet on Wednesday November 06, 2019 @10:42AM (#21463596)

  return `Viertel vor ${nextHour}`;
There is a mistake right there! This should read

  return `Dreiviertel ${nextHour}`;
(Not "a quarter before 3", but "three-quarters of 3").

:)

https://i.stack.imgur.com/fNkDo.jpg

Re:I created a Fitbit clock face in TypeScript by 4ipp on Wednesday November 06, 2019 @12:49PM (#21464966)
Taking to account that I am an A1 German speaker (cretaed this app for me in the first place) it was tricky to find out what's right.

A friend of mine told me that his father would say "zwei vor Dreiviertel drei" for 2:43 :)

But in the end I just folloved the rules from my A1 book.

Re:I created a Fitbit clock face in TypeScript by cheschire on Wednesday November 06, 2019 @10:45AM (#21463633)
That may be a regional thing. I hear "viertel vor" far more often.
Re:I created a Fitbit clock face in TypeScript by lqet on Wednesday November 06, 2019 @10:46AM (#21463646)
Was meant as a joke, this is a very controversial subjects in the German speaking world :)
Re:I created a Fitbit clock face in TypeScript by skrebbel on Wednesday November 06, 2019 @11:15AM (#21463955)
My love for the German People is adequadely illustrated by the fact that this is, I quote, "a very controversial subject".
Re:I created a Fitbit clock face in TypeScript by cheschire on Wednesday November 06, 2019 @10:48AM (#21463687)
Thanks for the explanation! I enjoy reading about idiosyncracies like this.
Re:I created a Fitbit clock face in TypeScript by flanbiscuit on Wednesday November 06, 2019 @10:47AM (#21463652)
Nice, will check this out. I'm also currently developing a clockface for Fitbit OS but I did not go with Typescript but Ive been wanting an excuse to start using it so I might rewrite what I've done in Typescript.

I also just want to say that the whole developer experience working on a Fitbit OS clockface or app has been very nice and easy. Kudos to the Fitbit developers!

Re:I created a Fitbit clock face in TypeScript by 4ipp on Wednesday November 06, 2019 @12:41PM (#21464891)
I come from typed world and TS makes a big difference for me. If you haven't tried it yet I would strongly suggest.

Fitbit also provides a types lib which makes it easier.

The only constraint I had is that there is no emulator for Linux and running on a real device doesn't always work.

Let me know once you implement your clock face. I would like to check how others do it.