Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
elmigranto
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
elmigranto
9y ago
Wouldn't it be more performant and less awkward to compile python to JS? Or is it for importing JS code into your python program? Well, why don't compile JS to Python then?
62.
▲
by
elmigranto
9y ago
Elm is nice. Typescript is okay. Heck, you can even Java if that floats your boat. And with WebAssembly… If you don't like the language, but have to use it, use it as compiler target, simple as that.
63.
▲
by
elmigranto
9y ago
In a nutshell, the difference is "sell" vs "license", "own" vs "rent". You own your iPhone and you rent your Tesla Autopilot it seems.
64.
▲
by
elmigranto
9y ago
I don't get what's the disagreement here. Apple sells you a whole system, iPhone + iOS. They don't sell you two things, like in PC world, for example, and that's different and that's okay as long as everyone is upfr
65.
▲
by
elmigranto
9y ago
I wouldn't say that. It certainly not exclusively software and I don't think it is honest to divide a system like that into "soft" and "hard" components, since neither one has value for customer on its own.
66.
▲
by
elmigranto
9y ago
Software-like licenses make their way to hardware world. I wonder how soon we'll start seeing "as is" and "no guarantees of any kind" clauses…
67.
▲
by
elmigranto
9y ago
> MySQL and PostgreSQL have converged in terms of features and performance Is there CTEs in MySQL yet? What about binary JSON and indexes on that? How is implementing arrays and aggregate functions beyond simple arithmetic going? Or mayb
68.
▲
by
elmigranto
9y ago
> Zombie-survival alternate universe, really? But spirits of enemies killed in combat, levitating psychics, phisically impossible robots and horseriders literally made of fire are okay with you?
69.
▲
by
elmigranto
9y ago
> held without charge > adding a second charge Okay.
70.
▲
by
elmigranto
9y ago
The difference is that screenreader does not aggregate multiple content sources behind its own wall with the intention of redistributing through its own channels (possibly for money). Imagine Google AMP or Facebook articles with no way to o
71.
▲
by
elmigranto
9y ago
> Sunday, which in some/most? countries is the first day of the week. Just like imperial system, only a couple of weirdos do that.
72.
▲
by
elmigranto
9y ago
Firstly, it's only (sub)titles. Secondly, those can actually be selected with mouse (and copied), accessed by a screen reader and even `innerText`ed.
73.
▲
by
elmigranto
9y ago
Being a blog is a temporary medium change. There are many hours of unix, git, and programming screencasts and a series on computation in those $29. If "per month" part feels too steep, nothing stops you from making it one time thi
74.
▲
by
elmigranto
9y ago
Almost all text is a GIF with all-caps monospaced 8px font. Yeah, okay, I get nostalgia, minimalism and all that, but arguing it is actually readable or accessible, well…
75.
▲
by
elmigranto
9y ago
A bunch of functions in core return multiple things to callback. A lot more in userland do the same. Spec or not, that is still something that needs to be accounted for.
76.
▲
by
elmigranto
9y ago
When callbacks are used with discipline, they are not much different from promises. The problem is when "discipline" part meets "human" part, though it's still true for promises, perhaps to a lesser degree. The real
77.
▲
by
elmigranto
9y ago
Almost. Don't forget about the case where callback receives multiple arguments, and the fact that someone might decide to change the API for callback signature like `(err, result)` to `(err, result, stats)`, for example.
78.
▲
by
elmigranto
9y ago
That is true only for file system calls. Everything else is using non-blocking OS-provided mechanism. http://docs.libuv.org/en/v1.x/design.html
79.
▲
by
elmigranto
9y ago
> the async IO that happens is done via an internal thread-pool Not quite, since using threads internally (thread per IO operation) would defeat a purpose of async system, which is created specifically to not pay threading cost (context
80.
▲
by
elmigranto
9y ago
> Managing soft-deletes on a database table requires an attention to detail. > Discipline aside, it's difficult for every developer on a team to remember which tables use soft-delete, and when checking that flag is or is not nece
81.
▲
by
elmigranto
9y ago
> naturally having cool things come your way as a payoff You made a bunch of typos in "tremendous amount of luck" :)
82.
▲
by
elmigranto
9y ago
US only, welcome to the "global system of interconnected computer networks". Hope Richard's P2P-internet will work better :)
83.
▲
by
elmigranto
9y ago
> Gets really hairy for deeply nested dicts. Write a function. `def my_deep_get(dict, keys)`
84.
▲
by
elmigranto
9y ago
Look up Postgres FTS.
85.
▲
by
elmigranto
9y ago
Yes. If you really want to. Definetly stuff like presence of fields and their basic sanity (string not being empty or within a certain length), date intervals, uniqueness of certain fields or combinations, etc. You can go as far as you want
86.
▲
by
elmigranto
9y ago
Interesting. Well, you could write a custom type for Postgres as a C extension with all those collations, indexing and other requirements, I know that's not quite SQL or out-of-the-box kind of solution, but still, there are options if
87.
▲
by
elmigranto
9y ago
> statically typing guarantees int will be an int. You can't store string there. What else do you need? Something along the lines of SQL's `check` or Postgres's domains? > queries have to specify the table that they que
88.
▲
by
elmigranto
9y ago
> Why wouldn't the defaults be in the application? Why wouldn't it be treated like any other piece of business logic in code that should be unit tested? How about we check our data in the place where it lives given how very rob
89.
▲
by
elmigranto
9y ago
I wasn't really suggesting anything, but if I were, Postgres and its binary JSON (`jsonb`) would be there alongside with full and easy indexing support and other SQL nicities like constraints, triggers, transactions, custom procedures,
90.
▲
by
elmigranto
9y ago
> no schema Do you read them back? Does your code expect property "X" to be on a "Player" object? Do you put a check everywhere for when it doesn't? Do you have default value for objects that were created before
More ›