Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
azangru
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
691.
▲
by
azangru
4y ago
> Your UI should be a pure function of your state. I think you are mixing metaphors here. An ideal React component was supposed to be a pure function that takes in props and spits out a piece of UI. This ideal has never been reached, or
692.
▲
by
azangru
4y ago
> one of the things that I struggled the most with, that splitting one component into two components required a load of boilerplate and a whole new file. Oh, I didn't know that about Vue. Eww!
693.
▲
by
azangru
4y ago
> return <button disabled="disabled">Submit</button>; In JSX, the "disabled" attribute is a boolean; so it would be just: return <button disabled={!isFormValid}>Submit</button>;
694.
▲
by
azangru
4y ago
For what it's worth, I like the syntax of Lit. There are a couple of magic symbols ("@" for method, "." for property); but otherwise, it's plain javascript. The DOM output that Lit produces, peppered with magic
695.
▲
by
azangru
4y ago
How is this example from vue docs: <a v-on:click="doSomething"> preferable to the jsx version: <a onClick={doSomething}> or even this loop example from the vue docs: <li v-for="item in items">
696.
▲
by
azangru
4y ago
> The performance "disadvantage" of react (compared to what? SolidJS? handcrafted JS? some WASM thing?) is so small a user won't notice it How can you know this? The only scientific way to approach this question is with re
697.
▲
by
azangru
4y ago
> People tend to compare these frameworks on things that don't matter - often it's performance. Performance people get offended when they hear things like that. I imagine what they will tell a person who says something like thi
698.
▲
by
azangru
4y ago
> When I build libraries for React, ironically, I don't really use hooks like useState, useReducer, etc. One of the best perks (and footguns) of managing your state outside of react is that you get to have full control over when a
699.
▲
by
azangru
4y ago
> I'm not sure I'd ever expect a framework, React or anything else, to stop that behavior. Isn't this the whole selling point of Solid's signals? If a child component receives its props from the parent as signals, and
700.
▲
by
azangru
4y ago
> If you were trying to solve any problem with software, which would you choose? > A unmotivated, unskilled team with the best technology... How do you get an unmotivated and unskilled team with the best technology? Who has picked up
701.
▲
by
azangru
4y ago
They fixed it :-)
702.
▲
by
azangru
4y ago
Their website is broken for normal users. Try visiting anyone's profile page over the web — you'll get a 467 error [0] e.g. Elon: https://twitter.com/elonmusk
703.
▲
by
azangru
4y ago
Reddit? Do people find better answers to programming questions on reddit rather than on google?
704.
▲
by
azangru
4y ago
> If an individual wants me to not refer to them as x because they find it offensive, no problem. It's a pretty big cognitive load though, to remember what everyone finds or doesn't find offensive. This is what bothers me about
705.
▲
by
azangru
4y ago
Wait, what? Where are you seeing jquery and bootstrap? Their javascript payload is around 10kb, whereas jquery is 30kb minified gzipped.
706.
▲
by
azangru
4y ago
> Unclear if that was the intention of the diagram or not. Of course it was; how could there be any doubt? Surely the designer, or the artist, knows full well what she puts in the picture. The name of the game these days is diversity and
707.
▲
by
azangru
4y ago
I think they've graduated to python now.
708.
▲
by
azangru
4y ago
And MDN is owned by Mozilla :-) Between the two of them, I think we've got ourselves covered.
709.
▲
by
azangru
4y ago
> "A Complete Guide to Flexbox" is probably my most referenced article. I'll just put it out there that web.dev is becoming a more and more awesome resource to learn web technologies. Their page on flexbox is very detailed
710.
▲
by
azangru
4y ago
> When he sold it off to Digital Ocean and left, there was a noticeable change in quality. Yes, absolutely.
711.
▲
by
azangru
4y ago
> Probably due to the numerous “holes” around the edges of the sloth. Isn't it sort of the point? Since the app is showing you all the ports (i.e. "holes") that are open?
712.
▲
by
azangru
4y ago
> Hard to see the use-cases for sass in 2024 Possibly mixins, loops, and variables, which, unlike CSS variables, can be used in media queries.
713.
▲
by
azangru
4y ago
> It seems to be a solution in search of a problem Maybe the next step will be to create one? :-)
714.
▲
by
azangru
4y ago
> looks like he does indeed enjoy it What in that twitter thread makes you think he enjoys it? The fact that he does not share a certain political opinion? Is a political belief, or lack of it, enough to enjoy life in a country?
715.
▲
by
azangru
4y ago
Nike (or a more appropriate entity) wouldn't be able to sponsor him even if it wanted to, given how the ties with the Russian banks have now been severed. Another case for bitcoin, I guess?
716.
▲
by
azangru
4y ago
> I felt so weird writing inline `class`, but then again, it's just a syntactic sugar for prototype functions You felt weird using standard ES6 syntax? Did you prefer writing Thing.prototype.method = function(){}... ? Or Derived.pro
717.
▲
by
azangru
4y ago
Is the repeated inclusion of the <style> tag into every copy of a declaratively rendered component — with the same css strings repeated every time for every instance of a component — a concern at all?
718.
▲
by
azangru
4y ago
> Deno comes with a built in deno vendor command, which fetches all of the dependencies of the current project and puts them into a subfolder, making production deployments immune to dependencies’ hosting failures. While this is certainl
719.
▲
by
azangru
4y ago
> Have they actually made one yet? Exactly. No real laptops so far; no videos with honest in-depth reviews; no information on the dirability of these machines. If something is too good to be true, it likely is.
720.
▲
by
azangru
4y ago
They have a 14-inch model; it's called Starbook.
More ›