For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | 4pkjai's commentsregister

Damn I was hoping for some sort of explanation. This rule doesn't apply to me, my apartments are pretty good even after two years.

I do end up changing apartments after the two year lease period because I get bored of the area or the landlord raises the rent.


Something to help me remember the order of my jokes when doing stand up.


I do this to see if text in a PDF is exactly where it is in some other PDF. For my use case it works pretty well.


I used MonoGame to port my XNA games to other platforms.

It’s really good, also it was very cool as a junior developer to see the code for the methods I used.


I did the same. It was cool seeing some of the games I came up with back in the 360 days running on iPhone and Android devices.


I worked in a team of four between 2017 and 2020 this way. I really enjoyed it. After that I joined a company that worked with PRs. Felt like such a waste of time.


I started off using this back in 2009 when I wanted to make an adventure game.

Really enjoyed it back then, great to see it’s still around


I did the 2014 version of this to learn Swift to port an Android app I made.

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.


Kotlin, because it’s a language I like


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 :-)


Modern straight Java works just as well.


When I was a university student in 2009 a lecturer accused me of plagiarising a c++ win32 project I submitted.

It turned out he ran it through a plagiarism detector and multiple lines of code where identical to lines in their database.

It was very silly because there’s a lot of boiler plate code in win32 projects


Is this something you think they can or should fix?


Been a while since I've looked at available APIs, but can't the browser handle conversions into its own local system TZ?

If it's going by IP geolocation, I would call that a bug.


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.

[1] https://sxcontent9668.azureedge.us/cms-assets/future_mission...


it's way easier too. Just parse an ISO UTC date string into a javascript date object and it'll correctly display the local time, no conversion needed.


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().


Absolutely. If they sent UTC over the wire and handled it client-side, it would just work (your browser tends to know its own timezone)


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You