1,031 karma · joined Jul 24, 2011 (15y ago) · 619 submissions
comment 11y ago · link · parent
Also, there is the simple fact a lot of people like the abstraction compared to the native solution - it is often simpler to use and remember.
comment 11y ago · link · parent
That said, test the 2 approaches and see which works better for your site.
comment 11y ago · link · parent
If written correctly, neither of those questions should be an issue.
1) JS devs shouldn't have "large" JavaScript source files, like most good programs, they should be broken into small, concise pieces.
2) JS devs shouldn't use "ninja tricks" or other BS, they should write for the next person that reads the code, again, like any language.
Yes, a lot of people still write bad JavaScript, but that is on them, not the language. It is pretty simple to write bery readable JavaScript if you so choose.
comment 11y ago · link · parent
1) Depends on both Java and Python. Ugh 2) It's big, and has to be setup anywhere you are doing builds (i.e. continuous deployment) 3) Hard to setup, understand, compose tasks (none of that is impossible to figure out, just harder than many of the alternatives)
The article made a minor mistake about Angular - Google is using Angular in over 1,400 internal and production apps (I know, the article just mentioned production, but the number should signify how all-in on Angular Google really is). Oh, and fun side point - they are using the master branch version of Angular (1.x) - the Angular team needs to run not only all of their Angular tests, but also all of the tests for all of the projects that use Angular to ensure they didn't cause any regressions.
Overall, Closure is that library you really want to love, but it just rubs you the wrong way over and over again until you decide it isn't for you. (in my experience)
comment 11y ago · link · parent
1) Hardware - cost is 1/2 Mac hardware, and I can upgrade cheaper as well. For example, my ultralight notebook came with 4GB Ram and a 128GB SSD. For ~$1000 - Mac equivalent was ~$1400 at the time, with no option to match the screen (1080p). Since then, I've upgraded but the SSD and Ram for another $300 - would have cost almost $700 to do the equivalent upgrade on the Mac and it would have been at the time of purchase.
2) I've grown up using Windows, CMD, batch files, etc. I know my way (a little) around the registry, services, etc. I'd have to relearn all of that on the Mac.
3) I hate all the program menus being at the top of the screen. I have a Mac on my desk at work...and it just drives me nuts. I'm sure I'd adapt, but it bugs me.
I could find more, but I've come to admit that I'm just a Windows user. If I need Linux or something, I just install a VM and go to town.
comment 11y ago · link · parent
Pissing on devs who use Windows may have been somewhat valid a few years ago, but times are changing, and people use it even if they aren't doing VS/Eclipse work. (FWIW, I hate Eclipse. However, Visual Studio is a very good IDE, if you like IDEs)
comment 11y ago · link · parent
I think you also underestimate the developer community (or may I overestimate them.) Regardless, my anecdotal evidence is that I did try HG and Git, and while I preferred HG when I first started evaluating them, as soon as I found out how to use Git branches, it was all over for HG. At work we currently inherited a project in HG and everyone that has to work on it complains about it. Some know Git, some are .Net or even old school CVS/SVN people (our VCS migration took a bit longer than it should have), but it doesn't matter. HG = hard to use for them, whereas Git make sense after getting over the initial hurdles. I see the same kind of path I took, where at first they are like, oh, Hg isn't bad, and then after using both, choosing Git as their preference.
comment 11y ago · link · parent
The other thing to look into is local meetups that you can go to, while it won't be a forum, you may find a community that can help you grow as you learn.
comment 11y ago · link · parent
comment 11y ago · link · parent
Personally, I much prefer git, and I researched both before I used either. But I wouldn't fault someone for preferring mercurial, particularly if part of the reason was that they were very comfortable using it.
comment 11y ago · link · parent
http://www.i-technology.net/2013/11/the-myth-of-cdn.html
more data: http://www.stevesouders.com/blog/2013/03/18/http-archive-jqu...
comment 11y ago · link · parent
So ..using jQuery via a CDN, depending on which you use you have a 1 in 119, or 1 in 833 chance of the user having a cached copy. http://www.i-technology.net/2013/11/the-myth-of-cdn.html
more data: http://www.stevesouders.com/blog/2013/03/18/http-archive-jqu...
There are valid reasons to use a CDN (get the scripts closer to the end user, offload the data transfer costs to the CDN provider, etc) but it isn't due to the potential for a cache hit.
comment 12y ago · link · parent
http://davidwalsh.name/css-js-animation
and this one (about GSAP, not Velocity)
http://css-tricks.com/myth-busting-css-animations-vs-javascr...
Choose the right tool for the job. Sure, for simple things, CSS transitions are likely the right tool. For more complex animations where you need more control over them, frameworks like these are invaluable.
comment 12y ago · link · parent
My Multiple Inboxes are: Unread Inbox, Starred, Action/WaitingOn labels, Drafts and Unread (non-inbox). I had to add the last one as I was missing emails I hadn't read but had setup filters for. This deprioritizes them, but I still see them, and I can easily just mark them as read as they generally don't require much attention.
The other tip I'd say is learning the basics of keyboard shortcuts - I can open, assess and archive/delete an email very quickly because I use e/# (archive/delete respectively). I can burn through the unimportant emails very quickly that way.
comment 12y ago · link · parent
https://www.grc.com/sqrl/sqrl.htm
Abstract: The SQRL system (pronounced “squirrel”) revolutionizes web site login and authentication. It eliminates many problems inherent in traditional login techniques.
comment 12y ago · link · parent
Angular has a version of jQuery embedded, and replaces that with the full version if it is included in the page. AngularUI was not there to reduce dependencies on jQuery (UI, which is different than jQuery Core), but rather to provide the UI patterns in Angular directives so that developers didn't need to write their own over and over. That said, if you are new to Angular, my recommendation is to try not to use jQuery as that will force you to consider the "Angular" way of doing things rather than the "jQuery" way.
The guy who wrote You Might Not Need jQuery has also said that he was looking more at framework developers who don't need to make jQuery a dependency, not the average joe building a website. RWaldron, a jQuery contributor, put together a list of quite a few of the bugs that jQuery fixes for browser compatibility.
Don't get me wrong, Vanilla JS is great, and I love the site. But there are quite valid reasons for using jQuery and many of them are just as valid now as they were in the past. You can write "good" jQuery, it doesn't have to be "js soup".
comment 12y ago · link · parent
The witch hunt for these things is ridiculous, and does not stand up to scrutiny - Dogs are statistically over 120 times more dangerous than Buckyball magnet sets. Should we ban dogs? This is simply a case of someone championing their cause because they can, not because it's the right thing to do.
comment 12y ago · link · parent
Now, I'd agree if you said that PayPal isn't suitable for a business to use, it should be relegated to the realm of individuals and small businesses who don't know better, but that's different than what you seem to be saying.
comment 12y ago · link · parent
I won't go so far as to say stop using prefixes, but ALWAYS include the unprefixed version last in the CSS stack. It's so easy with Sass also.