Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
antris
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
181.
▲
by
antris
5y ago
I've learned ages ago that parseInt cannot be used like this, so it's not a problem for me, but I thought linters already take care of this case? Also I wasn't talking about using parseInt, a broken function like this so I&#x
182.
▲
by
antris
5y ago
Better a function that works in some cases than not having a function at all. Also, by using TypeScript definitions you pretty much always know what's coming in and going out and VS Code will yell at you if you're trying to do som
183.
▲
by
antris
5y ago
In addition to negative index support, a function is more easily composable e.g. converting a list of indices to a list of objects: `indices.map(myObjectArr.at)` I've lost count on how many times I've wrote this function manually.
184.
▲
by
antris
5y ago
You could replace nazis with any group of people with a specific message that they want to spam all day, every day and it would still be a horrible decision to let them roam free in every public forum. Whichever the group is, not ALL foru
185.
▲
by
antris
5y ago
Sure, nobody likes political correctness but without any controls on content on a public forum as a part of a ToS, nazis and other people who are desperate to express their hate, and even break the law and recruit others will eventually fin
186.
▲
by
antris
5y ago
Now that you mention pasting things into #django-dev, one thing that stuck with me was https://dpaste.com/ I think it was more closely branded as a "paste service for django community to use" than it is now, but I
187.
▲
by
antris
5y ago
As there's many threads relating to the controversy surrounding Freenode, I guess everything about it has been already said. It's sad to see it crash and burn this way. I have fond memories of freenode, and especially the #django-
188.
▲
by
antris
5y ago
Yeah, and digital camera manufacturers aren't adding megapixels for nothing and processor makers don't chase higher clock speeds for nothing, right? Because why would they keep adding pixels and increasing the clock frequency just
189.
▲
by
antris
5y ago
When the pixels are so dense, that using the monitor at its typical viewing distance makes pixels indistinguishable. But not just in the sense that you cannot see that your view is pixelated, rather in the sense that packing the pixels any
190.
▲
by
antris
5y ago
>the rest of the world to learn one standard system/language than to have every app/product/document adapted to every single language/script/whatever in existence But they don't. That's precisely why th
191.
▲
by
antris
5y ago
I don't know where this Apple dig is coming from. Most applications are just putting a bunch of strings into database and displaying strings from a database. This has always been the case with or without Apple, and it works the same wa
192.
▲
by
antris
5y ago
Are you not aware that just because a certain piece of content doesn't suit you at this moment, doesn't mean that the content is bad? In addition to yourself, there are other people in other situations who are looking for differen
193.
▲
by
antris
5y ago
Then you serve the ads on the same set of elements that also contain critical content to the user. You can't block ads from Twitch / YouTube with a rule if the ads are baked into the stream itself. Same goes for any other kind of
194.
▲
by
antris
5y ago
The non-profit can still have rules in place on who is accepted as members and who isn't, as long as the rules don't break any laws (discrimination etc.). They also can have a mission statement and rules that are not up for vote.
195.
▲
by
antris
5y ago
I already told you what I did and several developers did before React to combat the same problems the React addressed, but somehow you seem to dismiss all of it. If you don't want to believe it, that's fine. I know what kind of co
196.
▲
by
antris
5y ago
>You probably could, but did you? Oh, wait, you didn't. The hot tech du jour when React was released were knockout.js and backbone.js. I did. It's kind of funny to hear that you cannot even entertain the idea that people actual
197.
▲
by
antris
5y ago
If you judge technologies based on a single anecdote you've heard on the internet then I don't think this conversation serves any purpose. I don't know what bone you have to pick with any technology other than React, but achi
198.
▲
by
antris
5y ago
Well that's why said > React made a huge impact on web dev and deservingly so The VDOM was revolutionary, no question about it. The comment I was replying to didn't even mention it.
199.
▲
by
antris
5y ago
Then I stand corrected. :) Maybe I wasn't looking hard enough earlier.
200.
▲
by
antris
5y ago
It was novel because you couldn't refresh the whole DOM based on your application state without user experience suffering, before VDOM diffing came along.
201.
▲
by
antris
5y ago
One these problems usually: - application is in one state and the UI is in another state - jQuery operations mutating the DOM causing weird edge cases after several user interactions - the template language (handlebars, mustache etc.) was g
202.
▲
by
antris
5y ago
I suppose. It just feels weird that the post was highlighting hooks and context, while VDOM was omitted. VDOM was easily the biggest thing in my opinion. I had never seen anything like it and it worked wonderfully. It's not to say that
203.
▲
by
antris
5y ago
100% true. But I'm not even talking about academic really. There were plenty of people who didn't buy into the "MVC/jQuery/templates" thing, and we were writing apps into production for actual customers. I'
204.
▲
by
antris
5y ago
As I said, the VDOM was novel. However, unidirectional data flow, lenses and FRP with RxJs all predate React. There was also Elm which was a full framework that was based on these concepts, and ClojureScript with its whole ecosystem that di
205.
▲
by
antris
5y ago
Svelte does reactive UI without a VDOM at all. Every DOM operation flows from declarative instructions based on the state of the application, without a need for VDOM or hooks. The compiler is quite mature and used by countless apps in produ
206.
▲
by
antris
5y ago
State and DOM being mutated all over the code base was the norm before React. In many apps, state was a thing that was spread out all over the code and could be mutated by any part of the code. And a DOM was another global state on top of t
207.
▲
by
antris
5y ago
>Well, isn't there something a little "revolutionary" about mainstream adoption of cutting-edge techniques? Taking the example of hooks, React has hooks because it was released with a bunch other stuff in addition to the V
208.
▲
by
antris
5y ago
Yes, yes and yes. All of these concepts are variations of what has been done before in a number of ways. Mostly by "FP academics" who "live in fantasy land", until everyone else starts using them too. Transpiling, hooks
209.
▲
by
antris
5y ago
>In my opinion, React made a revolution with hooks and contexts I agree with your overall point 100%, but to be honest nothing in React was / is innovative except for the virtual DOM diffing, but even that is becoming increasingly i
210.
▲
by
antris
5y ago
The point was that relying on marketing messages causes the user having to research themselves what the product is actually good at and what it isn't good at and wasting time because the company isn't upfront the products strength
More ›