News for hackers. Stuff that matters.
Re:Folly – Faceboook’s open source C++ library by quicklime on Thursday April 16, 2020 @09:52AM (#22889345)
I would argue that any company with enough JavaScript developers will eventually develop JS libraries too. There's nothing that limits this to just C++. Facebook has folly but also react and a whole set of tools around it.
Re:Folly – Faceboook’s open source C++ library by dehrmann on Thursday April 16, 2020 @12:45PM (#22891192)
Folly is more like an addition to the standard library. For that sort of library, you want parts to be deprecated over time as the language's standard library grows. React has no place in a standard library; it's more of a framework.
Re:Folly – Faceboook’s open source C++ library by justicezyx on Thursday April 16, 2020 @01:18PM (#22891499)
That you simply ignore the fact that C++ projects generally do prefer to not build from any "framework".

Framework in JS, is just similar to a more abstracted library in C++.

In the whole stack (or spectrum) of machine, language, application, C++'s design philosophy naturally encourage things like Folly and Absl. Just like JS encourages React, VUE etc.

Re:Folly – Faceboook’s open source C++ library by BoorishBears on Thursday April 16, 2020 @10:19AM (#22889601)
This is more like if every company reimplemented core-js... worth a little more examination than "large companies write libraries"
Re:Folly – Faceboook’s open source C++ library by otabdeveloper4 on Thursday April 16, 2020 @11:00AM (#22890050)
React attempts the re-implement the browser DOM API and its associated UI conventions. That's way more WTF than folly, which is basically jQuery for C++.
Re:Folly – Faceboook’s open source C++ library by BoorishBears on Thursday April 16, 2020 @12:34PM (#22891080)
React attempts to wrap the browser DOM API and it's conventions in a way that's (for people who use it) easier to reason about, that's kind of like saying Anvil is a WTF because it wraps Vulcan

Also yeah, every reimplementing jquery would be extremely strange and mostly defeat the point of jquery... which is to not have to implement jquery's constructs in Vanilla JS

Re:Folly – Faceboook’s open source C++ library by mattigames on Thursday April 16, 2020 @11:01AM (#22890058)
I don't think I agree, most don't reinvent the common parts: jQuery, lodash, angular or react
Re:Folly – Faceboook’s open source C++ library by quicklime on Thursday April 16, 2020 @11:25AM (#22890353)
Most don't, but Facebook does have its own equivalent of jQuery, lodash and angular. A few other very large tech companies are similar.

Most C++ shops don't have their own equivalent of Folly, they use Boost or Google's Abseil or something else.

Re:Folly – Faceboook’s open source C++ library by Eyas on Thursday April 16, 2020 @11:33AM (#22890442)
I think that's the key point, the scale in which this starts happening is the sizes of the Googles and Facebooks of the world (in C++: Abseil and Folly) but also in Java (at Google: Guava), JavaScript (at Google: closure, Angular/Polymer/Lit/and many others).

So people extrapolating from a ~100 person company or a ~1000 person company using JS might as well think it's about the language, but it's really about the size, I think.

Re:Folly – Faceboook’s open source C++ library by joshuamorton on Thursday April 16, 2020 @01:56PM (#22891849)
Closure isn't so much a standard library as a typescript alternative though, I don't think the comparison works.
Re:Folly – Faceboook’s open source C++ library by Eyas on Thursday April 16, 2020 @11:31AM (#22890418)
Look at Google and the Closure standard library for an example of a company writing a lot of JS that ended up writing it's own "standard library"-like thing.