« first day (1826 days earlier)      last day (3123 days later) » 

10:00 AM
@dievardump thank you..
 
user5020521
just breaks*
 
@Riccardo990 i want to thank @dievardump
 
user5020521
@SajjadKhan you're confusing me I'cant get at yoy man
 
user5020521
you*
 
And ping me 3 times in the process.
 
user3119231
10:01 AM
What the hell is wrong with the people, today? Is it because Beerday (Friday)?
 
user5020521
is it beerday?
 
user5020521
the hell are you guys from?
 
user3119231
I will never tell you.
 
it is not a beer day at all..
 
user5020521
@SajjadKhan do you mean my english is completely fucked up
 
user5020521
10:03 AM
????
 
no it mean you have to give respect other languages also..
 
@SajjadKhan
@SajjadKhan is this from some holy book/
?
 
not at all @emporio
 
@SajjadKhan
@SajjadKhan ok
Keep on topic guys
and gurlz
 
@emporio yeah sure..
 
10:05 AM
listen, can use pure JS in AngularJS ?
 
user5020521
@SajjadKhan Iìve neved been disrespectful to other languages
 
user5020521
I've*
 
@SajjadKhan Not necessarily.
 
@Maurize lol its flagged :D
 
@SajjadKhan Maybe they're just Americans
 
10:14 AM
@OliverSalzburg I have no issue from where they belong but degrade a person can not be allow by any country nor by any society..
here is the script
 
1 message moved to Trash can
@SajjadKhan Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
var num=8;
var b=1;
for(a=1;a<=5;a++){
document.write(b+",");
b=b+num;
num=num*2;

	}
 
I changed some data in a .json file, and the changes are not being reflected in the template
Why is that?
 
@emporio Click File, then Save
 
I hit ctrl+s in Sublime
its the same as save
 
10:24 AM
That's a good start
Now give us enough context and information to actually be able to help you
 
@OliverSalzburg nm my bad
I was adjusting the id: property in the json file
not the name..
 
@Maurize You have zero right or authority to be dismissive dick. Stop it.
 
jsfiddle.net/cbq0uxrc in this case, how do I get the number of pixels I scrolled for $(".wall").. Suppose I am at the middle of the $(".wall") I have to show a popup which is in the middle of the present viewport
 
10:44 AM
Sup guys, are there any patterns or examples available that help organise many multiple event delegations in a project?
Sort of <a button> maps: <event name> + <function>, all within a mapper, or something?
Replace those, easy to add new ones... etc
Screw it, one func per file is overkil
 
Hi all,

I'm trying to validate a phone number where the first char has to be a 0 and the remaining 9 characters can be 0-9 or a dash. The max is 10 characters.

Can someone tell me why this regex isn't working as intended?

ng-pattern="/[0][0-9-]$/"
 
@user2248441 /^0\d{9}$/
 
@user2248441 You're matching only one character from 0-9 after the 0
The $ ensures that there is nothing afterwards
 
@Tushar ohhh! Thanks! How about the dashes in the second part too?
do i add it after the d{9}?
 
Also, I think you have to put a dash in a [] clause at the beginning (special character) so [-0-9]
 
10:51 AM
@user2248441 /^0[\d\-]{9}$/
 
Thanks so much for the help both
 
Use regex101.com, it's your friend
 
@Neil OR at the end
 
@Tushar It works at the end? Did not know that
 
!!> console.log(/^0[\d-]{9}$/.test('0123456789'))
 
10:54 AM
@Tushar "undefined" Logged: true
 
@Neil Yes it does, but some browsers(e.g. Komodo, ...) don't like that, so it's always better to escape it
 
@Tushar Komodo? Isn't it just a reskinned and outdated Chromium?
 
@Zirak don't know
 
crl
My boss is very nice, but he's too much putting constraints on technologies (while he isn't a real developer)
 
which mail module do you people use when you're doing node?
 
10:59 AM
@crl That's what happen when your senior is Non-technical
@Gemtastic Nodemailer
 
Is it still the go to?
 
crl
!!google nodejs mail module
 
I know what it is, I was mostly curious if it's still active because I find old things when I google (apart from their website)
Also, there might be something new and fancy out
 
crl
no worry, I was also curious, as I'll have to do that soon
 
