IMO it's maybe the best suited language to AoC.
You can write it even faster than Python, has a very terse syntax and great numerical performance for the few challenges where that matters.
I know this is pretty personal but Python's way with indention really does not play well with throwing things out. It's obviously matter of practice, but languages that have same qualities but are easier on formatting issues and aren't that set on one correct way of writing things allow much doing things much faster. But at the end, it's personal :-)
Browsers can handle conversions just fine but they need some context. If that context is somehow tampered with, then the results might be weird.
In this case, SpaceX seems to be using UNIX timestamps(1) which is probably fed to a combination of Date and Intl to obtain a localized date string. Extrapolating the country where the user is located is not really rocket science either. But, if my context is somehow tampered with (VPN, internal clock, browser settings…), then I will get a potentially "wrong" date, for whatever definition of "wrong".
The problem is fundamentally the same on the server side because you can only rely on the information you get… which might be wrong.
So either you take the safest route, which is to display the local time of the organization or its UTC representation and let visitors figure out their local date on their own, or you take a somewhat riskier one, which is to try to display a localized date to your users and accept the potential flaws of the method.
Yes, by setting the datetime attribute (in UTC) on a time element, then on the client side pulling that into a Date object and calling toLocaleString().
Play testing is the most important part of game development. Indies who struggle to come up with concepts are really sleeping on this. If you run play tests well enough your roadmap will almost write itself. Players will do and ask for things that you would never dream of.
I think an intense culture of playtesting is why valve software puts out games so rarely. Their new strategy seems to be to keep a title semi-secret for years while a small army plays it full time. If Deadlock makes it to market, it is almost certainly going to be an acceptable game to most who are even remotely interested in the genre.
The whole "How are you?" ritual is quite possibly the most nonsensical thing about the Anglo cultures. Like, I get that the point is to feign polite interest in the other person. But then by asking this question with the expectation of the same formulaic reply "I'm fine!" (and confusion if the response is something else) - even if the other speaker is emphatically not fine - it literally does the opposite, making it clear that the way they actually feel doesn't matter.
I had a coworker who took this to the extreme. When they'd come up to anyone they'd say, without any pauses in-between: "Hi. How are you? So I wanted to tell you x, y, z [...]", not leaving any time to respond, even with the formulatic "I'm fine.". Really driving home that they're just reciting, without caring one bit how you feel.
Pretty overwhelming to me personally, but I could tell other coworkers were taken aback by it too.
He’s an excellent teacher!
I think he worked at Apple so he shared a lot of the history behind the APIs in iOS going back to the NextStep days.
reply