« first day (2622 days earlier)      last day (2549 days later) » 

11:00
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
> you can choose the tech you want
kind of the same requirements
> jQuery :D
> fired
yarr, maintaining code ...
there are still projects with dojo/diji
we have so many jQuery things still in prod
11:01
there are enough big companies to swallow most good devs it seems
@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
var str = $("#myForm"+i).prev().text();
$("#myForm"+i).prev().text(str.replace('Not Answered', 'Answered'));
This worked for me. Is this good
@KarelG those people already have a job
I even caught one using his smartphone to search for an answer on SO :D
the scrubs dont
11:02
the interface of SO on mobile is soooo recognizable
you get scrubs and you promote them to jabbascript masters
@KarelG I have no issues with using SO to complete an interview task
I just wait to the next end of the academy year ;)
then you are too late
you have to be earlier than that
@Mosho even for writing up a function that reads in an argument and pick out natural numbers? (thus returning with an array of numbers)
11:04
@KarelG at an exam?
no my interview question :|
@KarelG it depends, but I have no general problem with it
but you were like, talking?
and suddenly he said "oh wait I need to check an important email"
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
11:05
@Mosho ussually, i would be able to tell you how i would do it
it is just
1. check if arg is array, if not, put in array
2. `.filter` with Number or + operator
3. return array ...
but i would not be able to give you the code
that, SO does for me
look. I did that without checking SO
@KarelG that doesn't do what you said though
i would have said, "find matches of [0-9]+ regex and put them in a collection, then return the collection"
11:07
@Wietlol :P it started in september. There are students that grades in september. But I can wait to end of january, for a new can of students :D
Hi
i have a question
hi
please just ask your question
@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"
sure
is window.top modifiable ?
try it?
11:11
no it not descriptor configurable:false
so if i want to custom set top property , any hacks avalable
@Roshan I don't think top is what you think it is
Object.getOwnPropertyDescriptor(window,"top")
{value: Window, writable: false, enumerable: true, configurable: false}
it relates to the root window , but my problem is my app needs to run inside an iframe
of a window belong to another domain
and i have code like top. , or window.top etc in my App's Js files
top is not under your control
same-origin-policy is vloated and excpetion thrown by browser
I suggest you change your code
11:16
that exactly what i doing , but there to much of code to change :(
can i override Window function
it's not a function, and no
can just change the code, or maybe wrap your entire code in a function and pass a window parameter
but you should probably just change the code
so your suggestion is to change the code right ?
> but you should probably just change the code
I think that's what he said
well thanks @Mosho
I am curious what you want to do with that :o
11:20
KarelG hi
XDDDD
i though if i can inject top in proxy object and chain the object to the Window.prototype
So Window is not a function but then why
Object.prototype.toString.call(window)
returns "[object Window]"
because it's an object
var t={}
Object.prototype.toString.call(t)
"[object Object]"
{} is also an object
don't be confused with python dictionaries, despite they're pretty much the same
11:25
the differrence is in the constructor used
so if i can override Window function , can i not hijack window object and control the top property
!!> typeof {}
@Neoares "object"
window is not a function!!!!!
I still don't know what do you want
window is not a function , but Window is
oh
first time I saw it
googling
11:28
i wonder when and how window object is created , any idea ?
internal jabbascript stuff
the application running the jabbascript engine provides it some data
@Roshan at page init, because it "describes" the whole window area that you see when seeing a browser window
I am not sure if it is wise to make it configurable ...
I've never used the Window function, but I think you are not meant to use it neither
maybe it's how the window it's created, I don't know really
great , thanks @KarelG , any links to how to achieve that ??? please ...
he said you shouldn't do that :v
11:31
@Roshan why you want to do it?
what do you want to achieve?
XY problem alert
i can tell you, its either supposed to be impossible or a really bad approach
^ indeed
@Neoares late alert
@Wietlol as we say in spain, better late than never
11:32
hahaha , i wll take ur warning into consideration thanks bye
why do you speak english in spain?
@Wietlol mejor tarde que nunca
sounds better
Anyone use incapsula here?
nope
11:41
Sounds like AV
I know someone does, but I can't remember who :(
As in, it provides no real value other than having something to blame if stuff goes to shit
@BenFortune search incapsula in the chat history
Their WAF is great
Aug 3 '16 at 13:51, by Ben Fortune
Anyone use incapsula?
lol
> I remember someone does
> oh wait it was me
11:44
are those quotes?
But also yes
mental quotes of Ben right now
2 mins ago, by Wietlol
are those quotes?
Now they are
good point
11:55
Some THREE.js user here ?
Wondering if it was technically possible to make a THREE Point respond to perspective.
@AllanRaquin A Point? What's that?
12:11
Guys , I am new beginner for Angularjs
what is the difference between service and factory
i see many posts but i can't understand :(
@BenFortune does this still stand for "Wife Acceptance Factor"?
because I somehow doubt it :D
567
Q: Confused about Service vs Factory

JvdBergAs 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...

@GNi33 It could, I'm not gonna lie
ah, Web Application Firewall, I see
She's mad
I used my definition "WAF" a lot back in my overclocking days. Stuff that I bought usually had a WAF < 0.1 though
12:17
@GNi33 What does WAF stand for in that sense?
wife acceptance factor
or "roughly how mad will my girlfriend get when I squander money on this now?"
it's a very low factor in the buy or no buy equation usually though
oh lmao
as you can probably tell, mainboards, graphic cards and a new water cooling system for your tower pretty much had a nonexisting waf
@GNi33 I have a nonexisting waf, which is why I'm so poor
oh no, you don't
12:29
anyone know how to shorten this?
string.replace(/\bwho must( had)?( have)?\b/gi,(m,a,b)=>"whomst"+(a?"'d":"")+(b?"'ve":""));
oh wait
a?foo:"" => a||""
Actually that's wrong.
(ha(?:d)|(?:ve))
ha microsoft
> 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 Factories are constructed with new
`whomst${a&&"'d"}${b&&"'ve"}`?
string.replace(/\bwho must ha(d|ve)\b/gi,"whomst'$1");
or something
12:43
@OliverSalzburg i see this answer many times but need an example ,
https://blog.thoughtram.io/angular/2015/07/07/service-vs-factory-once-and-for-all.html#the-difference-between-services-and-factories

this link say there is no difference :(
@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
nicki minaj
@OliverSalzburg you are awesome
Thank you :)
so the difference is just in how angular will execute the code
but as a developer , there is no difference
am i right
12:52
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"
very good
ok @OliverSalzburg just one question please ,
where is the code that if you see it , you know the difference :D ^_^
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
:D
Ok by the way , i will go with factory ;)
13:08
Good choice :D
What's up @OliverSalzburg?
What have you been up to?
@Bassem Here's an example of how we would build up a service: gist.github.com/oliversalzburg/c98f9f49da1d175f121333fa427b543f Maybe it helps :)
@BenjaminGruenbaum Work :D
Oliver Salzburg, the helpful CTO
Hopefully getting this year's final release out the door today
:P
our CRM release got delayed to next year
13:14
@OliverSalzburg anything in particular?
reason: not enough testers lol.
my fault 😐
normal
you keep rejecting people
just because they look for noob questions on SO mobile while they're in an intervew
@Neoares 🤔
@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
Very exciting!
13:18
dead-letter-queuing?
Moving messages that can't be processed for varying reasons into a queue where they wait for inspection
We previously discarded those messages and handled everything around that very ungracefully :P
> 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
talking about javascript release, in 1995
and then Jabba died
I'm currently getting into Java
@OliverSalzburg what do you use RabbitMQ for mostly? Or is the whole application built around it?
@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
13:24
@OliverSalzburg really?
@BenjaminGruenbaum Yeah. Looking into native Android development for fun
I'm having a really hard time prototyping new applications and thinking in simple terms :D
Ah, I do that
(Android)
You should learn Android and then just do ReactNative probably, I do SDKs through
@OliverSalzburg sounds reasonable
Our own app (FairManager) is built around Cordova, but I wanted to challenge myself for this private project
I want to think in new ways and stay away from web technologies as much as possible
@OliverSalzburg Kotlin is pretty fun
13:29
I hate JetBrains, thus, I hate Kotlin
It's bad enough that I have to use Android Studio for this
@OliverSalzburg is there a specific reason? I usually really enjoy their stuff
me 2
i use Rider and CLionover Visual Studio, I use IntelliJ over Netbeans and Eclipse
@GNi33 They write extremely poor code, have horrible quality control and never finish implementing features which they loudly claimed to support
and i might be using PHPStorm for js soon (or WebStorm as we wont be using PHP at all)
sounds like microsoft
13:42
@Wietlol XStorm are the worst of their products
never really used them :D
Search for my name on their bug tracker for the full picture
ah yeah, quality control is indeed an issue
I have filed hundreds of issues on their tracker
the only weird thing i find in their ides is that they all work differently in the things that should work the same
13:43
And I have had many chances to try to resolve issues with their support
@Wietlol for example? I've only used PHPStorm and PyCharm and they're fairly the same on most of the basic stuff
If you're being compared to software like Eclipse, it's not hard to appear better
@GNi33 IDE settings, autocomplete stuff, creating files, settings for inspections (warnings, errors, etc)
stuff like that
Netbeans was quite something
and I still find it's ui more comfortable than IntelliJ's
but intellij allows me to write my code faster
and it has a broader support for various features
why do they have 1 IDLE for every language?
vim is better
13:46
I'm using pycharm but I could edit Java files if I wanted
@littlepootis get out plox :D
@littlepootis windows notepad is even better
@Neoares mostly for economical reasons
but also because of resource separation
even though a really good ide should be able to reuse them
13:47
that's like choosing packages at download time
@Neoares Same reason we have different glasses for wine and beer
sort of
for example I use pyCharm for python and JS
@OliverSalzburg I don't see the similarity
the thing is that IntelliJ is based around javac
it is
13:48
and CLion is based around cmake
that's why it uses 24182123GB of RAM
and Rider is based around the dotnet builder
@OliverSalzburg ohh, so you're one of those fancy a-holes eh? too good to just put it all in a dixie cup like the rest of us?!
rider: 300MB
visual studio: 450MB
pyCharm: 1.2GB
13:50
@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?"
intellij: 600MB
for everything else, MasterCard
ST3 is good with memory
@OliverSalzburg you don't. JS all things 😃
we need a better language
esperanto
13:54
is there anything wrong with this line? if (error && error instanceof Error)
@Wietlol Android Studio and WebStorm currently at 5GB ram usage each
@corvid no
TypeScript keeps complaining :\ I typed it as error: Error | null

« first day (2622 days earlier)      last day (2549 days later) »