just_astounded
Re:Zsync: Differential file downloading over HTTP using the rsync algo...
on Tuesday October 17, 2017 @02:17AM (#15489030)
If you like rsync and javascript, I wrote https://github.com/claytongulick/bit-sync which is kinda fun.
Re:JavaScript TC39 implementing hashmark private class fields
on Friday August 04, 2017 @05:30PM (#14932458)
Fancy!
Re:JavaScript TC39 implementing hashmark private class fields
on Friday August 04, 2017 @05:27PM (#14932439)
There are a lot of reasons, honestly, and it's great beer conversation, but from a high level: producing a concrete instance that invokes a constructor function with a shiny pristine 'this' to build on is a pretty great pattern. Add the ability to muck about with clever prototype manipulation, and you have pretty enormous power - you can do everything that classic OOP can do (if that's your thing) and a lot more.
Re:JavaScript TC39 implementing hashmark private class fields
on Thursday August 03, 2017 @11:43PM (#14926168)
While it hasn't changed their minds, I do see the authors of the proposal actively discussing and engaging with the community. That's better than nothing, I suppose.
Re:JavaScript TC39 implementing hashmark private class fields
on Thursday August 03, 2017 @11:37PM (#14926145)
I remember when Crockford released the fantastic book, JavaScript The Good Parts. I disagreed with some of his opinions in that book, like avoiding the use of 'new', but that book - more than almost anything else, helped me educate folks on how to use js well. I used to order copies for every member of my team. I wonder if, instead of a fork, we can just make a case for a subset of js. Take the good new things, and ignore the rest, like a modern "Good Parts".
Re:JavaScript TC39 implementing hashmark private class fields
on Thursday August 03, 2017 @05:46PM (#14924201)
Until wasm has GC, we're not likely to see much in the way of compile-to-web outside of C, C++, or Rust.
Re:JavaScript TC39 implementing hashmark private class fields
on Thursday August 03, 2017 @04:47PM (#14923717)
> So why complain?
So it is your opinion that the community and users shouldn't give feedback on the design and direction of the language they use every day? That's an interesting approach to openness.
Re:JavaScript TC39 implementing hashmark private class fields
on Thursday August 03, 2017 @04:23PM (#14923476)
Yeah, I've only been doing OOP for about 22 years, so I'm pretty new to it.
The point was that the syntactic sugar isn't needed.
The 'class' sugar actually obscures the power of prototypal inheritance, and imho, discourages people from learning it - to their, and the language's, detriment.
Re:JavaScript TC39 implementing hashmark private class fields
on Thursday August 03, 2017 @02:48PM (#14922516)
Don't we already have solutions (closures/WeakMap) for hard encapsulation? Seems like '#' just pollutes the language and isn't really needed.
Re:JavaScript TC39 implementing hashmark private class fields
on Thursday August 03, 2017 @02:46PM (#14922481)
I think the concern is that if you look here: https://github.com/tc39/proposal-private-fields/issues/14 and other places, you'll see this massive push back from the community, yet the proposal is moving forward regardless.
Re:JavaScript TC39 implementing hashmark private class fields
on Thursday August 03, 2017 @02:43PM (#14922459)
Agreed. We already had solutions for inheritance, etc... using prototypes, which are more powerful than classic OOP. Now we're in sort of a mess hybrid thing where issues like this are mostly unsolvable in a clean way.