Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
elnygren
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
elnygren
9y ago
OOP classes (well, their instances) combine data and functionality into a single "thing" (well, object). Inheritance is nasty because you are not just composing structures of data or interfaces of functionality but both at the sam
62.
▲
by
elnygren
9y ago
foo = foo || {} "mark foo as being foo if it is already defined or as an empty new object {} if it is not" It's just to not accidentally set a already defined foo as an empty object incase foo is already defined. Yeah
63.
▲
by
elnygren
9y ago
I think there are two answers here that also point out a couple things about the question & its framing: 1) Because almost no project is just CRUD Web UIs. There are always so many small and big details that deviate from the CRUD Model.
64.
▲
by
elnygren
9y ago
It's certainly doable and has been done. However, it's not as pretty as the rest of GraphQL and there's still a lot of work to be done. And comparing to something like Django/Rails - there's a lot more DIY involved.
65.
▲
by
elnygren
9y ago
Actually, my point was about losing control over queries when using JoinMonster (say, you wanna do something fancy like Postgres' to_json, array_agg that JoinMonster doesn't support). However, I totally understand the confusion in
66.
▲
by
elnygren
9y ago
GraphQL is a very nice spec for building APIs that have many sources of data and then building a modern frontend with proper caching etc. on top of it. The ugliest part of it, or one requiring most hacky solutions, is optimising queries. Fo
67.
▲
by
elnygren
9y ago
Well if you can't get out of the building and you're losing focus to all that useless stuff lying around in your office... ;)
68.
▲
by
elnygren
9y ago
Thank you :D
69.
▲
by
elnygren
9y ago
Well it was about the damn time! A lot of ICOs are borderline (or just straight) scams. There have been even cases where the ICO funds have been "stolen" but rumours say the founders just took the money and ran. A lot of the so c
70.
▲
by
elnygren
9y ago
I'm Finnish (the lang is nowhere near English) and I've begun coding in my early 20s and I'm a technical co-founder (who actually knows his stuff). I don't think language is the reason here. Good education, smart people,
71.
▲
by
elnygren
9y ago
The statement "Country X has a lot of startups" also applies to more or less any Scandinavian country (and Finland, which isn't part of Scandinavia but part of the Nordic countries). One thing to note about Norway: they might
72.
▲
by
elnygren
9y ago
iOS saves space by only keeping thumbnails locally and loading better versions on de-mand. You’re gonna be fine :)
73.
▲
by
elnygren
9y ago
Visual mode is slow and awkward compared to what ST can do with cmd+D, for example. IME, vim actually loses in performance too when editing multiple lines.
74.
▲
by
elnygren
9y ago
Agreed. However, this is unfeasible/impractical. Ain't nobody got time for that. Are there any commercial or non-profit organisations that maintain lists/repos of audited and trusted software with their checksums? It seems li
75.
▲
by
elnygren
9y ago
so how does that one-liner transform data from log A to log B in realtime? are talking about creating a new table or materialised views or stored procedures or...?
76.
▲
by
elnygren
9y ago
Postgres could in fact be used here by creating an append-only table similar to: id, data (JSON field) However, Postgres doesn't have good support for creating derived append-only logs (=streams) from that table. Kafka has Kafka Stream
77.
▲
by
elnygren
9y ago
if you read more closely, this article is not about the amount of data, but the way how it is managed.
78.
▲
by
elnygren
9y ago
> Kafka messages are immutable. Each of those green boxes on the right hand side of the first diagram will need to have special-case logic to unpack the kafka stream, with knowledge of its changes (up until 17 May 2017, treat the data li
79.
▲
by
elnygren
9y ago
I almost always roll a basic Makefile for even simple web projects. PHONY commands like "make run" and "make test" in every project make context switching a bit more easier. While things like "npm start" are ni
80.
▲
by
elnygren
9y ago
There's really nothing there - 11 likes and 1 comment ? Also, this very same Facebook link was linked to at https://cstheory.stackexchange.com/questions/38803/is-norber... by https://cstheory.stack
81.
▲
by
elnygren
9y ago
It seems we have some mismatch between the abstraction layer where we want to talk about cryptocurrencies and how their actual implementation goes. IMHO, we are venturing to the domain of lawyers; most people are not just going to be saying
82.
▲
by
elnygren
9y ago
Not quite like a stock split. In stock splits its almost guaranteed that the total valuation is similar. This is wild, wild cryptoland. At the moment both Bitcoin and Bitcoin Cash are rising - so a lot of "free" money (at least in
83.
▲
by
elnygren
9y ago
Well, at least they have the best appearance. As in, UX, UI, Docs, APIs, service design etc. are all top notch. Which would make it probable (but not certain) that the more technical parts are well engineered too. Coinbase is doing perhaps
84.
▲
by
elnygren
9y ago
> without keeping references/keys to the old ones You are correct, but this would be a new level of stupid for a leading cyrptocurrency exchange that actually tries to build a reputation and appearance of quality, safety, compliance
85.
▲
by
elnygren
9y ago
Using Clojure as the first language is interesting. Being one of the most expressive and efficient (I am not talking about clock cycles here) languages I've used, I think it will set a great mindset for programming. Clojure is declarat
86.
▲
by
elnygren
9y ago
Best way to increase salary at current workplace? Get offers from other companies & ask for a meeting with your boss (or whoever decides your pay, so HR etc.). Bring up the offers, discuss what you'd get from there and also go thro
87.
▲
by
elnygren
9y ago
The author says I took even though this was pure luck and coincidence. Attribution bias is strong in this one. However, it is important to acknowledge that he did put himself into a position where he was available to become lucky (= he bu
88.
▲
by
elnygren
9y ago
It was a good run while it lasted! In case you guys have ideas for other similar ML/AI projects - we could take a look! (shameless plug, I'm a partner at Emblica.fi)
89.
▲
by
elnygren
9y ago
It takes two to tango. A lot of people lost a lof money because they got margin called at ~$2 for a commodity that is worth ~$300. https://twitter.com/elnygren/status/877660177406865408 On the other hand, a lot of
90.
▲
by
elnygren
9y ago
"had I more time, I would've written a shorter letter". Remember that "in simple terms" does not mean easy or over simplifying something. To me it means making a to-the-point and jargon-free explanation.
More ›