Is lack of horizontal padding part of the KDE aesthetic?
HN user
funkiee
JS Dev
http://github.com/mfunkie
There's something to be said for being in close proximity with a lot of other people working in the same profession. I came from working in tech for 8 years before moving to Silicon Valley and it's a world of difference.
In other words, Country Music will always exist outside of Nashville, but if you make Country music, Nashville is the place to be.
More on that point. The reason you cannot use if/else within JSX is because the statement needs to evaluate to an expression. If you really need to use if/else logic embedded, a ternary operator would work just fine.
return ( <nav> <Home /> { loggedIn ? <LogoutButton /> : <LoginButton /> } </nav> );
I haven't had to pull in jQuery for other things with usage of react-bootstrap, as react-bootstrap handles all of the interactions that bootstrap provides. Also, if file size is getting you down, and you don't need all of react-bootstrap, you can simply require the individual components you need.
e.g: require('react-bootstrap/lib/Modal')
If you can create a build process that outputs it's starting point to index.ios.js, I don't see why not.
After digging around the store and url jumping, it looks like Google no longer sells the Nexus 5 nor 7 anymore. Interesting...
I strongly feel that React Native is going to come out right around F8, but cannot prove it other than that the React team seems to be speaking there and this comment on twitter https://twitter.com/reactjs/status/573872611853123584
I'm getting pretty excited to start working with React Native either way.
Ran both through the Timeline in Chrome. It seems like there is a lot of time spent on scripting for Ember's version. In the underscore version you're consistently hitting render, but at least it's much closer to 30fps than Ember is in this scenario.
The next sentence in your quote has some importance too, "Remember that the key only has to be unique among its siblings, not globally unique."
I agree there could be a little more clarity in that block of text, but I think the trade-offs section describes it well. Additionally, if there are any nodes in the tree that have a chance of being the same item between renders, you're going to benefit immensely from implementing a `shouldComponentUpdate` in your `SearchResultsItem.jsx` file.
React certainly doesn't win on every performance level, and if you try to compete on performance you're eventually going to lose. A careful developer could implement this list with no framework at all and have performance that beats both.
In the end, it's more about the mental model that best fits you and your team. I find the composite UI of React where I am building every component of other components in Javascript without a templating language to get in my way to be best suited to me.
If Marko works well for your team and you find it easy to get new developers on board and contributing code then that's awesome, keep up the good work.
It's as intended. If the ID in a list of 100 changes, and that ID is the key, React is going to assume the tree is different during reconciliation. If you were to use an index, like 0, on pagination the key is still 0 and as such the DOM nodes will be reused. http://facebook.github.io/react/docs/reconciliation.html See #2 in the Trade-offs section.
Not necessarily addressing the speed portion, but if you're going to give a key to a repeated item in React, it is best to use the index instead of a unique identifier(if the overall DOM structure does not change much between renders) so that React does not destroy and recreate each item on tree change.
I think the Front-End community just happens to collaborate a lot more than other communities and so the ideas get shared at a faster pace. Yes, it leads to framework churn, but it's mostly because we're learning from each other's ideas. If the other side of the coin is stagnation where people learn the dogma of a framework and not the reason behind it, I'm all for framework churn.
Find something that works for your team and stick with it. No one is making you use the latest framework or library out there.
I've ridden taxis and Ubers in Charleston. The Ubers were far safer drivers.
Charleston resident here, our politics are so backwards in this regard. We're also considering making new bars close at midnight to make downtown 'more attractive to tech companies'.
At least local lawyers have stated that they're willing to take the case of any uber driver caught by this for free.
Angular Bootstrap's Typeahead directive does this job pretty well, although we've had to do some template overriding and funky directives to get the functionality we needed (e.g. switching the results to a different set by clicking an item in the dropdown). Glad to see more alternatives being made out there. Nice job!
I really like the simplicity of the 'How it works' section and I will probably steal the concept for explaining parts of our build to new employees.
Visiting this page on an iPad causes infinite font resizing and page layout changes to occur.
We've got some particularly complicated html RegEx for Email parsing at our company. We manually write new ones for new email layouts as we get them. I'd be interested in any information on how you're solving the issue, as I love how you've tackled it at least on the UI end.
I know Facebook using the name without communicating first feels wrong, but this is just petty and won't succeed.
It really is easy to end up with over 1000 watches in a page if you use any sort of list of length 100 or greater with complex data. Directives like bindonce help cut down on the watches, but it still isn't an easy problem to deal with.
"Vintage: A block caret is now used"
Christmas came early... I've been waiting for this for so long.
I think I read it on a Hacker News comment, but to put it simply, You feel bad reading facebook because you're comparing someone's highlight reel to your behind the scenes footage.
Once you realize that, you can just get over it.
I can't agree with the statement, "It's a laptop!". It's almost impossible to use in your lap comfortably the way you would a laptop.
If you do any sort of Windows administration, PowerShell is a godsend.
The .Net Platform is a massive enterprise mainstay.
How is that really different toolchain-wise from having to compile source code in a language such as Java?
I'd recommend just doing vimtutor every day for a couple of weeks to get some muscle memory in.
1Password for Mac and iOS, because remembering 50 passwords sucks and having only 5 leaves you really exposed when something like PSN gets compromised.
There's this interesting narrative that develops from time to time in Hacker News. Maybe it's just observer bias, but I had never heard of requests for Python until I read an article on HN about scraping, which in turn got me interested in Python, and now a week later a major release of Requests happens with a top story on HN.
Be careful not to become too good in an area you don't like.