interesting that candidates are so hard to find for that. I heard similar stuff for front end positions from some friends around here that do some hiring
@GNi33 my problem is that they are lazy. I give a simple task, they answer with a copy pasta code. How can I be sure that they won't do that when working independently
if someone comes in who has to google "how to declare a function" because he has never seen JS before but by the end of the interview he wrote perfect code, wouldn't you hire them? :P
@Mosho true 🤐 I meant (translated) "write a function that receives one argument, let it be a primitive or string or array and return with an array that contains only numbers from that argument"
As I understand it, when inside a factory I return an object that gets injected into a controller. When inside a service I am dealing with the object using this and not returning anything.
I was under the assumption that a service was always a singleton, and that a new factory object gets injec...
> Google published a Chrome app in the Windows Store earlier today, which just directed users to a download link to install the browser. Microsoft isn’t impressed with Google’s obvious snub of the Windows Store, and it’s taking action. "We have removed the Google Chrome Installer App from Microsoft Store, as it violates our Microsoft Store policies"
@Bassem The difference is so minimal that it hardly makes any difference in practice. Especially if you write clean code. The example code from the question @BenFortune linked is pretty shitty AngularJS code
Consider this. You declare your service with a angular.module( "foo" ).factory( func ) or angular.module( "foo" ).service( func ) call
The difference is how AngularJS will invoke func when you inject foo
For a service, it will call new func() for a factory it will call func()
Or the other way around. I'd have to look it up :D
For us, it really makes no difference because we define our services as classes and the injector function returns either an instance of the class or the class itself. How the injector is called (with or without new) makes no difference
You don't return hashes from the injector and you also don't fuck with this in the injector
Well, I don't want to repeat myself... :D There is only a difference if you write your code in a way that it makes a difference, but you shouldn't be writing your code like that in the first place and .factory() is usually the way to go
This way you're telling AngularJS in the most straight-forward way "Hey, here's a function. If I want to inject foo, please call that function and return to me whatever that function returned"
angular.module( "foo" ).service( "bar", () => console.log( this ) ) vs. angular.module( "foo" ).factory( "bar", () => console.log( this ) )
When AngularJS gained popularity, it was common for people to treat the injector function itself as the service. This is also what caused most of the confusion. People would modify and return the injector function itself as the service or create a hash on-the-fly and return that
@BenjaminGruenbaum Today's big thing is to put the entire platform into maintenance mode and then make configuration changes to our RabbitMQ nodes to enable dead-letter-queueing
> Java is tremendously interesting to Verity as a powerful tool to provide dynamic display capabilities and client-side manipulation of results from our Search and Agent platforms. Configurability is a key strength of Verity servers, and the availability of JavaScript provides an ideal tool for non-programmers to harness the power of Java objects to customize the look and feel of their Verity applications.
> Steve Zocchi, Director, Internet Marketing > Verity
@GNi33 More of the latter. It's our approach to making parts of the stack scaleable. As in, we launch more instances of a process and the processes do IPC through Rabbit
@Neoares Different tasks require different tools. If you ask "Why do you need a different IDE for another language?", you might as well ask "Why do you need another language?"