« first day (2246 days earlier)      last day (2926 days later) » 

00:01
I thought the best feature was that you didn't have to learn a new language (lamenting at CS)
We would all be better off if browsers decided to run elixir natively
But javascript has made some progress
@rlemon i had a good giggle
I'm pretty sure I said syntax error
can't remember
yeah you did
and you put a comment next to it saying 'what the fuck is this?'
sounds like me
00:14
You: "[...] no, that is a syntax error" "there is literally a syntax error" "how is this not a syntax error?"

Him quarter of an hour later: "the syntax was apparently wrong"
lol
I remember, I'm just toying
@rlemon puts you in diapers
que?
sniper hyper diaper
I don't get it
00:25
snipers put people in diapers
snipers make people incontinent now?
I thought they just killed them
depends on their aim
USS is excellent live btw.
they put on a good show
@Shmiddty they make you ctrl, shift, q, e a lot
space and you're it
So apparently UPS just refuses to show scheduled delivery for something going through customs
00:28
I know china mail does that
@KendallFrey share the drugs
once it's handed off to Canada Post I get nothing
but UPS should track it
unless it's being held
are you sure there is no customs charges that they expect a brokerage for?
I'm sure it will resume tracking once it's clear
but fuck are they ambiguous with the status
call them.
> The package is awaiting clearing agency review. / Your package was released by the clearing agency.
00:30
iirc when Loke sent me the phone I bought on amazon.com to me they held it expecting me to have a brokerage ready
no one contacted me, I had to call them
user2620028
@rlemon what do you mean by brokerage
Hello all. A friend and I are starting an "open source dev team". The idea is that a small group of engineering help out open source projects and create our own repos that can serve as educational resources. We are in need of some members! Please review github.com/GoTeamEpsilon/purpose for the overview. Current project involves React/Redux.
2
@MatthewVita Welcome to the JavaScript chat! Please review the room 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.
user2620028
something unique to canada?
00:31
So far I've never had to call anyone to get something through the border
What do they actually want?
@HatterisMad I don't think it is unique to Canada, but it is common here
@KendallFrey usually money
duty, clearance papers, etc
is it a lot?
shouldn't be
I've heard horror stories
yea, it can be bad
00:32
Why can't I just pay them at the door
user2620028
hmm... i just shipped something to thailand.... wonder how i would know if they were wanting something from me lmao
but you're getting a class whatever electronic device. should be like $45
or have them send me an invoice like fedex
@KendallFrey you probably can, but you might need to call them to set that up
if they expect a broker, for whatever reason, they might not contact you
or it could just be busy season. calling them wouldn't hurt tho
@HatterisMad I know for a fact if the item isn't cleared they just send it back
@MatthewVita uh, you're alone in your "dev group", it seems?
00:34
so nothing is actually lost but postage
user2620028
@rlemon I know for a fact it isn't
@FlorianMargaine just 2 people right now.
rather, to Canada and USA
sorry I missed Thailand
user2620028
@rlemon in Thailand if you don't pay the import duty on the parcel then it goes to government auction
00:35
Florian, my friend hasn't contributed yet. It's a brand new thing :)
@HatterisMad sounds terrible
user2620028
not if you are consumer at the auction XD
@FlorianMargaine would you, or someone you know, be interested in joining this OSS dev group?
@MatthewVita not really
@FlorianMargaine thanks for being forward. Would you happen to have any feedback on the concept, things that would make it more appealing?
00:37
@HatterisMad really? I thought everyone just returns the package back to the sender
user2620028
lol nahh
user2620028
my girlfriends mother buys stuff at the government auction to resell at market
user2620028
quit her corporate job to go do that
@MatthewVita actual work. Right now it looks like you just put up a repo and expect to get a big community before doing anything.
@FlorianMargaine I see. I may need to reword the contents of the repo because the idea is to get a handful of devs and organically work on solving interesting problems.
00:40
I think you should start doing your projects, and enjoy it. If you don't enjoy them, then other people won't and it's not a good idea anyway.
"start doing your projects", not sure I follow
Your angular to react thing, for example
open source projects work best when the original author has already done 90% of the work
then people get excited, and contribute
not necessarily
sometimes, people get excited
00:42
@FlorianMargaine often
when I say 90%, I don't mean 90% complete
I mean 90% working
most of the times, it'll be ignored forever and rot in your github account
ohh you mean "then people get excited" -> "then you might get people excited"
(speaking from experience with my 150 repos on github)
Good advice
either way, pushing something out is probably a good way to make the magic happen
00:43
@FilipDupanović yeah, but you need something to begin with
So I will a) reword the purpose repo to state that the idea is the OSS dev group is meant to be like ~5 people and b) try to focus on getting the Angular 1.x -> React/Redux guide up to about ~80% and then hopefully have people that are interested in joining the group.
I appreciate the feedback.
@MatthewVita I would just start doing it, after a while if you enjoy it, start publishing about it to attract people
@FlorianMargaine agreed, I was thinking in terms something people can already use and contribute back with their ideas
302/1000 SO Points, Getting somewhere now :D
00:48
@lix why /1000?
@FilipDupanović Reckon I can barter with someone using SO points for one of those sweet house?
1k is the milestone
Yeah It's just a goal I've set myself
ah, low standards. :P
kidding, good luck
@FlorianMargaine Thanks ;), Maybe 5k afterwards
It's kind of annoying me that my top tag is css, so I'm trying to just answer javascript stuff
00:50
@lix you better hurry, all the spots are being taken goo.gl/MxfAPa
Omg
They look cool :o
I don't think there's going to be anyone selling for a while
I totally read that as watermelonland for a second.
@MatthewVita What kind of projects will you be contributing to? Any primary language focus?
@rlemon Where did I screw up
idk. syntax error
unexpected }
looks like after you define the init block
wait
the error is { not }
my bad
I need to pay more attention
It's exspecting a ;
Do I need to add this to it?
wait
= function()
00:55
that'll do it
thanks @rlemon
I kinda doubt that'll get accepted as there's probably way better ways of doing it.
where's the Q?
0
A: Create a method which simulates a class constructor

