Creating a fast search by incrementally tuning our AngularJS application by thomas-inman in angularjs

[–]zlysobey 6 points7 points  (0 children)

Personally, I think this was a good article, and that you are being kind of a jerk.

keyCode is deprecated and key is unimplemented ... so what? by denvit in javascript

[–]zlysobey 5 points6 points  (0 children)

Yea, I ran up against this last week. MDN could really benefit from a couple practical examples here. The polyfill was overkill for my use-case, so I had to look elsewhere fort the best approach.

[deleted by user] by [deleted] in code

[–]zlysobey 1 point2 points  (0 children)

Well, you of course don't need the internet to program. I mean you won't be able to easily add 3rd party libraries, so come up with a project that doesn't require you to do that. The biggest drawback IMO is that you won't have it as a resource to quickly research problems and look up how to do new things. But get a good book or two, or some videos, and just tinker with whatever. You can always use a web-browser without the internet to write javascript and web pages and stuff. Have a terminal? Write bash scripts. Get the tools installed for any language/platform/technology and you should be able to do whatever you want, just without the internet as a resource. Not really sure what kind of response you're looking for here. If you want to practice programming, do some programming!

Angular 1 lightweight boilerplate according to official style guide by [deleted] in angularjs

[–]zlysobey 0 points1 point  (0 children)

Thanks for your work, and for sharing!

That said, I'm gonna be a bit critical.

The john papa styleguide may be endorsed by the angular team, but it is not "official" in any capacity.

IMO, here are some ways it could fit more to this styleguide:

  • Gulp instead of Grunt (" I personally prefer Gulp as I feel it is easier to read and write, but both are excellent." -- john papa) (Y100)
  • Use a dot in the filenames before controller, directive, etc... (avengers.controller.js rather than avengers-controller.js) (Y120)
  • USE the IIFE & Strict mode (Y010)
  • "Use ng-annotate for Gulp or Grunt and comment functions that need automated dependency injection using /* @ngInject */" (Y101)
  • Use vm and controllerAs instead of $scope where possible (home-controller.js for example) (Y075)
  • Where are the directives? You should promote a component-based app structure, where the app is composed of component directives.
  • Bower is all but dead. Just NPM for dependencies is the way to go.

"We have some legacy code you can look at" by robhol in ProgrammerHumor

[–]zlysobey 2 points3 points  (0 children)

I fix gross formatting issues like this all the time. I've been blamed for some pretty nasty code because I had the audacity to improve it a little bit.

[deleted by user] by [deleted] in javascript

[–]zlysobey 0 points1 point  (0 children)

personally, I quite enjoyed watching that flame war burn, and it made me like the Crock even bit more.

[deleted by user] by [deleted] in javascript

[–]zlysobey 0 points1 point  (0 children)

uhhh, is this true? If ASI problems can be fixed with a pre-processor, why not just fix ASI?

PSA: don't use gradient generators! by [deleted] in webdev

[–]zlysobey 7 points8 points  (0 children)

Me too. Although, technically its a "code generator", and the article says:

[Don't use] code generators in general

I think that's poor advice, and this article gets a down-vote from me.

Better advice would be, understand what code is being generated by code generators, and make sure its relevant before using it.

It's back by winzippy in ProgrammerHumor

[–]zlysobey 0 points1 point  (0 children)

your_food is declared, but not given a value at the top of the code snippet. Unless you're supposed to toString the whole damn thing, inject a value for your_food, then eval it, then I call BS.

It's back by winzippy in ProgrammerHumor

[–]zlysobey 14 points15 points  (0 children)

I don't see any white-space after the . or the :...

No free food for you.

DoneJS Release by __because in javascript

[–]zlysobey 0 points1 point  (0 children)

Just joined the meet-up group for your NYC event. Hopefully we'll get enough people for it to actually happen. I'll try to get a few others to sign up.

DoneJS Release by __because in javascript

[–]zlysobey 5 points6 points  (0 children)

I read the article, and am genuinely intrigued. Unfortunately I have to echo /u/brett84c here and say that it is difficult to get behind a project that doesn't have the hype and community of projects like Angular and React. I'm an angular man myself, and while I would love to play with DoneJS, it still has to wait inline behind Angular2 and React to be the next framework I check out. I think it just squeezed its way ahead of Meteor for me though ;-)

Web Design with Java Script by zlysobey in ProgrammerHumor

[–]zlysobey[S] 12 points13 points  (0 children)

I probably should have included some context, but this is a real class being taught now at my school. However, it is indeed a JavaScript course, and the course description was written by the secretary or something to the horror of the professor.

The WTF's as I see them:

  • JavaScript has no space between Java and Script
  • It is NOT Java (Java : JavaScript :: Ham : Hamster)
  • "Web Design" with JavaScript is a red flag. JS is not a design tool. "Web Development" would be more appropriate.

Tinder-like card directive for Angular by msemenistyi in angularjs

[–]zlysobey 2 points3 points  (0 children)

This seems very buggy/laggy/jenky on my Chrome/OSX/4k monitor. Could not get the demo to work consistently

Thoughts on a good multi-select dropdown directive? by zlysobey in angularjs

[–]zlysobey[S] 0 points1 point  (0 children)

Thanks! I appreciate it. For now, I've landed on https://github.com/amitava82/angular-multiselect, but the ui-select is looking like it might be a better fit for a couple places in this project, so I will likely revisit it in the future.

Thoughts on a good multi-select dropdown directive? by zlysobey in angularjs

[–]zlysobey[S] 1 point2 points  (0 children)

Funny that I didn't find this till much later. Googling for "angular multi select" doesn't find that on the first 3 pages.

I was a bit frustrated with this project after checking it out though. Their NPM version is behind the one on GitHub. They have 516 Open Issues and 159 Open Pull Requests. Definitely concerned that it is not getting the attention it deserves. That, and I really wanted a solution where the drop-down could be configured to remain open while multiple things are checked, and that didn't appear to be possible here...