BackboneConf 2013

Cómo utilizamos Backbone en Disqus

Ben Vinegar  · 

Presentación

HTML (pincha para descargar)

Vídeo

Transcripción

Extracto de la transcripción automática del vídeo realizada por YouTube.

I I don't think to think I can top that introduction is so i gave up right here Marvin it's good um huh ok so this talk is a backbone discuss a post-mortem um basically I just want to talk about a project we did last year in which we converted the

discuss application to use backbone and not just that we did like a complete kind of like client-side makeup-free architecture so I can talk about that and explain what discuss is why we did it and all that um I just to start off just one that you know some

people some people don't like the word post-mortem because its death and it's like I'm doing an autopsy or something but technically speaking in the dictionary its analysis or discussion of an event after it's over just want to get that of

the way for people are upset about it so just little bit about me earlier this year at least a book with my co-author Anton Cody up for Jasmine guy I don't have a guy thing so I'm just been bleep out of this book and it's about building through

pretty Bridget's great JavaScript code that goes on other people's websites how to make it you know not break and stuff like that is it bring a book you should check out the Amazon reviews because I'm very insightful and they make a bit you to

purchase the book and there's something other some there's some legit people out there have said some nice things rekha Murphy was a speaker last year I understand so you know just based on 45 pages I think that's pretty good she recanted everything

60 pages in so I'm under really too much to talk about the book although definitely some of the stuff is related so I were to discuss and that's discuss like discussion not discus I'd say it's about a 50-50 split that people say one of the

other and once you hear discussed you're like oh that makes sense what and I think of that don't worry about it nanny know so what we do is we do like a conversation platform embedded commenting thing we're all over the web a lot of big sites a

lot of small sites lately I'm kind of more into up about some of the like non traditional uses of discuss that really get me excited this is we're actually on the Redis documentation so this is just a page it's the expire command and it's just

you know there's a legitimate conversation taking place at the bottom about how to use the command and people participating and I think that's pretty cool so how discuss actually gets on your page you don't know is it's it's a third-party

script you put this snippet kind of like a Google Analytics snippet that everybody's seen you put on your web page you sign up on our website and you get comments on your website so just you know quick recap a lot of big sites as well you showed the reddest

documentation but we also your comments for CNN wired IGN Rolling Stone NPR it's a big list also the Ramayana rails blog Ruby doctoral work stuff like that a lot of personal blogs etc just some public and terror obligatory fancy stats we do about a million

uniques a month right now that's like Google's measure of unique which would put us in like the top ten sites over all of we were just a destination sites that's kind of crazy we get almost a million come today but that's just comments we also

have a lot of other events that are taking place there's boats there's favoriting things and sharing things there's a lot of stuff that's happening and we also have a real-time service that that's new and it was part of what we built in

the last year and on any normal day we got about three million active connections and then my last set is that there's 16 of us that are building us which i think is pretty cool um apparently 18 today I got the email cuz we hired a bunch of people and

then lastly I just thought this was neat because I'm here discuss was a YC 07 company at the time it was a Cambridge so probably just go with blocks from here I actually just learned that a couple months ago so it's kind of neat all right so that that's

like discuss today that's kind of what we're doing today but I want to I want to bring you back in the time machine I'm going to sit at the time machine back one year that's the most interesting time you would go to if you had a time machine

um so are two years a year and a half so in 2011 discusses how it's a little little different we were trying to this like software-as-a-service thing up saas not SAS s we could be both Adeline and it was the kind of thing like you went to our website we

had a free service but you go to the website and then be that familiar like choose a plan twenty dollars a month fifty dollars a month hundred dollars a month and depending on you gotta access to different stuff analytics of painting thing a template editor

and also that the application is really customizable like anybody just write CSS target some stuff make it look different it was like it was like your comments and that worked really well and we were getting really big really fast and a lot of people were

using us they're pretty happy but things started kind of like snowballing and getting out of control for us for starters when everybody can customize discuss it starts to look different everywhere and then people don't really know what discusses anymore

they take off her it could be as simple as just taking off our branding or just completely eliminating a feature or whatever people depending on the community went to some people like I hate discuss because in some cases they just completely modify how it

worked and then somebody else I love it it's kind of irritating it was difficult prestigious new features because people were taking parts out and do whatever like so if we want introducing in future we couldn't always depend on what was there we kind

of worked around this idea that people were just kind of taking stuff out and we do a lot of ifs and buts really frustrating it was brittle was buggy we had some security privacy issues so discover those a little bit more so just give an idea of how like customization

wise you know what didn't discuss look like here's a screenshot from the MLB comments that use Disqus you notice the word discuss doesn't appear anywhere that's just one example this is people.com i think i think it's supposed to say powered

by disqus in the corner but it's like a broken so nobody knows and and it looks completely different there and then this is AV Club they've taken some stuff away in the header and it's different as well kind of annoying sigh just gives an idea

like of how it look differently so I talk about introducing new stuff we were rendering elements for rendering comments on the Dom we swing all the publishers because I guess when we got started a lot of people use Disqus are like web publishers exceedance

and stuff that's just like our internal you know talk a publisher website person ucss to hide stuff and even if even you know they couldn't target stuff with CSS you know who are getting like super clever with CSS they could always just remove it with

JavaScript so you know and you can do stuff to kind of like you know play this game but anybody it's on your dog you can't reverse it you can do whatever you want with it it's really hard to stop people to do that so Steve an idea we've got

to like these CSS nuclear arms races where we like really like over specified things with we use important tags everywhere we use double ID selectors cuz nobody uses double IDs so and then it would be like and then something to be like fine we'll have

were in these triple IDs and then it was just you know it's getting really silly and that's how easy it was to just you know take stuff up and I obviously some of the stuff we wanted people to customize but then we kind of had likes this global stuff

that we didn't want anybody to change from on everybody like we won the login thing to look the same everywhere so you knew how to log out or how to login that's the stuff that people would change it was really irritating so lastly um honestly I'm

[ ... ]

Nota: se han omitido las otras 4.026 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.