Live data from Hacker News

Freedom Clock

domsson.github.io

51–60 of 189 posts

Re: Freedom Clock

#51

For anybody looking to build a real clock, please don't use `setInterval`. Instead, use `requestAnimationFrame` which will avoid awkward stutters and delays. With a second-by-second timer, `setInterval` routinely results in seconds that appear too short or too long (in this case, up to the interval time of 100ms). Also, it's nice to see that this simple page isn't using any framework. One quick performance win is to…

> `setInterval` routinely results in seconds that appear too short or too long

I just ran into this/ noticed it on something I rebuilt, both using setInterval. It was fine before… but the new setInterval is … “off” visually.

TY

Re: Freedom Clock

#52
post #3

I get it, it's really annoying that there are different formats. In fact I once nerfed a small database by importing a bunch dates from a csv in the wrong format. But honestly both formats (M/D/Y and D/M/Y) are wrong, as clear from the clock example: dates should be big-endian; Y/M/D.

Iso8601 for the win!

Only for dates. It is horribly broken once you start involving timezones.

Re: Freedom Clock

#53
post #3

I get it, it's really annoying that there are different formats. In fact I once nerfed a small database by importing a bunch dates from a csv in the wrong format. But honestly both formats (M/D/Y and D/M/Y) are wrong, as clear from the clock example: dates should be big-endian; Y/M/D.

I grew up in a big endian culture and I cannot agree more with your last sentence.

Re: Freedom Clock

#55
Dates should be annotated as such and rendered according to your browser's time zone and formating preferences.

Don't blame the other culture, blame your inept communication medium.

Re: Freedom Clock

#56

Year/month/day.

This is what I use to name files I want to sort by date. America uses the wrong date format, and is also one of only three countries that doesn't use metric (the U.S, Liberia, and Myanmar).

Every Chinese engineer I work with knows how to measure in li, fen, & jin; the Japanese measure floor area in tatami, etc. I think you're conflating customary units with scientific units. Most of the world uses local, customary, units. The US — like most of the world — uses metric for science stuff.

Re: Freedom Clock

#58
post #42

One thing I've come to learn is that American formats are human-friendly rather than machine-friendly. Our date system is like the Fahrenheit system; it works well when thinking like a human. in Fahrenheit, you just think of it in terms of 50 being the middle, "not cold and not hot". Then you understand 80 is high warm, closing in on hot, etc. Similarly for our date system, we lead with names and important informatio…

water freezes at 0, boils at 100. this is an excellent and intuitive scale for a human that is 70% water. The SI units, like kg or m are characteristic of the human scale. and more importantly, sanely decimal.

and you say 3rd street, not Street 3. and 4th of july

i do prefer the american decimal point 1,000.00 , it makes more sense. But it's time for humans to quit our nonsense and give way to machines , which require universal standards.

Re: Freedom Clock

#59
post #42

One thing I've come to learn is that American formats are human-friendly rather than machine-friendly. Our date system is like the Fahrenheit system; it works well when thinking like a human. in Fahrenheit, you just think of it in terms of 50 being the middle, "not cold and not hot". Then you understand 80 is high warm, closing in on hot, etc. Similarly for our date system, we lead with names and important informatio…

It only is human-firendly if you grew up with it, so it's rather "American-friendly".

> You don't say "25th Apartment", you say "Apartment 25",

We say 25th March in German.

Saying the whole date follows the importance: day, month, year: fünfundzwanzigster märz zweitausenddreiundzwanzig.

Post reply on HN