Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bernawil
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
241.
▲
by
bernawil
7y ago
It was quite literally a rallying point for Lincon and a reason for the civil war. Southerners wanted free trade to export tobacco and cotton. Northerners wanted tariffs and protection for their industries (both to make their factories mor
242.
▲
by
bernawil
7y ago
> completely wrong and ruined our perception of OOP. or maybe Erlang is its own thing and OOP -as what most people are thinking when talking about it- is the set of practices followed in languages descended from the cross between C and S
243.
▲
by
bernawil
7y ago
"Objects" in OOP, as in "let's couple data with behavior" necessarily means mutable state, otherwise they are just types. Use only immutable data; write abstract classes only; do polymorphism with interfaces and you
244.
▲
by
bernawil
7y ago
It's not because of "weak types" since the types inside the array don't get their type information erased. It's because Array.sort takes a comparison function but the default function instead of being something like
245.
▲
by
bernawil
7y ago
Isn't it kind of a useless distinction? I mean it's not like there are so many periods of pre-gunpowder history. We have ancient, medieval and that's it -you could add bronze age but we have so much less records-. The whole &
246.
▲
by
bernawil
7y ago
in a strict language? I don't think it's possible. Because if you take a better look you'll see that it's not enough to mark functions as sync or async since inside the functions each line of code can be considered a syn
247.
▲
by
bernawil
7y ago
>Whats a good language that shows off the style you're suggesting? javascript. What you describe sounds like native UI work since forever before javascript. "Don't block the main thread" and all that. Javascript is di
248.
▲
by
bernawil
7y ago
But you realize that "it needs to outlive the current scope" is vague enough to support the statement that there's really no rule of thumb, right?
249.
▲
by
bernawil
7y ago
looks like you are arguing what "sparingly" means in that context because the rest of the sentence is totally valid. Stack and Heap allocation in C serve different purposes and there's really no rule of thumb to choose one a
250.
▲
by
bernawil
7y ago
Having first-class functions and closures was the can of worms. How much you can get done passing callbacks is what got me wondering how much more stuff is there to learn in FP.
251.
▲
by
bernawil
7y ago
"insider trading" is one of funniest many exceptions to the rules of capitalism. Like someone said "The financial system works! you support companies you think will do good for profit! it's great, it will regulate itself
252.
▲
by
bernawil
7y ago
That sounds like doing for code what we used to do for deployments before docker/kubernetes. Like going back from a declarative and reproducible aproach to a more procedural one. There's good reasons infrastructure as code took ho
253.
▲
by
bernawil
7y ago
>many streets are designed as loops, making it impossible to use them to drive from one end of the city to the other. This solved a major problem—before the redesign, some streets were choked with nearly 30,000 cars a day, most of them s
254.
▲
by
bernawil
7y ago
Yeah. Like I remember the win 32 API (not saying it's a good API though) to typedef every struct and it's pointer. I'm not sure if the Linux API are the same though.
255.
▲
by
bernawil
7y ago
Others are pointing out the problem with staffing companies too, but this reminds me of my experience (different countries, so YMMV). This means that even though "The law allows for veil piercing" there's a huge maybe there,
256.
▲
by
bernawil
7y ago
I can think of several countries with universal healthcare where hiring is still complicated to say the least. Not arguing it would still help, though!
257.
▲
by
bernawil
7y ago
Latin culture is about taking vegatables and turning them into bricks to be consumed with soft cheese. >called Romeo & Juliet, one of the best food names ever created The same format here is called Postre Vigilante "whatchman&#x
258.
▲
by
bernawil
7y ago
const only means the variable itself can't be reassigned though, and really the main complain about mutation comes from Array methods. Like Array.pop will mutate the array and you have to do an Array.split for the last item instead if
259.
▲
by
bernawil
7y ago
I don't get the "arbitrary complexity" issue. It's only a problem if you're auto generating everything in your schema, but otherwise you limit the fields of problematic types by hand and that's it. The same com
260.
▲
by
bernawil
7y ago
It's most useful with anything sending multiple requests. Most often you have all the data to perform all requests beforehand, but you can't just fetch (or whatever xmlHttpRequest abstraction you like) to send all requests at once
261.
▲
by
bernawil
7y ago
In Javascript you can make anything into a lazily evaluated expression by wrapping it into a function (sometimes called a "thunk"). // eager new Promise(resolve => resolve(foo)) // lazy const bar = () =>
262.
▲
by
bernawil
7y ago
>Your notion that forked = better is outdated. You're beating a strawman here. Nowhere did I make the claim that it was better. I even said multithreading is more performant. The only claim I make is that immutable and shared nothin
263.
▲
by
bernawil
7y ago
>Java is only suited for small to medium scale? Never said that. What I said was that in the small to medium scale Java was obviously more performant because of the persistent instance & multithreaded model. But beyond that it really
264.
▲
by
bernawil
7y ago
>What is PHP's multithreading model again Since it's inception, the PHP implementation hasn't been threadsafe and since, the way of doing paralellism has been process forking. Later iterations where released with support f
265.
▲
by
bernawil
7y ago
Funny, I just wasted a good while trying to modify the suggestions dropdown for an input in the react-select.
266.
▲
by
bernawil
8y ago
Not really, at least in my experience. The re-binding really isn't the same as the jquery way. React reuses the same event handlers, how it's implemented is another story and not really important anyway. The other issue is the fa
267.
▲
by
bernawil
8y ago
Myself and most full stack devs in my circle using React used to do html/css/jquery before. Nobody misses the jquery days. As soon as you start fetching data from api and refreshing your UI you get into a mess. Let's not forg
268.
▲
by
bernawil
8y ago
They are radically different. Corn is the textbook example of a commodity while land is the textbook example of a positional good. You could sell any realistic amount of gourmet popcorn without affecting the supply of corn nor the price of
269.
▲
by
bernawil
8y ago
I don't think it's relevant to compare popcorn to positional goods like housing.
270.
▲
by
bernawil
9y ago
Argentina has the highest salaries in many other jobs too. Correlation is not causation and all that fuzz. Also, that piece of propaganda conveniently forgets that Avianca just suffered the longest ever strike in Colombia, not really the mo
More ›