Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
icambron
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
211.
▲
by
icambron
9y ago
I'm not much of a Python person, but it seems like someone could port it without too much trouble. In particular, you wouldn't have to use the ugly tricks I used to make the time zone stuff work
212.
▲
by
icambron
9y ago
I think there are lots of good reasons to make datetimes immutable (e.g. many of the same reasons most languages make strings immutable). But here's one specific to Moment and Luxon: chainable APIs should really always have immutable t
213.
▲
by
icambron
9y ago
Ideally, yes. There are a lot of times you need it though: 1. Recurring meeting events have to take place in a certain zone so that the right epoch time can be calculated for the recurrences across DSTs 2. Even single meetings need them (se
214.
▲
by
icambron
9y ago
Thanks! No, there's no plan to do that. The trouble is that Luxon has no idea how the Hebrew calendar works; it only knows how to output the non-Gregorian stuff because your browser already can via the Intl.DateTimeFormat API. Luxon fi
215.
▲
by
icambron
9y ago
Luxon author here, happy to answer anything. Edit: Here's a thing I wrote about why this exists: https://moment.github.io/luxon/docs/manual/faq/why.html
216.
▲
by
icambron
9y ago
For what it's worth, there's no code (edit: well, maybe a few lines) in common between the libraries; Luxon is written from scratch. I haven't done a ton of perf testing, but depending on your use case, I'd expect most o
217.
▲
by
icambron
9y ago
I'd love to make it smaller. Several of the builds contain polyfills for newish JS features not supported in IE. I'd like to strip that out and shave off a few k.
218.
▲
by
icambron
9y ago
No, they're 0-indexed in Moment. But yes, the reason I made Luxon 1-index them is that days and years are 1-indexed. I also fielded a lot of issues in Moment that were caused by newer programmers not knowing that months were 0-indexe
219.
▲
by
icambron
9y ago
The standard library is really difficult to work with and does very little for you. There are some improvements to Dates coming through the standards pipeline but it will be a while.
220.
▲
by
icambron
9y ago
It is linked on the Github page. There's also a link to a page making direct feature comparisons to Moment: https://moment.github.io/luxon/docs/manual/faq/moment.html
221.
▲
by
icambron
9y ago
Library author here, if anyone has any questions.
222.
▲
by
icambron
9y ago
This is my dad's strategy. He's a pretty affable guy and often willing to help, but he has a way of saying "no"--and just "no"--that makes it sound like he's declining a second serving of ice cream. It
223.
▲
by
icambron
10y ago
A worm using this exploit could presumably spread itself as the user hops between networks as part of their routine.
224.
▲
by
icambron
10y ago
It's not thuggish. It's merely a bad deal. It's a bad deal for the company too, since they will have to compensate people more for their level of skill in order to make up for it. It's also ridiculous of the company to t
225.
▲
by
icambron
10y ago
I'm having difficulty reconciling this statement > The goal is not to get invaded in the first place with this one > Afghanistan succeeded in getting the Soviets out in the end.
226.
▲
by
icambron
10y ago
Agreed that the goal is to not get invaded. That's why a country that has been recently invaded by two different countries is a poor example of someone for whom deterrence worked. Perhaps the threat of a war of attrition is an effectiv
227.
▲
by
icambron
10y ago
> Afghanistan would beg to differ. You're not looking at this from the Afghan perspective. From the American and Russian perspective, yes, occupying Afghanistan is a painful deathtrap. But for the Afghans their occupation is...also
228.
▲
by
icambron
10y ago
Like a few people in this thread, I didn't really buy the closure analogies. I think if that were my first exposure to it, I'd end up with some pretty wrong ideas about how they work. Specifically, it's not a snapshot. I wa
229.
▲
by
icambron
10y ago
I cracked open this game when a friend was visiting. We pair programmed on it for hours and it was a blast. Now I can't quite bring myself to play it alone.
230.
▲
by
icambron
10y ago
The information density of federal regulations is much much higher though. It's written in a higher level language and even shells out to precedence to interpret a lot of it.
231.
▲
by
icambron
10y ago
I think there's pretty good evidence those safety features have helped a lot! People were almost twice as likely to die in a car accident in the 1980s than today [1]. I'm not an auto crash expert -- and I admit that safer roads an
232.
▲
by
icambron
10y ago
Perhaps we accept car crashes as a generalized, unspecific life hazard because our lives require us to drive constantly? It's simply too mentally burdensome to do something all of the time and also frame it as a life-threatening activi
233.
▲
by
icambron
10y ago
The key part of that is administering part. Cap and trade requires the producer participate in a market for cap allowances. It's that overhead that makes it more expensive.
234.
▲
by
icambron
10y ago
Turns out, we're really inconsistent! http://www4.uwm.edu/FLL/linguistics/dialect/staticmaps/q_26....
235.
▲
by
icambron
10y ago
I don't know the answer to your question, but I do want to point out that there's something a little jarring about positing that its valuation is nonsense and wondering why its users find it valuable in the same thread. I don'
236.
▲
by
icambron
10y ago
The most interesting part of this story to me is actually that his wife noticed that the printer didn't work on Tuesdays. I'd have never, ever put that together, no matter how many times I saw it succeed or fail. I'd actually
237.
▲
by
icambron
11y ago
> If you are thinking, how does it give more probability for the air borne strain to spread? Right, that's the important thing to think about: the size of the advantage over (or even disadvantage to) the status quo doesn't matt
238.
▲
by
icambron
11y ago
I can tell you both the parent and grandparent posters are knowledgeable enough to help answer your question. I think you're misunderstanding how evolution and selection pressure work at a conceptual level, and you don't need an e
239.
▲
by
icambron
11y ago
Here's the thing: everything sucks. Every industry, profession, even hobby is full of seemingly arbitrary limitations, poor tooling, quirky hacks you have to work around, little bits of required know-how that seem ancillary to the cent
240.
▲
by
icambron
11y ago
> It does not affect marginal decisions (buy vs. keep; rent vs. owner-occupy). Hmm, I don't see how increasing the price of an input fails to increase its price. The "somebody's gotta own it" argument isn't convi
More ›