Better HN
topnewbestaskshowjobs
Log inSign up

LocalPCGuy

1,031 karma · joined Jul 24, 2011 (15y ago) · 619 submissions

Submissions

comment 11y ago · link · parent

Sure it is a choice. You absolutely need the DVD player...don't upgrade now. Maybe by the time you need it, the functionality will be restored. Regardless, it is a choice you can make. Don't be entitled.

comment 11y ago · link · parent

The article doesn't touch at all on the performance of lodash compared to underscore or even native functions. In many cases it is more performant. So while you do have to decide if the extra library load is balance by the better performance in your specific use case, it should be considered.

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

It's probably better for most sites to minimize the number of DOM lookups by combining jQuery with the rest of your vendor code in a vendors.js (or similar) file. The chance for a cache hit is very low (and getting lower with the trend away from jQuery).

That said, test the 2 approaches and see which works better for your site.

comment 11y ago · link · parent

> How many people can go read a large JS source file and make sense of what is happening quickly? not a lot, in comparison, Go is easy to read,there is no "ninja trick" or metaprogramming stunts that makes code unreadable.

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

Angular is entirely open-source, all of the meeting notes are public (maybe the meetings also, not sure). They actively engage and welcome community participation.

comment 11y ago · link · parent

I would take you to task on the statement that jQuery and Angular are obsolete already. That is an in-the-bubble statement, and nothing to do with what people are really using across our industry.

comment 11y ago · link · parent

Reasons I don't care for Closure (currently using it in a production project):

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

Also interesting to note that > 50% of all developers use Windows. So much for the other comments saying devs only use Macs.

comment 11y ago · link · parent

Not the person you asked the question of, but I have a few reasons:

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

Take a look at P4Merge for doing your merges/diffs - it's a very nice tool for merging. You don't need the entire P4 ecosystem, the merge tool is standalone.

comment 11y ago · link · parent

I completely disagree, that is the kind of thinking that causes OSX only software to be written. I use Windows because that's what I grew up on and as a practical matter, I can buy the same equipment for half the price of a Mac. And I use all maner of "cool tools" like this as much as possible.

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

Basically a prettier experience by default. If you've already customized Conemu to be prettier than default, you may not care, but if not, it is quite a difference. Also add Clink, which gives you a bunch of cmd tools that are defaults on Linux.

comment 11y ago · link · parent

> if even a handful of the people who now use Git had learned both Git and Mercurial and made an informed choice between them. That simply does not appear to be the case. Git got ahead because Linus invented it, and won because of GitHub.

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

Sitepoint has a pretty active forum, as does CSSTricks. There see a few subreddits that can be decent at times, I think /r/frontend and /r/javascript from memory.

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

Better yet, the author should just implement the jQuery test suite, and give a rundown of what passes and what fails.

comment 11y ago · link · parent

You should spend some time watching some of the videos about Angular 2.0 from ng-conf, and you may see that there is much less reason for the opinion you have stated. The core team and some of the other presenters really laid out both a migration path going forward as well as the advantages Angular v2.0 will bring, and why they couldn't just do it on top of Angular 1.x.

comment 11y ago · link · parent

Interesting article, although I feel that some of your time may have been better spent submitting the changes you felt (like for documentation) as pull requests to help make it better, rather than just ripping on it.

comment 11y ago · link · parent

Like stormbrew said, it's all in what you are used to. We currently have both a mercurial and a number of git repos for various projects, and we are seriously considering spending the time to migrate the mercurial repo to git. The context switching from one to the other is really hard, commands don't work the way you expect and things just feel wrong.

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

I'm a huge nerd, and I used to be afraid to admit it. I'm not afraid anymore, I don't think the word has negative connotations anymore for most people.

The definition I prefer: An intelligent but single-minded person obsessed with a nonsocial hobby or pursuit

comment 11y ago · link · parent

The odds approach 1.7%.

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

Not really, the cache-hit benefit is a myth. Too many CDNs, too many versions of jQuery in use, cache's too small...

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

Here is a good article describing why animations done with JS (DOM-based) can be as performant, or even more performant, than CSS animations.

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

On any decently sized site where you expect a user to visit multiple pages, you would load the optimized JPG on the first load, but also detect whether WEBP is supported, and if so, set a flag that will load WEBP for any additional loads.

comment 12y ago · link · parent

I love Multiple Inbox for work emails, although for home I don't. My work email tends to get a bit cluttered during a project, but I try to get back to Inbox 0 when I get a moment to go through things.

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

I'm watching the work done by Steve Gibson with interest into a password replacement called SQRL. It's just a spec and he is developing the proof of concept software, but as far as I know it is not a commercial venture at all.

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

This is an awesome comment. Thank you for posting it.

comment 12y ago · link · parent

This isn't exactly true either. Taking the points line by line:

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

They should not be played with where any of the things you mention may come into play. Period. People need to be responsible, and it really isn't on the magnet companies to ensure that. Their job is to develop a product and then responsibly label and market it in such a way that people are reasonably informed that these are not for kids. Sorry, I don't buy the "well they look like candy, so gotta protect the kids" argument.

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

Except that part of PayPal's business model is saying that you can depend on that callback. This isn't on the business here, it's on PayPal.

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

One of my pet peeves is when people are so "in" the webkit world they don't bother to even list the unprefixed version. I too looked at it in Firefox, and things actually look a bit broken. My guess is adding the unprefixed version would probably fix the majority of the errors I see.

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.

1
161718
21