quadratini | 10 years ago | on: Reddit bans a top 10 subreddit with over 150k subscribers
quadratini's comments
quadratini | 11 years ago | on: AngularJS Cheat Sheet [pdf]
quadratini | 11 years ago | on: The new MacBook
quadratini | 11 years ago | on: The new MacBook
quadratini | 11 years ago | on: “Implement text editor DOM updates manually instead of via React”
quadratini | 11 years ago | on: A regular expression to check for prime numbers
quadratini | 11 years ago | on: A regular expression to check for prime numbers
quadratini | 11 years ago | on: GitHut – Programming Languages on GitHub
quadratini | 11 years ago | on: Ask HN: What's the problem with AngularJS?
React's abstraction also leaks, which is evident when it doesn't automatically know to update itself so you have to call `setState`. But I'd choose this set of leaky abstractions over Angular's. Plus it makes it easy to spot all the places where the UI can change which is a huge plus for debugging. The beauty of React's set of abstractions is that it doesn't force you to do things a certain way (use $http, use $timeout) or use observables which embraces mutability.
Also to further my point that Angular (and any other framework that provides templating) doesn't embrace javascript, every time you use `ng-repeat` you're not doing javascript. You can't put a debugger in the middle of the loop to check the scope. You can't use Immutable-js because `ng-repeat` loves arrays. (Ok you can convert the immutable to an array before hand, but then when it changes you'd have to incur an expensive rerender of the list) You can't use static analysis tools.
quadratini | 11 years ago | on: Atom now using Io.js
quadratini | 11 years ago | on: Ask HN: What's the problem with AngularJS?
- You have to do everything the "angular way". Timeouts, intervals, http, modules, angular.toJson. It's a pain. Why can't I use the regular setTimeout, or ES6 or Common JS modules, or JSON.stringify?
- You end up having to dig inside the source code to debug issues with Angular.
- You basically HAVE to understand the digest cycle.
- Its way of doing templating is crippled in the sense that it's not as expressive as javascript.
- Honestly I think it's for people who doesn't like javascript and its ecosystem (npm).
React isn't alike angular because that's the point. React embraces javascript whereas Angular doesn't. If you want a http library use one of your choosing from npm, like axios. You want to use Common JS modules? Go ahead.
quadratini | 11 years ago | on: Replace CoffeeScript with ES6
quadratini | 11 years ago | on: Replace CoffeeScript with ES6
quadratini | 11 years ago | on: Lodash v3.0.0
quadratini | 11 years ago | on: Angular is for applications, not JavaScript
quadratini | 11 years ago | on: JQuery vs. Reactjs Thinking
quadratini | 11 years ago | on: The 5K Retina iMac’s screen runs at 60Hz at 5K resolution
quadratini | 11 years ago | on: Ember.js 1.8.0 and 1.9 beta released
quadratini | 11 years ago | on: The Introverted Face
quadratini | 12 years ago | on: 4 – An Easier Version of 2048