li xThought a bit crude you can create a method called init and then call that method at the bottom of your function so when you instantiate a new object that code shall be run. I want to create a method which automatically implemented when create an instance of an object, exactly like concept of cl...

thoughts @FilipDupanović
I mean what he's actually trying to do is make a private method like in c# or java but the guy first asked how to make an auto constructor
Now the questions kinda of changed :/
dunno what he wants to do, but you'll probably have the same issues with your example
hooray my package is back on its way
01:07
@lix he's mixing functions and methods; maybe show him that he can return an instance of the private constructor function (if I understood at all what he wants)
This Is kinda how I'm guessing it should work
Watch @NASA TV Friday to see Japanese cargo craft launch at 8:26am ET (10:26 pm Japan time) to station.… https://twitter.com/i/web/status/807026987063799809
cc @rlemon
@lix what does he want anyway? an instance of a private constructor?
he wants it so that you can use a method like a default constructor
@KendallFrey remind me in the mornin
01:11
!!help nudge
@KendallFrey nudge: Register a nudge after an interval. /nudge intervalInMinutes message, /nudge remove id to remove, or the listener, nudge|remind|poke me? in? intervalInMinutes message
nudge isn't reliable
it's a memory store, not localstorage
Though even now I can't figure out why this init isn't running :/
refreshing the bot clears it. I don't trust long nudges
!!> function Foo(k) { return new (function Bbq() { return {bbq: k} })}; new Foo('sausage')
01:12
@FilipDupanović {"bbq":"sausage"}
!!> $($)
@david "ReferenceError: $ is not defined"
:(
!!> const M = x => x(x); M(M);
@david "InternalError: too much recursion"
that's better
01:14
it's a webworker with some limits
including timeout
!!> setTimeout(_ => console.log(1), 9e9)
@rlemon Maximum execution time exceeded
!!> let x; while(x=[x]);
@FilipDupanović Maximum execution time exceeded
user6820627
@rlemon how to set those limits?
check the source code
!!help
01:16
@rlemon Information on interacting with me can be found at this page
@FilipDupanović Made it work jsfiddle.net/ntygbfb6/3 :D
does it allow multiple lines?
!!>const f = (self) => (n) => n == 1 ? 1 : n * self(n - 1); const M = (x) => x(x); const B = (x) => (y) => (z) => x(y(z)); const N = (x) => (y) => M(x)(y); const Z = (x) => M(B(x)(N)); Z(f)(50);
@david "undefined"
user6820627
ah i know now, thanks rlemon. worker.terminate();
@david 120
01:20
@david yea it doesn't like multi line inputs
@lix Hi. Many JavaScript.
@david 3.0414093201713376e+64
!!> 2 ** 2
@FilipDupanović "SyntaxError: expected expression, got '*'"
a pity
Many javascript to you too @MatthewVita
01:21
Mainly***
@MatthewVita I'd be up for joining an open source team, though I must admit I'm not that exspierenced
@ssube @Trasiva @BenFortune omg
@lix That's great! My friend and I are Angular 1.x "veterans" so we can help you along.
@lix
is there any area you'd like to focus on?
I'm enjoying Canvas and Socket.io atm quite a lot, I'm way more experience with PHP and building content management systems which may come In handy. Though honestly I'm just looking to improve as a whole :-)
canvas is a pretty neat as an incentive to learn
you should share your stuff on here
01:24
@lix
I love socket.io
Yeah @david I'm making a multi room multiplayer game of asteroids atm :D
@lix I have to run to the store with my wife, so I have to leave. Can you give me your email address?
@FilipDupanović Yikes some 226k user replied to my answer
@MatthewVita You can get me at [email protected]
that question is so silly... why does he want a function that's exactly like a constructor but isn't? Why not just use the constructor?
01:30
I think it's because of a predominantly PHP background (looked at his profile) You just get in the habit of always having them so when there not there you feel scared.
#PHPProblems
I'm enjoying myself a lot right now
but... they ARE there. You have constructors in javascript... it's not some kind of php specific concept :S
consider this
Yeah your right @rlemon
I feel like this is why it's good to answer questions on SO, Challenges how you think about things and allows you to form better understandings of principles.
01:48
@lix whoa :O!
I've been touched by a god :-)
01:59
!!> ArrayBuffer
@FilipDupanović "function ArrayBuffer() {\n [native code]\n}"
02:17
!!> (f=>(x=>x(x))(x=>f(y=>x(x)(y))))(f=>x=>x<2?x:x*f(x-1))(5)
@KendallFrey 120
I AM A GOD
02:38
yeah, but you're probably Koalemos
03:09
!!> (f=>(x=>x(x))(x=>f(y=>x(x)(y))))(f=>x=>x<Math.PI?x:x*f(x/4.2))(42)
@rlemon 1000
I know I probably shouldn't advertise here but I wrote a real sync-prompt solution for node, so I'd thought I'd share it here :)
@KendallFrey did you get that from the shit i pasted?
is there a more terse way of writing "the file name is %FILE_NAME%".replace("%FILE_NAME%", filename); ?
i was thinking about tagged templates but not sure if that exist in current node
If you can use template strings then you could do that
`the file name is ${filename} magic`
!!> const filename='butts.txt'; The file name is ${filename}
03:21
yeah i was saying i'm not sure what the min-reqs for template-strs are
@david "The file name is butts.txt"
ok seems i'm node >4.0 so i'm good, thanks
 
2 hours later…
05:47
function accounts(){
    var accounts = {};

    getAccounts(accounts);
    console.log(accounts);
}

function getAccounts(acc){
    acc = {"hey": "hello"};
}

accounts();
^ accounts is empty object why?
I think the accounts variable should hold {"hey":"hello"} object. but it isn't.
value by reference
oh got it.. I can only change/add properties inside the object but can't expect change when I am instantiating the object again.
Lol I just encountered that an hour or two ago
Wish I had seen your message sooner
user6438501
06:03
        Hey quick question... So when writing a function intro comment block, how should one phrase it when the function returns a Promise? I know this is kinda a styling question I suppose. But for example:


    /**
     * This function does something async.
     * @param param1 <int> - A number associated with the function.
     * @return Promise - Contains the API response on success, or FALSE on fail.
     */
     function example(param1) {
       return new Promise(function(fulfill, reject) {
user6438501
basically asking what one would write for the '@return' section
user6438501
maybe instead - "@return mixed - A promise fulfilled with the api response on success, or rejected with FALSE on fail" -- that might be more in line with traditional comment syntax
hi, can someone give me a hand with a silly jquery question?
I can't get a fadeOut // fadeIn to work when selecting all of that element
$('.toggle-me:not(' + target + ')').fadeOut(600, function() {
    $(target).fadeIn(600);
06:37
anyone can tell me i have made web application using JS , php etc now loading that page in webview android native but my facebook page is taking time to show in UI
07:08
1 message moved to Trash can
@Julix Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@CapricaSix I did. damit :D
var i;
var l = arr.length;
for (i = 0; i < l; i++) {
//
}

//vs

for (let i, l = arr.length; i < l; i++) {
//
}


//How much of a difference is there, which is better?
these questions best investigated on jsperf.com
!!> let x=0;while(x=[x, new ArrayBuffer(10000000)]);
@FilipDupanović "RangeError: invalid array length"
@FilipDupanović Maximum execution time exceeded
@Julix use map/filter/reduce
or forEach rarely
07:34
bah foreach
js doesn't have a good iterator mechanism currently
and some people converts it before they can apply forEach() :|
forEach gets abused so much in js
I feel bad for it
Poor little function doesn't deserve to be treated that way :(
much worse is the for( in )
i have to figure out what's worse, for in or for of
for of is worse
People get a sense of superiority when they use it cuz it's ~new~
why is for-of bad? you can iterate sets, maps, break, continue, await
Nothing beats a plain old: var i = 0; doStuff(i); i++; doStuff(i) 😉
07:47
@FilipDupanović It just doesn't work well with functional programming
@bitten did you try with github.com/jcbrand/converse.js/blob/master/dist/… or going through NPM and the main module?
or try script-loader github.com/webpack/script-loader
anyways, looks like it's deps are broken the way your using it and it's reaching for something that didn't get exported in the globals because of Webpack
@Meredith i thought that it was for in is the worse
because it enumerates through all enumerable properties
for of doesn't
!!> let r = []; let a = [1,2]; a.foo = 'bar'; for( let el in a ) { r.push(el); }; r;
08:02
@KarelG ["0","1","foo"]
!!> let r = []; let a = [1,2]; a.foo = 'bar'; for( let el of a ) { r.push(el); }; r;
@KarelG [1,2]
see
I think the airbnb ESLint config disallows the use of for-in; lol @ not letting you use language features that are there
!!> let r = []; let a = [1,2]; a.foo = 'bar'; a.forEach(i => console.log(i))
08:06
@Meredith "undefined" Logged: 1,2
@FilipDupanović I wouldn't know. I don't use for-in
!!> let r = []; let a = [1,2]; a.foo = 'bar'; a.forEach(i => r.push(i << 2)); r;
@KarelG [4,8]
ok
i underestimated forEach
forEach is fine
People just abuse it
08:08
I wasn't thinking at lambda possiblity
user3119231
good morning (09:09)
boo you
I started at work at 7.15
(same time zone as you)
It's just meant to introduce side effects
But people use forEach and push all the time because they don't know how to use reduce
if js didn't support arrow functions, then foreach wouldn't have good purpose :P
It drives me crazy
08:09
... I think
user3119231
@KarelG I have to start at 09.00
we're free to choose whenever to start
If js didn't have lambdas, it'd be unusable
just before 11.00 then work your schedule
ah, the last thing it needs is immutability :)
user3119231
would totally start at 11.00 everyday
08:10
I have to agree with you, concerning your opinion of immutability
I go in at 11 on fridays
@KarelG It supports first-class functions.
Which is why I'm up at 3 am
That's more than enough.
I hate typing function though
Like literally the thing I hate most about elixir is that lambdas look like fn(arg) -> blah end
Why do I have to type so much
08:12
probably has something to do with making sure statements and expressions don't break
i was figuring out a problem with a js snippet
apparently the value of an selected option doesn't return strings
someone fucked up has overriden that property
@FilipDupanović It allows you to split the function up into separate clauses
i.e.
fn
(x) when x > 0 -> x
(x) when x < 0 -> -x
end
x when 0 -> crash, apparently
pattern matching
Yeah
There are cases where the conversion may not return a preferable answer: '' + 123e-50 returns "1.23e-48". — hongymagic Oct 30 '13 at 6:35
TIL
08:20
Hi can anyone help IF($F{end_datetime}.valueOf( "23:59:59" ), "24:00:00", $F{end_datetime})

The "24:00:00" is a string...and it will throw errors that it cannot parse the boolean logic because timestamp cannot go with string....how can i type the 24:00:00 in the condition as timestamp
@rookie_coder Welcome to the JavaScript chat! Please review the room 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.
!!> (1234.5).toPrecision(2)
@FilipDupanović "1.2e+3"
!!> parseFloat((1234.5).toPrecision(2))
@FilipDupanović 1200
08:33
!!> '' + 123e-50
@KarelG "1.23e-48"
Seems a problem of specs
it happens everywhere on all browsers that i have
// lazy to check specs
It doesnt feel like a slider does it?
you're not consistent with the ; ....
please use it to note the end of a statement
08:53
@Asperger God, that's awful. Just use an actual slider...

« first day (2246 days earlier)      last day (2926 days later) »