News for hackers. Stuff that matters.

delambo

Re:Explaining React's license on Saturday August 19, 2017 @10:46AM (#15053643)
The stats don't really suggest that vue is rapidly climbing in popularity:

https://npm-stat.com/charts.html?package=react&package=vue&p...

While popularity might not have anything to do with your use case, it still means a lot in terms of ecosystem, tooling, training, support and documentation.

Re:Choosing Ember over React in 2016 on Thursday November 17, 2016 @09:23AM (#12977639)
In the React ecosystem, there are several really good tools for managing build, deploy, and test harnesses. See kyt [1] for example, or the list of Create React App Alternatives [2].

[1] https://github.com/NYTimes/kyt [2] https://github.com/facebookincubator/create-react-app#altern...

Re:JavaScript web apps considered valuable on Thursday January 21, 2016 @10:30AM (#10945803)
I think gmail was built using closure which is JavaScript. https://developers.google.com/closure/faq?hl=en#gwt
Re:The New York Times Makes 17k Recipes Available Online on Sunday August 23, 2015 @08:47PM (#10107351)
Again, thanks for the feedback. Right now, I'm literally putting together a pull request to improve this functionality.

Some cards do have links inside of them - they may have external source links or sticker links, and fortunately we just removed author links which will make this easier. I'm wrapping inner elements in hyperlinks which should fix everything that you mentioned.

As I mentioned, for the moment, you can use the card titles which are wrapped in hyperlinks.

Re:The New York Times Makes 17k Recipes Available Online on Sunday August 23, 2015 @07:05PM (#10107080)
I assume you are talking about the recipe cards not being links? It's tough to build a linkable card with links inside the card without using JavaScript. The actual html link is the title of the recipe so you should be able to use that if you really intend to not use JavaScript.

I'm in the process of putting together a pull request to make sure the link underline shows on hover (that worked at one point!) and to get middle-click working on the card for users that do use JavaScript.

Thanks for your feedback!

The best way to organize a mix in iTunes is to create a playlist with all of the songs, make sure the album title is the same for each artist, then select all of the songs and open the Info menu (CMD-I) and mark them as a Compilation. Marking them as a compilation will organize them on the file system together under the "iTunes/.../Music/Compilations/" directory, which hopefully will make migrating off of iTunes in the future an easier thing to do.
Re:BehindTheSite: A log of web technology stacks on Saturday February 28, 2015 @05:12PM (#9125241)
To that point, it's interesting how many claim that Backbone is yesterday's tech and that we are now 2 or 3 iterations of javascript frameworks past Backbone, yet most of these large sites are still using Backbone! It's possible that a lot of the sites would use something other than Backbone if they were built today, but it's clear that Backbone will be around for some time.
Re:The LeBron James of Programmers on Thursday February 27, 2014 @08:01AM (#7311859)
Even though Lebron James is the best player in the world, why is there a good chance that the Heat won't win the championship this year?

Also, could a team of Lebron James level players win a championship?

Re:Announcing TypeScript 0.9.1 on Wednesday August 07, 2013 @09:56AM (#6172814)
I think the greatest advantage to static typing is the IDE support. Compile-time error checking is overrated, and in my several years of writing JavaScript, I've never seen a bug in production that could have been prevented with static analysis. That might be because I know the language well, but it's not a feature I need.

"What's true of all bugs? They passed a type checker and they passed the tests!" - Rich Hickey

Re:Why does Angular.js rock? on Sunday August 04, 2013 @09:18AM (#6155547)
Another consideration is the projects that have been built with each framework. That can help you gauge popularity, where the jobs are, where you could get a job (or potentially poach someone from), and the capabilities of each library/framework:

http://backbonejs.org/#examples

http://emberjs.com/ember-users/

http://builtwith.angularjs.org/

Re:Can you help me understand the benefit of require.js? on Monday July 22, 2013 @03:31PM (#6085968)
Here's a trivial example:

I have a Modal class which depends on some utilities in a Utility class, but the Utility class depends on the Modal class because there are some utilities that show Modals.

This is not a broken architecture and is handled just fine by other programming languages/dependency handlers.

Re:Can you help me understand the benefit of require.js? on Monday July 22, 2013 @09:19AM (#6083419)
I used to think the same thing, but then I ran into the problem where my large app had circular dependencies which require.js/AMD does not support. Naturally, AMD supporters blame you and your project's architecture, but it is not uncommon to have some circular dependencies in a large app.

The work-around is to use require.js in commonjs style or to add hacks into your architecture. Not fun.

Re:We Are Pioneers: the Journey to Ember.js on Wednesday July 03, 2013 @09:23AM (#5984306)
Agreed. I was laughing out loud at some of the analogies, but the author does make some good points -- it's really early in the client side framework evolution.
Re:Reddit apologises for Boston "Witch Hunt" on Tuesday April 23, 2013 @08:35AM (#5594652)
Reddit is the unfiltered internet. I don't go there to get trustworthy news. The problem is any news source that quotes straight from Reddit - they should know better, and verify any leads before reporting.

The internet is raw, and people need to put their critical thinking hats on when digesting unfiltered data, speculation, and analysis.

Re:Google Trends: Javascript Frameworks on Thursday April 18, 2013 @03:47PM (#5572664)
I often search on "backbone" - docs are the first result. Same with "angular" and "ember".
Re:Using AngularJS at Localytics on Thursday April 11, 2013 @09:46AM (#5531895)
Stickit author, here. To be clear, stickit will not make your "zombie views grow fatter" or contribute to any memory problems. In fact, stickit cleans up all of its model and view bindings automatically on view.remove(), and provides an optional api for manual cleaning view.unstickit().

The blog author's problem was a brief bug that was introduced and fixed between releases for the rare use case when a data-bound view is re-rendered. We fixed this problem and the author confirmed that the patch was "working great."

https://github.com/NYTimes/backbone.stickit/issues/66

So even though the problem was fixed for the blog author before he moved onto angular, he still claims that stickit causes memory problems. I guess a false claim like that makes the story of moving to a new framework more entertaining.

Another claim from the blog author is that stickit makes it hard to use third-party plugins like Chosen. Around the same time he filed the github issue, we were finishing and getting ready to release "handlers" and a new "initialize" binding which give you the ability to create global handlers for setting these kinds of bindings up. More on handlers here:

http://nytimes.github.io/backbone.stickit/#custom-handlers

... and an example of setting up a global handler for Chosen:

http://jsfiddle.net/px6UP/28/

Re:"Getting started with Ember.Js is easy." - No it isn't on Wednesday March 20, 2013 @09:35AM (#5407121)
Trek must have been a perl monk, back in the day.
Re:How Valve hires, how it fires, and how much it pays on Tuesday February 26, 2013 @04:45PM (#5288873)
I know this is slightly off-topic, but I've asked this before in comments and at the following submission, but I never get any replies:

http://news.ycombinator.com/item?id=5182145

Is there any other companies like Valve and Github that are bossless?

Re:Vim After 11 Years on Tuesday February 19, 2013 @02:50PM (#5246612)
Recently, I made the switch to vim from Sublime Text and I have installed some of the same tools. So far, I've committed to vim, but I have found that the plugins for file searching, linting, etc. are easier to use, more intuitive, and less painful to setup in Sublime Text.
Re:How Github Works on Monday February 18, 2013 @06:30PM (#5241555)
I asked this before, but does anyone know of other companies like github?

http://news.ycombinator.com/item?id=5182145

Re:Ember.js or Angular.js? on Saturday February 16, 2013 @05:10PM (#5233236)
Hold on it gets better (Angular Docs):

"To solve the issue of lack of isolation, the directive declares a new isolated scope. An isolated scope does not prototypically inherit from the child scope, and therefore we don't have to worry about accidentally clobbering any properties.

However isolated scope creates a new problem: if a transcluded DOM is a child of the widget isolated scope then it will not be able to bind to anything. For this reason the transcluded scope is a child of the original scope, before the widget created an isolated scope for its local variables. This makes the transcluded and widget isolated scope siblings."

Data-binding and re-usability should not be that hard.

Re:Ember.js 1.0 RC1 released on Saturday February 16, 2013 @12:54PM (#5232310)
> for 95% of the use cases, you are better off sticking with jQuery or ...

This is terrible advice. If you can't tell the difference between a procedural app full of jQuery callbacks and a an app modularized with Backbone objects, then I don't think you have had real experience writing apps with either of these libraries.

> I think the current scrum fashion dampens many impulses from programmers.

Wow, that gets at the very reason why I asked this question! Ever since we moved to scrum, I have felt less creative and more stressed. I think I do better in a less hyper-task oriented and hierarchical structure.

Thanks for the reply.

Older »