Live data from Hacker News

List.js

listjs.com

61–70 of 90 posts

Re: List.js

#61
Is there a neat collection of all these javascript libraries out there?

I'm sure there are tons of awesome libraries I don't know about.

Re: List.js

#62
post #5

Earlier quoted context omitted.

lol.. hn is on the list.

The screenshot is of an older version of HN. pg, Did the change occur as a result of showing up on Contrast Rebellion? There's a fair amount of merit to downvoted comments having their contrast lowered.

Except that's not a downvoted comment or an old version as far as I can tell; it's the text of a Ask HN/Show HN thing. I never really understood why those are colored gray, either.

Edit: Ok, apparently it's supposed to discourage using HN as a blog (http://news.ycombinator.com/item?id=2807183). I still think it's odd.

Re: List.js

#63

So, one thing I don't quite understand: If I have jQuery on my page (which I imagine now at least 50% of websites do, though that's just a guess) why would I want to add another script that redefines a bunch of jQuery functions? If you had a jQuery compliant version, wouldn't it be smaller, faster, better?

I'm sure you would, but not everybody is using or likes jQuery. A standalone script such as this one is far more valuable.

Not everyone does, but it is used by over 49% of the 10,000 most visited websites making it the most popular JavaScript library in use today.

I'm not saying a standalone is invaluable, but if you're bragging about how it's only 7k, shouldn't there also be a 5k version for people already using the most popular JavaScript library in use today?

http://trends.builtwith.com/javascript/jQuery http://w3techs.com/technologies/overview/javascript_library/...

Re: List.js

#64

We would use such a JS file for large lists. Is there a performant way to use this kind of JS files without loading the full database table into the frontend? I couldn't find anything in the documentation.

I have optimized the script so that only 200 items are visible by default (change with options = { maxVisibleItemsCount: int }) this makes it possible to add large amounts (100 000+) items into the list without problems (except for sorting, thats sloooow if you have large amout of items).

But I am working on a solution for auto-loading data from callbacks or showing more items in list on the fly. But the problem is that most solutions are dependent on how the HTML/CSS around the list is implemented, which is something I want to avoid. Im thinking a lot about it, though.

Re: List.js

#65
post #52

One note--and this applies to every Javascript plugin or library: Your examples need to be online. Without exception. As soon as I have to download and run local examples, honestly I just completely lose interest. That may seem impatient, a snap judgment, arbitrary and irrational. It is in fact all of these but it doesn't matter. There's no reason you can't have your demos online. It makes it super easy for anyone to…

I would say that a working example on the home page should be required.

Re: List.js

#66
post #60

Earlier quoted context omitted.

I totally agree with examples being online but they have an example page listed at the top http://listjs.com/examples.html

The problem is that the focus is on the Download and social sharing buttons. I would just remove all that completely.

[deleted]

Re: List.js

#67
post #60

Earlier quoted context omitted.

I totally agree with examples being online but they have an example page listed at the top http://listjs.com/examples.html

The problem is that the focus is on the Download and social sharing buttons. I would just remove all that completely.

Agreed, I removed all of it!

Re: List.js

#68
post #47

I'd like to see something like this for Backbone collections, e.g. it would take a query on model attributes and generate a subset of the original collection. Then any views (not just lists) tied to this subset would update automatically. In fact I think with _.fiter() you could probably do this in a few lines.

don't want to hijack the thread, but perhaps something like this http://rudasn.github.com/meelo-store ?

Re: List.js

#69
perfect, and just in time. I'll be announcing my own project here on HN in a week or two, and List.js will most certainly be taking a very central role.

So nice work, and thanks.

Re: List.js

#70
post #4

kinda neat...but...you need to read: http://contrastrebellion.com/ and redesign your site...easily the biggest violation of my eyes ever.

My favorite part about the Contrast Rebellion is that Media Temple is listed as one of the bad examples... and then at the bottom:

hosted by (mt) Media Temple

Post reply on HN