11:02 AM
I find it very easy to use, flexible
 
Ever tried it in docker?
 
No
 
Ok
 
@Gemtastic And what is Docker?
 
!!google docker
 
Better at explaining than I am ^
 
@Zirak That's great BOT you've made, can you give me link where I can find all the useful commands
 
crl
see her profile
 
!!help
 
@Gemtastic Information on interacting with me can be found at this page
 
11:06 AM
@Gemtastic Thanks
 
If you wanna play with her please go to the chat.stackoverflow.com/rooms/1/sandbox
 
Ha ha, @Gemtastic can you please tell me more about sandbox
 
crl
!!sandbox
 
@crl Please go and play in the Sandbox
 
crl
!!how old are you?
 
11:08 AM
@crl No way
 
thank you @crl
 
crl
!!learn how_old "I'm $rand(15,50)."
 
@crl Command how_old learned
 
crl
!!how_old are you?
 
@crl I'm 26.
 
user3119231
11:11 AM
Did I missed anything as I were in break?
 
@crl Cool
!!happybirthday
 
user3119231
i.imgur.com/QrxHXj1.jpg Maybe safe for work, maybe not. Not sure.
 
crl
^ not valid syntax, well right if you call it just after
 
user3119231
(function(){ return "Happy Birthday!"; })(); <- not valid aswell.
 
11:13 AM
can someone people explain to me, how "too chatty" flag is racist? meta.stackoverflow.com/questions/308169/…
which race is actually being discriminated against, marginalized or insulted?
I am pretty sure "my neighbor" is not a race designation
 
!!> console.log('Happy Birthday!');
 
@Tushar "SyntaxError: return not in function"
@Tushar "undefined" Logged: "Happy Birthday!"
 
crl
!!urban chatty 1
 
@crl Chatty Someone or something scruffy/ugly/untidy/dirty etc...
@crl [chatty](http://chatty.urbanup.com/1672325) 1. To dislike, or disapprove of someone, or something that some one has done.

2. Lame or Wack
 
@tereško It isn't.
 
crl
11:21 AM
@tereško he probably meant 'racist' as 'excluding some particular group of person', wrong term yes
 
user3119231
@Zirak Why don't I have any rights to do this? I mean I got one, too.
 
Hi kids
 
@Maurize Not discussing this here, opened a room with you.
 
Anyone fancy reviewing a small piece of Javascript for me? Just a small jQuery wrapper using a factory and prototypal inheritance for my own objects so I can decouple from jQuery, only 64 lines. jsfiddle.net/nuu39f9f/10 I'm interested in whether this is a robust approach and whether I am using prototypes correctly.
 
@Neilos Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
11:33 AM
@dievardump I'll be 2h away by car...
 
@Neilos console.log(document.querySelectorAll('.myclass'));
 
@FlorianMargaine Humpf ok, I'll see what I can do then :)
 
crl
var obj = new object();
obj.init($(this));
@Neilos ^ not sure this makes sense to do that, I don't even know what it does, what does it do?
 
hi, question I have. if I select input radio which hasn't been checked, and has no value and isn't set as required, what value will it get?
When I checked this radio button which has not value set to it and checked in console like that:
$('#some_form').serialize();
"radioSelected=true&amount=on&textAmount=&paymentType=SOME_ACCOUNT&CSRFToken=some_token_id"
I've found that it has now value 'on'. But why?
Is it normal behaviour for no-value radio buttons to get 'on' value when being checked?
this radio button name is 'amount'.
 
@spaffy Default value
 
11:43 AM
@crl It's all in the fiddle, its a factory so object is just a reference to the function that I pass in so I can construct it, ie the function MyObj in the case I showed, the init call is a call to the prototype function in Element called init, so that I can store a reference to the jQuery object without needing to worry about jQuery in any children of Element
@crl calling the paramater object is perhaps a little confusing
 
@Neilos That's really, really, really overengineered and quite obfuscated. Why are you doing this?
 
 
@Zirak I just want to decouple from jQuery
 
@Neilos Do you think you achieved that?
 
:-)
 
11:48 AM
@Zirak ElementFactory and Element are tightly coupled but any children will not be. What is your take on it?
 
What's your end goal? Why would you put "decouple from jquery" as a signpost, instead of simply not using jquery?
@Neilos That you created a jquery wrapper, which seems weird
 
