HNHacker News
TopNewBestAskShowJobs

kentor

466 karma · joined June 8, 2013

https://kentor.me/ https://github.com/kentor
submissionscomments
kentor··on Create React Apps with No Configuration
+1 for team browserify. It's sad that it appears to be way less popular. Webpack is too much of a magical black box for my tastes.
kentor··on Blaze CSS – Open Source Modular CSS Framework
It's unopinionated in the sense that it's opt-in only. But they already have opt-in as the first selling point. Any css framework that gives you component classes (how things look) is opinionated by definition.
kentor··on A Warning About JQuery 3
Wouldn't catch instead of fail be more compliant with es6 promises?
kentor··on The Monaco Code Editor
how does this compare to ace editor[0]?

[0]: https://ace.c9.io/

kentor··on Surge – Static Web Publishing for Front-End Developers
Very nice service and interface. Only issue I've had was when my site went down a couple of times due to issues at DigitalOcean.
kentor··on Visual Studio Code 1.2 released
Same. Deal breaking for me. Pretty hard to use without ci commands.
kentor··on Cheng Lou – On the Spectrum of Abstraction
Very good talk for people who aren't convinced about templates vs react
kentor··on Inferno: A fast, React-like JavaScript library for building UIs
You can ask for research and proof sure, but it should be very intuitive that a delcarative, "re-render everything from props and state with a call to setState()" system is less error prone than the two way binding digest mess that is angular, or manual dom manipulations for that matter.

Reminder: VirtualDOM is just an optimization of the rerender everything problem.

kentor··on The sugar conspiracy: sugar—not fat—is the greatest danger to our health
It's explained in the article. The part about Ancel Keys.
kentor··on The Single Piece of JavaScript on HN
He exposed his auth id
kentor··on Never `import React from ‘react’` again
Nah. Explicit is better than implicit. Also I'd like to avoid being locked-in to webpack.
kentor··on Angular 2 Beta released
Mixing javascript into HTML is even worse. Think about it. That's angular.
kentor··on Why Go Is Not Good (2014)
Javascript is pretty good.
kentor··on How PostCSS became 1.5x faster by changing 2 lines of code
should have used git bisect?
kentor··on Atom 1.1 is out
Same here. Just keeps freezing and I'd have to force quit. Unusable.
kentor··on Ask HN: Which is best React or Angular?
I would recommend Redux for data management. I've been using that at work and it's been great. Their docs are also pretty good.

Maybe a good place to start is with one of those boilerplate repos that have React + build tools already set up: https://github.com/gaearon/react-transform-boilerplate... Then you just add the stack that you want, like redux and react-redux with npm install.

kentor··on Khan Academy React Coding Style Guides
80 character limit, yet uses 4 space indentation instead of 2. My advice: Use 2 space indentation.

I do like the `handleEvent` convention.

kentor··on Ask HN: Which is best React or Angular?
React makes you a better javascript developer, no doubt. The problem I have with other frameworks (Angular, Ember) is that they use a templating language, instead of Just Javascript™. After using React, I never want to touch a templating language ever again. I don't want to learn a DSL to do simple things like loops + filters and conditionals, which I already know with Javascript. I don't want to learn their special scoping rules, something which Javascript has already defined. And I seriously doubt debugging templates is easy.
kentor··on Immutable Data Structures and JavaScript
Same here. People are missing the point.
kentor··on Ask HN: What are the arguments for and against React/Flux over Angular JS?
Any framework that uses a templating language, in other words some form of HTML with enhancements (Angular/Ember), will always be inferior to the virtual DOM approach (React/Mithril). Why? Because the virtual DOM approach embraces javascript and its expressiveness. With templating languages, such as Angular's or Ember's Handlebars, well first I have to learn its DSL, then I always feel constrained in what I am able to do with them. The lack of expressiveness becomes extremely frustrating on big projects. Then there's also the lack of debuggability and tooling.

My view is that HTML is just one way of declaring the DOM, but ultimately HTML or some enhanced version of it is just a string. The virtual DOM is another path to constructing the DOM, but instead of a string it's javascript upfront.

kentor··on React, JSX and ES6: The Weird Parts
Yeah.. I ran into perf problems with that in IE9 in a VM. But that may be the price to pay for a single source of truth.
kentor··on Update React.js state without boilerplate
reinventing? https://facebook.github.io/react/docs/two-way-binding-helper...
kentor··on React, JSX and ES6: The Weird Parts
I love JSX because all it is one big javascript expression. I disagree with the statement

   For some reason, React’s JSX make this unnecessarily complicated by not being able to use if statements inside code blocks.
Using if inside an expression isn't javascript! It would be some shitty templating language, and I'm grateful it didn't turn out that way.
kentor··on Bootstrap 4 alpha
Because PostCSS allows you to write future spec compliant code, unlike sass. It's like writing ES6 then using a transpiler to generate ES5.
kentor··on Show HN: Rucksack – CSS superpowers, built on PostCSS
hopefully some of these gets incorporated into the real specs?
kentor··on React’s JSX: The Other Side of the Coin
JSX is a separate spec. https://facebook.github.io/jsx/

"It's NOT a proposal to incorporate JSX into the ECMAScript spec itself. It's intended to be used by various preprocessors (transpilers) to transform these tokens into standard ECMAScript."

Anyway, I really like this article. It pains me every time I have to deal with angular templating.

kentor··on Patching Rails Performance
No. String#freeze exists for a reason.
kentor··on Patching Rails Performance
I've stopped doing ruby dev, but boy do I not miss mutable strings. Javascript/Python's got that part right. String interning is a godsend.
kentor··on Browserify vs. Webpack – Configuration isn't evil
The second syllable is stressed for commodify.
kentor··on Create a character voting app using React, Node.js, MongoDB and Socket.io
Here's how I would inline it, and I encourage people to do it this way. Intermediate variable is not necessary. Ternary is not necessary since false evaluates to null in jsx.

  render() {
   return (
     <div className='card'>
       {this.props.delta > 0 &&
         <strong className={this.props.delta > 0 ? 'text-success' : 'text-danger'}>
           {this.props.delta}
         </strong>
       }
       {this.props.title}
     </div>
   );
  }
← PreviousPage 3 of 4Next →