Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bernawil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
211.
▲
by
bernawil
7y ago
What's a good recent example of hype-driven software? The only good example I can think of is MongoDB. All the other hyped techs in recent memory I can think of were all objectively good: Nodejs, Reactjs, Docker, Kubernetes, etc. In th
212.
▲
by
bernawil
7y ago
Nodejs is single process, single thread and single core. Chrome used to run different tabs as threads of a process but that ended since Spectre and Meltdown. Back to single process since then. async IO creates a thread servicing that IO
213.
▲
by
bernawil
7y ago
Javascript doesn't "need" dependency injection because modules are objects, and you can mock those directly by replacing what they reference to. Very similar story in python. You could say people do DI in these dynamic langua
214.
▲
by
bernawil
7y ago
- If your code base utilizes dependency injection to make the code more "testable" with mocks, you are making the code 10x worse. There are other ways to make your code more modular without injecting new scope, logic and apis
215.
▲
by
bernawil
7y ago
Urine is recorded to being used for whitening teeth since at least ancient Egypt. I always thought they used something like a swab for it though, but you can be sure someone out there had the idea to use it as mouthwash lol.
216.
▲
by
bernawil
7y ago
> The third thing can be a controller (true MVC), a presenter, a view-model, or, in the case of the article, operations and events. Well the article introduces weird new lingo which I don't think is all that great, but whatever. &qu
217.
▲
by
bernawil
7y ago
It was super heavy though. So dense and heavy I remember I couldn't carry it in my pocket when wearing shorts shorts.
218.
▲
by
bernawil
7y ago
hey, we all love how fast HN loads, not gonna argue! On the other hand, I don't think it's usable for other crowds. I spend most of my day inside vim, so I'm used to switching windows and going back all the time but I don
219.
▲
by
bernawil
7y ago
First time I hear XMLHttpRequest was a mistake. No one is going to sit through a full-page reload on every form validation. Even intermediate solutions that merged (hacked) client-server state failed too. APIs are just better.
220.
▲
by
bernawil
7y ago
People need way more validations than html5 elements can provide. They need CC number validation. Validations that depend on the content of sibling elements. And they need it to display in custom ways like internationalized or whatever.
221.
▲
by
bernawil
7y ago
In my experience if the application state is overly complex then that is a result of the design, and that usually leads to a bad experience for the user. Though it is possible to overengineer this, you're probably underestimati
222.
▲
by
bernawil
7y ago
They're forms that submit stuff to a server and get a response What kind of response? Asuming no React, a. json b. SSR-html? If, a. Now you've got to process that response, handle errors and finally render into html. You&#
223.
▲
by
bernawil
7y ago
> do one thing when field a is null and field b is not And that would have been a good example! contrary to the one in the docs. Pattern matching for checking fields of things of the same type is a good use. Pattern matching when checkin
224.
▲
by
bernawil
7y ago
I personally hate when official documentation uses badly applied approaches because it will be invariably be quoted as source for some "best practices" argument at some point. That's clearly a use case for interfaces and type
225.
▲
by
bernawil
7y ago
How is that particularly functional? In Haskell the same example would be approached at type-level using type classes, something extremely similar to using Interfaces. I guess in a dynamic functional language you'd probably avoid doing
226.
▲
by
bernawil
7y ago
>superheroes are creatures/concepts as old as stories though, from the oldest myths of Ulysse Ancient/Mythical "heroes" are not like our modern superheroes which are kind of a mix of gods/demigods and christian s
227.
▲
by
bernawil
7y ago
I was browsing the thread, trying to recollect my oldest memory of me having an internal monologue and remembered one time in my grandmothers back garden when I was 5/6, then read this :) My story was that I was playing around in the g
228.
▲
by
bernawil
7y ago
It's common in all Spanish Spain places
229.
▲
by
bernawil
7y ago
That's how rules/law work. If they'd let people enter 2 years on a tourist visa, for every person like you they'd get 100 with the intention to settle. So better ban it outright.
230.
▲
by
bernawil
7y ago
It's like a museum of problems. Waves of solutions that became problems after. The culture of code generation before the culture of XML configuration.
231.
▲
by
bernawil
7y ago
doesn't depend on any "context" in that example. Both written and spoken follow strict rules.
232.
▲
by
bernawil
7y ago
> when do you move from using in-application data structures? as soon as you need any of these: * a relational model -because you need to model your data that way or you are required to because someone wants to consume it with tableau-.
233.
▲
by
bernawil
7y ago
I don't get it. Is it related to rankings, star systems, etc? > pervasive assumption I think whenever "rating" anything people are aware that it's a subjective and probably useless number meant for convenience than ac
234.
▲
by
bernawil
7y ago
Isn't the real problem that Ruby's "magic" a lot of the time relies on monkey-patching stuff? I mean, Javascript's modules also are dynamically executed and then returned as a singleton module object (also cached, s
235.
▲
by
bernawil
7y ago
> or you’re just loading the same sites over and over again. That's right, I am loading the same sites again every day consuming different data. Both for work and fun. That was the whole point.
236.
▲
by
bernawil
7y ago
On a bad connection, I'd pick a react SPA with a slow upstart over a classic server-side rendered one any day all things being equal. With the react app there's a chance I'll have the js already cached and I'm only fetch
237.
▲
by
bernawil
7y ago
> With this type of contingency plan, I don't see any reason to use server-side rendering at all A case of vital context missing. Ever tried something like Next.js? It's a react framework for client + server-side rendering. Wha
238.
▲
by
bernawil
7y ago
I think these languages are thriving in the cloud because they not only have a favored concurrency model, they have it mandatorily and so they spun a cohesive ecosystem. Take Java for example. You can make an event loop and use it on a web
239.
▲
by
bernawil
7y ago
It's the concurrency model. The industry has decided threads just don't scale and it's doing away with the two most popular languages that rely on multithreading (Java and C#) and favoring NodeJs (event loop), Go (goroutines)
240.
▲
by
bernawil
7y ago
> borrowers will have to either not get the money If credit shrinks, asset prices decrease so borrowers would need less money anyway. In the end it's all about who owns the capital. Mesopotamian civilizations had to forgive debts pe
More ›