We've developed (and keep developing) a rather big application in Backbone.js - it holds up and works perfectly.
We are setting a move from it since it lacks in some areas (no POJOs, no nested, manual binding, lots of extra backbone-mini-libs required), but it does hold well at any scale.
I actually work for people who I consider to be good friends. It's just something I tell people of how this industry works and why it's an awesome job.
This is such a bad idea that I had to comment here:
1. Doesn't scale. You do not want to hand pick text all over your site/web-app.
2. It's not semantic.
3. It's very confusing to new people who looks at your code.
4. If you ever change a single char in that sentence, you will have to re-break it yourself.
Thanks for commenting. It's a great idea from a design and readability perspective. It sounds like you do not like my implementation - you could be right. Here is another way of doing it.. maybe I'll update the post late:
<div class="desktop-breakline"></div>
with the appropriate @media query.
It's obviously not for every situation. But for landing and marketing pages, headlines, etc, I'd go as far as to say it's absolutely essential.
Yeah that works, but it creates a lot of code. <hr> is just 4 characters, and reminds me a lot of <br>, so its easy to read. Once you adapt your perspective to it, it becomes really awesome.
var getJSON = function(callback) {
// did async work to get the JSON data and now I want to call the callback function, but is it there?
callback && callback(data);
};
getJSON(); // See how I don't care about the result
I would be concerned by someone not knowing || - it is used all the time by almost every major project. Not knowing what that one did outside of an if functions tells me 1.) Said person hasn't actually looked at any code other than their own OR 2.) They saw it and didn't care enough to learn what it did. Either way, strike against them.
The && though, I've never used in this context. And I'm not sure if I've seen it out in the wild or not. I knew what it did right away so I imagine if I have seen it before I wouldn't remember.
Well yes, absolutely, but the context was someone being hired for a job and seeing the codebase. Someone that green is, at least in my opinion, not yet qualified to be hired as a programmer.
Handlebars does the same thing with it's "templates". A little irritating when I don't get HTML syntax highlighting since it's in the script tag. I'm sure there's a sublime plugin out there somewhere to fix that.
We are setting a move from it since it lacks in some areas (no POJOs, no nested, manual binding, lots of extra backbone-mini-libs required), but it does hold well at any scale.
I wouldn't direct new comers to backbone.js anymore, new trends with 10x more contributors wins over anything. I wrote about it being the C++ of JS MVC frameworks (http://berzniz.com/post/66372634868/backbonejs-is-the-c-of-j...)