@Zirak Well Maybe down the road I want to not use jQuery, but for now it is easy to use jQuery, once I have discovered all the functionality that I require I might be able to remove the jQuery dependency and rewrite the Element object with a much smaller library
 
On the blander side of things, the organisation: ElementFactory is just a bag of functions, it doesn't hold any state, so you can turn it into an object and call it HelperStuff
 
@Zirak It is more of an exercise than anything
 
Down the road, you'll discover literally everything has jquery as a dependency, so you'll never escape it
>:(
 
11:51 AM
@Neilos Then fine. But you're not helping yourself.
You're trading one library with another. One which is Less powerful and only known to you.
Down the road that'll bite you, and you'll throw it all away. But if it's just for fun then it's all fair game.
 
crl
I concur, it's a bit unecessary
 
it's sort of for fun, however I do intend to use it in a project I am working on personally.
So... would you all just conceed and couple to jQuery?
 
@Neilos You're making a design decision for a scenario that doesn't exist. It'll cause pain later. I'd stay away from inheritance hierarchies altogether, at least to begin with. You often don't need them at all in JavaScript.
 
@Neilos Just use whatever you'd normally use.
Personally I haven't touched jquery in at least a couple of years.
 
@KingMob Ok that leads me back to the original thought, whether this implementation makes proper use of inheritance
 
crl
11:56 AM
oh I didn't see object was passed as parameter, confusing name (with Object)
 
agreed
So forgetting the fact that it is a jQuery wrapper, imagine it is just a generic factory... am I using prototypes correctly? if I was to implement this pattern for other types of objects, does it make sense?
 
UGH
my upload speed absolutely sucks balls
 
@Neilos I'd have stabbed you repeatedly in the throat with a fish knife (both a knife made out of fish, and a knife made for knifing fish)
 
@Zirak Back to the jQuery wrapper train of thought, would you just implement it all with vanilla JavaScript?
 
like, sucks balls so bad
48KB/s is not a valid upload speed now, is it?
 
12:01 PM
@Zirak lol? I'm not sure I follow?
 
As said, it's overengineered as balls. The factory isn't a factory, it's a bag of functions; you discard constructors even though you can use them.
 
I think that means no
 
The new param pattern is reeeaallly yucky and unnecessary, if you want a "proper" OO solution then overriding is where you'd go
 
@Neilos The whole thing looks weird.
 
object.prototype instanceof Element checks also complicate things
(not to mention the non-descriptive error messages)
 
12:03 PM
lol
yeah this is just my jsFiddle mashup
 
Not to mention that you have mixed tabs and spaces
 
:) so you really don't like it huh?
 
@Neilos I'm just not sure exactly what problem you're trying to solve.
Tip: don't bring Java to JavaScript.
 
@Zirak WAT
BURN HIM
GET IM BOYS
tabs and spaces... what a dork
 
I use tabs but when you tab on jsFiddle it adds spaces, I can't help it :(
itsa mashup of my code and code I wrote on jsfiddle
:)
 
12:07 PM
Unwind your panties, I'm putting some makeup on it.
 
on the panties?
 
@KingMob What about C# to javascript? bridge.net
 
@Cereal I guess JavaScript isn't complex enough for a lot of people.
 
@Cereal wtf
 
If fairness GWT compiles Java to Javascript
 
12:10 PM
and even google admits that GWT is terrible
 
@Cereal Why is their demo video showing someone using InnerHTML to set text!?!?
 
I used to have to use it at work...
 
I WILL MURDER PEOPLE
 
@Zirak the demo video is terrible ._.
1. the guy is writing C# in sublime. WTF?
2. the guy writes a public static void Main(). I had enough time to get coffee while he was writing this.
3. the guy uses 3 or 4 nested stuff to do an innerhtml in an onclick in an anonymous class? WTF overengineering?
 
12:12 PM
@FlorianMargaine I think that's microsoft .. edge? Whatever their ST clone is
 
I still don't like the design at all it, but I think it's better
 
crl
gist.github.com/Zirak/3373067 < appropriate ironic usage of factories
 
@FlorianMargaine Doesn't matter. Your boss is already impressed, signed off on the procurement and mandated that your team uses it.
 
