Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aidos
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
421.
▲
by
aidos
4y ago
I feel like all of that can be done in markup.
422.
▲
by
aidos
4y ago
Not familiar with .Net but I’d imagine this would probably be fairly easy to build on top of this library (and I agree, xml is often a much better way to generate reports). I’ve done something similar but in Python and generating Excel docu
423.
▲
by
aidos
4y ago
Is it?? I’ve been slaughtering that word for almost 15 years. Whether true or not, that’s what I’m calling it from now on.
424.
▲
by
aidos
4y ago
I don’t know anything about this, but is that this instance type on AWS? p4d.24xlarge
425.
▲
by
aidos
4y ago
On that we very much agree. I think it's definitely worth considering what could / can be done better, but people often argue deeply about things that aren't really a massive deal. You've pointed out examples that are mu
426.
▲
by
aidos
4y ago
I'd agree that __len__ is a fairly trivial example, but it is used for truthiness in Python too. It seems like a reasonable choice to mark these blessed methods that the language is using deeply as part of the runtime in a special way
427.
▲
by
aidos
4y ago
Lots of objects don't have a natural way to return a sorted version of themselves, especially inplace (what's the reverse sort of a range, for example). You get the same in Ruby, as you've just demonstrated. Sorting into a li
428.
▲
by
aidos
4y ago
By which I mean that you can consistently use `len` etc on any iterable and they will always behave in the same way. You learn them on day one and they work consistently in every place you see them forever.
429.
▲
by
aidos
4y ago
It's a convention, quite a nice one, but not all libraries are consistent and it does have different meanings too (! is sometimes used for "raise an error instead of returning a boolean"). In the Python case, `list.sort()` op
430.
▲
by
aidos
4y ago
Those functions take any object that supports the iteration protocol. There’s no need for adding say, len, to every object that needs a len function. I’d argue that is consistent. Sure, multi line lambdas might be nice, but equally you can
431.
▲
by
aidos
4y ago
Might be mistaken but I think Postgres only has stored generated columns at this stage.
432.
▲
by
aidos
4y ago
I’m also not sure about the foreign key restrictions on generated columns (and glancing at the docs I don’t see anything about it on there) but for all intents and purposes they are real columns so I’d imagine it probably works. Apparently
433.
▲
by
aidos
4y ago
Exactly. The time spent developing a solution for your problem in pretty much any other language is going to cost magnitudes more than processing millions of documents in python. And that’s ignoring the ongoing maintenance where the hackabi
434.
▲
by
aidos
4y ago
They are in the business of doing business. How much of the codebase that makes up their business model would you like them to expose?
435.
▲
by
aidos
4y ago
If not a household name, at least a weekly household sound for kiwis as Oxygène was used in the title credits of Our World on a Sunday evening. https://youtu.be/wnPR9IoaTFc
436.
▲
by
aidos
4y ago
Interesting. Thanks for following up.
437.
▲
by
aidos
4y ago
Can you point to that in the docs? Calling setState during render sounds like a fine way to get infinite loops. Any of these sorts of hacks tend to be indicative of something not being structured poorly.
438.
▲
by
aidos
4y ago
We use mobx and I think it’s great. The observable / computed model is really familiar from spreadsheets so it’s very easy to reason about code and computations. You always just think about your data in terms of being computed from dep
439.
▲
by
aidos
4y ago
That was caused by changing the original url.
440.
▲
by
aidos
4y ago
Getting access denied. Sorry dang, this is not a great way to spend Christmas (thanks for the ceaseless moderation!).
441.
▲
by
aidos
4y ago
This feels a bit shallow. According to this website, another website says that warming your car in cold weather before driving can cause damage due to stripping oil from the piston. I’m willing to believe it but I’d like to hear some detail
442.
▲
by
aidos
4y ago
There’s also info on this page about it (incremental materialised views). https://wiki.postgresql.org/wiki/Incremental_View_Maintenanc... In the meantime my preferred technique is to have a column where I stamp the las
443.
▲
by
aidos
4y ago
For those who want to see a teardown, AvE has one on his channel here; https://www.youtube.com/watch?v=0qKp-0h9P18
444.
▲
by
aidos
4y ago
The Uk had a referendum in 2011 to change the system and voted fairly conclusively to stick with first past the post. https://en.m.wikipedia.org/wiki/2011_United_Kingdom_Alternat...
445.
▲
by
aidos
4y ago
Is it? Interestingly I’ve only heard it as “no smoke without fire”
446.
▲
by
aidos
4y ago
That’s the transition we went through. Our dependencies are / were pretty weird so the transition took a bit of effort - I suspect more complicated than many people would have to go through. We all use Macs at work so we knew it was a
447.
▲
by
aidos
4y ago
My god that brings back a lot of memories.
448.
▲
by
aidos
4y ago
I’m not sure about other OSs, but having cmd for standard mac shortcuts and ctrl for all things Linuxy is really useful in general. As you point out, loads of apps support the standard readline controls. I additionally wire ctrl-p / ct
449.
▲
by
aidos
4y ago
I’d never heard of these before but that was the usecase that immediately sprung to mind. Seems super useful and the mutability probably isn’t an issue if you’re just plugging in a little internal metadata that’s almost temporary anyway.
450.
▲
by
aidos
4y ago
I think there’s cultural difference where the tongue in cheek context has been lost a bit. They probably use neither 10 full wraps, nor an enraged mountain gorilla, but then I’ve seen stranger things in plumbing.
More ›