Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hbrn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
hbrn
3y ago
> I can't think of a single example of a strongly typed language that has been "fixed" by someone* to get around typing Dependency injection is exactly that.
32.
▲
by
hbrn
3y ago
> For example, lets say I gave a simple coding puzzle (think leetcode) to 10 python engineers. I would get at least 8 different responses. A few might gravitate around similar concepts but they would be significantly different. This is t
33.
▲
by
hbrn
3y ago
Not only do this, but do it way more successfully. I'll never get tired of repeating that among top YC startups, Java as a primary language contributes to roughly 1% of value, while Python + Ruby are almost at 70%. https://
34.
▲
by
hbrn
3y ago
> Python is very difficult to maintain when you program goes over 100k lines of code, while the static type system of c++ is good for millions I see this argument a lot, but people often forget that Python is very concise (yet readable)
35.
▲
by
hbrn
3y ago
Key type is not the right layer for solving information leak (and incorrect joins, mentioned above). Use hashids to avoid the leak, and as a bonus your client-facing keys will be short and easily copy-pastable.
36.
▲
by
hbrn
3y ago
If you have services with lots of dependencies on other services, then you probably ended up the worst of two worlds - distributed monolith. Typically one-way or two-way is not a choice you can make as an engineer, most processes in your bu
37.
▲
by
hbrn
3y ago
Unfortunately it's not a popular belief anymore, but [asynchronous] central event bus is a terrible idea on it's own, and it goes against what [micro]services are about. If you want microservices to work you shouldn't have an
38.
▲
by
hbrn
3y ago
> For instance, I’ve never encountered a JavaScript codebase that I have thought couldn’t benefit from just being statically typed with Typescript That's the type bias. If you look at a non-typed codebase, it always feels like it
39.
▲
by
hbrn
3y ago
The concept of the Virtual DOM is a means to an end to achieve declarative UI. It being "fast" is a common myth that spread in React community. Fast compared to what?
40.
▲
by
hbrn
3y ago
> most big tech companies would be better run if they were democratically led with the workers voting on which strategic initiatives to run like a coop Better for who? Workers? Investors? Users? For some reason we don't see big tech
41.
▲
by
hbrn
3y ago
I don't know if you're aware of this, but laws cannot be applied retroactively.
42.
▲
by
hbrn
3y ago
> Go ahead and insert all the comments you like. Then pipe it through JSMin before handing it to your JSON parser. Every problem can be solved by introducing a build step, except for the problem of having too many build steps.
43.
▲
by
hbrn
3y ago
They seem to shine, but it's a mirage. Once you start naming your types "RequestWithoutId" you have committed to using language alien to everyone but engineers (might even be alien to engineers). There are tremendous benefits
44.
▲
by
hbrn
3y ago
Certain teams do suffer from incorrectness they produce, and I think obsession with correctness can be beneficial for them. But it's a painkiller, not a cure. Once you build a good team, the source of incorrectness shifts to the vagu
45.
▲
by
hbrn
3y ago
I strongly disagree, though I'm not a writer, so I'll just give you another quote (from "On Writing Well" by William Zinsser): Soon after you confront the matter of preserving your identity, another question will occ
46.
▲
by
hbrn
3y ago
"You should only write when you feel within you some completely new and important content, clear to you but unintelligible to others, and when the need to express this content gives you no peace. "
47.
▲
by
hbrn
3y ago
According to these definitions, what is the difference between capitalistic US and socialistic Norway? Both allow social ownership of means of production, but they don't forbid private ownership. > Socialists joke that detractors
48.
▲
by
hbrn
3y ago
> the capitalist one by prioritising roles that have value to those with capital (corporations etc.), and the Socialist one by prioritising value to the community In the modern world, capital is typically created by providing value to co
49.
▲
by
hbrn
3y ago
> many many people feel coerced into a narrow range of job options And many many people will feel that way under socialism because, for example, any form of freelancing is typically forbidden. Would you consider "he who does not wor
50.
▲
by
hbrn
3y ago
> No sane person thinks that the current system is exploitative? You're misrepresenting what I said in order to produce a cliché leftie rant. I never said current system is not exploitative (though I have no idea what this loaded te
51.
▲
by
hbrn
3y ago
You're using mental gymnastics to attack the alternative framework so that you could avoid thinking about hard problems. No sane person believes that having option to sell your labor without taking risks is slavery. If anything, slaver
52.
▲
by
hbrn
3y ago
If Amazon and Walmart are so great at being centrally controlled, why did both of them introduce third-party sellers to the platform?
53.
▲
by
hbrn
3y ago
> Socialism is about how workers organise their workplace (owning, managing and sharing the produce and profit of their labour) That's a sugarcoated way of saying "imposing restrictions". You're not allowed to have
54.
▲
by
hbrn
3y ago
What are those "systemic and cultural reasons" that exist in every single country and culture on the planet?
55.
▲
by
hbrn
3y ago
That's because Amazon's strategy was to not focus on profits in the first place. https://s2.q4cdn.com/299287126/files/doc_financials/annual/2...
56.
▲
by
hbrn
3y ago
People vote based on how they feel, so I'd say it is government's responsibility. Especially since feeling safe is not the only thing government gets evaluated on. I don't feel threatened by feces on the street, and yet I
57.
▲
by
hbrn
4y ago
That's a common trap engineers fall into. Just because you found some similarities, doesn't yet mean there's a pattern. Instead of looking for accidental similarities, see if you can spot fundamental differences. Only if you
58.
▲
by
hbrn
4y ago
That's because most teams don't have a clear tech ownership: everybody wants to upgrade but nobody can justify it to the management or even plan for it. I found framework and runtime "freshness" to be a good metric of co
59.
▲
by
hbrn
4y ago
Mortal Online 2 is probably your best bet. Darkfall was also a good option, but it seems dead now.
60.
▲
by
hbrn
4y ago
It's like saying that all languages are the same as other languages with just different tokens and semantics. Sure, but those differences are what defines a language. When something is "the same as some other piece of code with
More ›