Object.defineProperty = (...args) => {
	emitter.emit('Object.defineProperty', args);
	return defProp(...args);
};
 
Hi. Does anyone know an alternative to Electron or NW.js based on Firefox rather than Chrome?
 
12:14 PM
@Pavlo Don't think there is any
 
I just wrote this and I think it's beautiful
 
Document.GetElementById("demo")
    .InnerHTML = "Hello";
 
@FlorianMargaine VS Code is what I was thinking of
 
HRNGH
 
@Zirak Similar to an earlier revision I had jsfiddle.net/nuu39f9f/7 without the factory (bag of functions)
@Zirak Could you please explain your motivations for the changes you made?
 
crl
12:22 PM
var elem = $("#" + id, this.$element); wouldn't be too necessary since an element with id is unique :p
jQuery allows monstruosities
 
I guess I'll check out vs code again.
Oh man, my L key is sticking.
 
(1) ElementFactory didn't serve any purpose - it was a bunch of functions which operated in the context of an element and returns an element. As such, it serves its purpose being inside of an Element.
(2) To support inheritance (blegh), using `new this.constructor` over a specific function
(3) `map` is your friend, no need to `foreach` and construct yourself
(4) Actually using the `Element`'s constructor function
 
crl
totally imagine future 'pedestrians' using this
 
crl
12:27 PM
looks totally safe if it lands on someone
 
I love the future
 
@Zirak Ok Thank you very much for your assistance. I'm going to take a bit of time to soak up all the info to make sure I understand it all.
 
@MirkoCianfarani Impressive!
@Neilos Enjoy
 
Thank you for the help to others as well, been very informative
I'm going to look into solving the Yang–Mills and Mass Gap problem now
if anyone has any pointers on that then it'll be much appreciated (jokes)
 
@KingMob thank god I have a smart boss
 
12:31 PM
:-) Yeah.
 
crl
man.. I don't really like angularui-router, but it seems my boss really wants to use it
 
@Zirak YEah... BUt I thinking that we can will have a discount because the invertor's friend can be @rlemon
 
Oh this is neat
Set the build task in visual studio code to just restart the dev server. Shows the output in a split pane in the editor
I wonder how you get it to stop
 
HAMMERTIME!
 
God DAMN IT CAPRICA
 
crl
12:35 PM
!!youtube hammer
 
crl
didn't expect this
 
My phone automatically turns on if you pick it up off a table. I keep forgetting, and hit the power button anyway, which shuts it off
So annoying
 
\o/
 
12:41 PM
 
not my forte but cool :)
 
@Zirak How come?
 
crl
!!define forte
 
@crl [forte](http://en.wiktionary.org/wiki?curid=36442) A strength or talent.
He writes respectably, but poetry is not his forte.
 
@KingMob Lots of bad code and there're much better explanations of lazyness and composability in js, so it adds nothing of quality, but adds bad code.
 
12:51 PM
hallo hallo
 
Good morning guys, I know this is a javascript room, but do you guys discuss about jQuery and its stauff?
stuff*
 
crl
sometimes, not always positively
 
@Zirak Thanks. I maybe won't read it then!
 
@Calne whatever you do don't write a jquery wrapper
 
:-D
 
12:54 PM
:)
 
crl
it would be a double wrapper of the DOM
 
@Calne why the hell would we do that? jQuery is absolutely terrible and even EU laws don't permit JavaScript developers to talk about jQuery in a JS room.
 
lol
that's okay, I'm not a big jQuery fan anyway
 
crl
There's even a trial about removing the j from jQuery
 
:,(
hahaha
 
12:55 PM
We are all 100% sane people and haven't talked about, or used jQuery and its stauff in the past century. Please don't bring it up, we don't wanna get hanged.
 
Anyone else here bashing jQuery have a library that does all it does?
 
crl
document.
 
Also @Abhishrek likes jQuery. Feel free to open a new room with him and talk to him about it.
 
I use jquery, I just pretend I don't
@JoJo document
 
@Cereal I like document.. as in document.createElement.. gonna use it more
 
12:58 PM
@JoJo $(document.createElement("div"))?
 
crl
$(document.createElement("div")).get(0)
 
.. I think that works, don't quote me
 
no jQuery allowed
 
lol
 

« first day (1826 days earlier)      last day (3123 days later) »