« first day (2412 days earlier)      last day (2536 days later) » 

7:00 PM
damn man, 9 years of experience you can make a hell of a lot more
ah wait nm
idk your geo location I guess
if it's good pay for the area then whatever, cost of living I imagine is inline with it at least
 
small town in mississippi. 51k is actually quite a bit for this area
 
ok. it looks like IE10 is throwing an error and writing it to the console. people don't still use IE10? I could put a try catch around it. :/
 
ah
heh i lived in Biloxi for a bit
had my car radio stolen, good times
pre Katrina
 
we're a little farther north, but katrina still hit us pretty hard. meridian
 
well, IE10's error makes sense. it failed to parse.
Also, IE11 does the exact same thing.
 
7:02 PM
@KevinB I've driven through there
 
@Loktar Good old Keesler.
 
@KevinB I feel you, similar wage, but given the area, it's more than comfortable. Especially in the rural part of the South, if you want that southern livin' you gotta be ready to take what you can get for IT jobs.
 
yeah Katrina was insane, I went back after as well
 
@Mosho fu :(
 
Atlanta is the only decent city I can think of for a lush amount of tech jobs.
 
7:02 PM
everything was so different :/
 
I love how the first thing they did was rebuild the casinos.
 
we lost 8 pecan trees in a 2 acre yard
 
And everyone saying that it's muscle, it's not. I ate too much last week :(
 
the lumber yard where i worked was demolished
 
@Trasiva makes sense that was their main economy
 
7:03 PM
Like, I was there in 2007/2008, and there were SCHOOLS that weren't rebuilt yet.
 
@BadgerCat 2.9
 
@KevinB damn man
you're not that close to the shore either
so crazy how powerful it was
 
it was still a category three when it went through
 
@BadgerCat I'll tell you a little secret, it wasn't muscle for anyone :P
 
7:04 PM
hattisburg got hit harder thogh
 
Heck, even on the GA/TN border where I lived, we still got enough rain to cancel school for a week..
during Katrina.
 
!!afk meeting i'm late for
 
copy says it could be variance for everyone else, but for me it's definitely the milkshakes/cocktails that I drank last week
 
@BadgerCat Tsk
 
try protein shakes instead
 
7:06 PM
Copy can definitely help there.
Hrm, phrasing.
 
Yeah, he always fat shames me
 
:o
 
Well, stop eating milkshakes
And punch him in the nuts.
 
Will do
 
does anyone here use functional programming techniques in js?
 
7:12 PM
@JohnSumner As much as I can
 
most of us, at least at some point
 
@JohnSumner I think most of us do
 
is it possible to not use said techniques?
 
@Loktar That reminds me, did you hear that another AF colonel got caught with kiddie porn?
 
@KevinB sure
 
7:14 PM
@KevinB jQuery
 
7k in images, 10 videos, plus at least one classified document on his personal computer. 12 months in prison, and discharged from the AF, I assume dishonorable.
 
in a lot of FP I see them do let x = (val) => to declare functions is there is there any benefit to this over just doing function x (val) {}?
 
@JohnSumner sensible this
 
They are both functions. They have differences in the context ("this"), but otherwise, they are used in all the same ways.
 
7:19 PM
function declarations are also hoisted
 
so doing let x = (val) =>
I can only use x after the declaration?
 
whether your function uses closure is usually a more important question. If you don't use closure or this, function might be better.
@JohnSumner correct. function x, you can use it anywhere.
 
@Luggage I'm going to use DomParser in Edge, IE11, IE10, etc.
Does `if (document.implementation.createDocument) {` work for check for the existence of DomParser() in IE? I updated the code pen. If you run it in IE it should write a message to the console if it works.
 
practically, that shouldn't be a problem (it might even be a smell), and you can refactor if it is
 
if (window.DOMParser) { ... }
 
7:22 PM
Yeah just trying to understand the differences
 
It's odd that chrome doesn't throw an error, but returns a document with an error in it..
 
What does "Function declarations are also hoisted" mean? Is that what you mean when you say function x is available anywhere?
 
if (document.implementation.createDocument) is working in IE. It does use domparser.
er.. i think
 
I think so @vapor
 
I answered the poll that I might be absent from time-to-time, but what I really wanted to put is that I might be present from time-to-time.
 
7:28 PM
any recommendations on books/videos for functional js?
 
Can we ask webpack related questions here?
 
@YvesHenri Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
I don't know, can you? :)
 
@JohnSumner Just start researching ES6, ES7. Try to make some projects that work well with it. As far as books go you'd have to get a response from someone else. MDN is a good resource
@JohnSumner MDN is what @ssube just linked above my last message
 
7:30 PM
Followed closely by reactivex.io/rxjs and facebook.github.io/immutable-js and all the other bits that make up real, immutable, functional, reactive programming.
 
cool thanks
 
ramdajs.com (another library full of functional helpers)
 
has anyone used amplitude analytics?
 
Once you start processing data in a functional way, you'll see that the data is immutable.
Then you'll find out that you want to work with streams of data that might not exist yet.
 
in their docs, it tells you to inject the script tag with the api key. That can't be safe right? exposing the api key to users...
 
7:31 PM
You and your streams. Always with the streams.
 
everything is a stream or a tree
 
or a stream of trees
or a tree of streams
 
a tree of streams is what's currently breaking my app :\
 
Refactor your life
 
Have you tried putting that in a stream?
 
7:32 PM
yes, actually
 
Stream<Tree<Stream>>
 
^ oooh good point
 
it didn't help
 
lol
 
see, you say Stream<Tree<Stream>> as a joke, but the problematic bit of code already starts with const bufferInput = this.input.getStream().buffer(this.interval); this.stream = this.interval.combineLatest(bufferInput).flatMap(async (value) => {
 
7:33 PM
is anyone here familiar with webpack, specially webpack-dev-server?
 
and at least something in there is an Observable<Observable<Entity>>
 
You knuckle draggers over in operations are always getting into code over your head.
 
@YvesHenri if you don't just ask your question you're going to upset some people
 
one of them is definitely an Observable<Promise<Array<Entity>>>
 
@Luggage ok thanks. last question, if you run the code pen in IE it should be failing on bad xml? i put code in the console so your console should have a line "Before creating domparser" and then the error message. it will not say "After DomParser instance".
 
7:34 PM
yea, pretty sure it broke on the parseFromString. will test
 
also how are you able to test all browsers? <-- envious
 
@Luggage fix it for me or no more servers for you :P
 
@ssube "Luggage, what magic spells do you use to test in all browsers?"
 
Have you tried putting that Tree Stream Stream in a Tree?
 
I joke, as your code is more sophisticated than that of most 'programmers' i know.
 
7:35 PM
So someone changed back my name
 
It was me. Ur brother
 
@1.21gigawatts yea, the "before" message is logged and it breaks on "var xmlDoc = parser.parseFromString(txt, "text/xml");"
it's jsut that IE throws when chrome return an error document.
just handle both.
@1.21gigawatts browserstack.com
 
great. i was pulling out my hair
 
Imagine that, someone took away your silly fake diamond.
 
I posted a question about it though and mentioned it to a mod not surprised
 
7:38 PM
You know what's fun? getting a red and blue light and pulling people over. You should try it.
 
Hi all! I want to know if it's possible with GraphQL to get the field name requested?
 
(I am not a lawyer)
 
@Luggage I believe the abbreviation is IANAL
 
I don't abbreviate, tyvm.
 
gg
 
7:40 PM
@MikeBoutin what good would it be if it didn't give you the fields you requested? But I think you're looking for the introspection queries.
 
GraphQLResolveInfo
i found this for now
don't know if it do the job like i need
 
hi there
 
__Field is probably what you want
 
oh hai
 
@ssube Good! Thank you very much ssube
I'll check it right on
 
7:43 PM
what could be the problem?

I have a div with google maps (javascirpt)
and I have a floating button (fab) over the map (css: absolute...z-index:over9000)

I can see the button, but it doesnt react! the click and drag events goes through it directly to the map
 
That's one of the most powerful differences GraphQL has over REST. You can ask the API to describe (but not fully document) itself.
 
psh, my rest api coughs up JSON-schema on demand.
 
really? That's pretty sweet.
 
@Suisse google uses 9001 z index
 
omg
 
7:45 PM
hm, an express middleware that validated JSON by schema and would print the schema on Content-Type: application/json-schema would be nifty
 
no i'm joking. i think what is happening is that google is creating the maps after your div button. this may put it at a higher position
check for google maps "complete" type of event. after that then add your button to the maps container
 
@1.21gigawatts hehe, yeah, but why would I see the fab button?
I waited for the map loaded event and then made the z-index to 99999
does it have to be in the same container? its over it
 
what is a fab button?
 
        <a class="btn-floating btn-large waves-effect waves-light red newBitch_float" style="position: absolute; right: 0px; bottom: 0px; margin: 20px; z-index:9999"><i class="material-icons">add</i></a>
normal a tag
 
hmm if you see it but it's getting no click events then maybe maps is listening on capture phase and canceling mouse events
add a click handler to that a tag to listen for events onclick="alert('clicked')"
see what happens. if no click events then in code add after on load event do: myFab.addEventListener("mouseup"/"mousedown", function(e) {alert('clicked')}, true);
 
7:52 PM
yeah I did ( just with jquery.. alert) but there is no alert
also the ripple effect (when you know materializecss.com) is not there the click is not recieved
 
ok try the last suggestion
 
yeah wait thx
 
try myFab.addEventListener("click", function(event) { event.preventDefault(); event.stopPropagation(); alert("clicked"); });
And if that doesn't work, do the same thing but add true at the end, like this:
 
Vap0r what was your weigh in. I noticed notbody published anythng
 
myFab.addEventListener("click", function(event) { event.preventDefault(); event.stopPropagation(); alert("clicked"); }, true);
@William I had signed up not knowing when everything was going to start. When I received the notification that I needed to weigh in in 3 days or less I was in Vegas with 5 days left of vacation.
So I never got to weigh in. I'm participating in spirit :)
 
7:59 PM
I'd probably gain weight if I did it
 
Lol I would have if I measured before Las Vegas and then measured after. And you should have done it. You could always go for the high score.
I'm sure that gets a consolation prize hahaha
 
it has something to do with the overlay, when the button is in the same place like the map, the is no chance for the click @1.21gigawatts
 
@Suisse did you try what I suggested?
 
Does diabetes get your extra points?
 
yes yes. nothing happened.
than I changed the position to relative and your alert worked
 
8:01 PM
@William a few people weighed in what are you talking about
 
when its absolut and in the same position as the map it doesnt react
 
@SterlingArcher where can I see them?
 
I don't trust you near shirtless pics of us
 
nevermind found it
 
@Suisse could you make a jsfiddle or codepen of your issue?
 
is badget cat a girl? better be
 
don't use the challenge to creep on people
 
@Loktar Oh my god.
> Eric is a stupid investor.
 
@Vap0r its a cordova project.. I used the google maps cordova plugin
now I placed the button like this:
-------O------
the ----- is the top border of the map, the O is the button
when I click on the upper half it works.. the bottom part doesnt react haha
 
yes it is a girl
are late entries allowed - jk :)
 
8:09 PM
no
 
if you mind me asking how did you do an official entry?
 
@William ask first, and use protection
 
You weigh in a week and 2 days ago.
 
Everyone signed up by the sign up date.
 
you follow the instructions
and the rules
 
8:10 PM
so this is the honor system
you guys are so trusting
 
We're not a bunch of complete twats.
Well, most of us.
 
well
 
We took pictures of the scales and our fat, it's pretty obvious to see if somebody didn't lose 20lbs
 
not solved
 
8:12 PM
@rlemon @KendallFrey
 
hnnggg
 
that perspective fucks with your eyes
 
it looks way more 3d than it is
 
@Trasiva that's amazing man. Where are the edges?
 
Yea, but fuck if it isn't purdy.
 
8:14 PM
@Vap0r They made a fake 3D rendering to try and pretend the moon isn't flat.
 
Oh god, don't get William started.
 
Ignore those fake mainstream stellar bodies.
 
wait what the fuck
 
@KendallFrey those are sweet
 
8:15 PM
Those are in Haunted Mansion at Disney World.
 
Did you guys know what happens to a liquid in a vaccuum?
 
@Vap0r It boils.
 
plenty of things, depending on the liquid
 
it gets cleaned?
 
8:16 PM
Liquid hot metal that's cooling, like, I don't know, EARTH!
It turns into a disk
That's how they make bb pellets
 
BBs are round
 
disks are round
 
That's another common misconception
 
checkmate roundearthers
 
who says we aren't on a flat earth that got inflated?
maybe it was flat
 
8:18 PM
@ssube If the earth was flat, cats would have knocked everything off the edge already.
10
 
@Trasiva well damn.
 
Unless there are dogs guarding the ends of the earth.
 
I am disappointed that there isn't a lib for converting hashes to emojis 😡
 
No wonder dogs are superior.
 
Humans are superior. human > dog > cat
 
8:19 PM
dog > human > cat
 
human > dog > feces > cat
 
Humans can do chores though.
And they last longer as pets than cats or dogs
 
my brothers dog hides in the closet when the cat is near
 
dogs last a while if you store them properly
 
@SterlingArcher do you have a chihuahua?
 
8:22 PM
I don't, my brother does
I don't have any pets
But I'm an uncle to 7 dogs and a cat
 
@ssube If you never had a dog that was dying, you couldn't know how true this is :(
 
@SterlingArcher that's the best way to experience pets
 
I had dogs as a kid and they eventually died
we did not store them
 
@sss
lol
@ssube I kept mine under my ROOF
 
Most household items are kept under a roof.
 
8:23 PM
I mean how dogs have the tendency to slowly start dying. You never forget that smell.
 
My mom's poodle had a bee-induced seizure and I laughed cause he's dick who bit me a lot when I was a kid
 
Welp we went from dark jokes to just... dark
@SterlingArcher poodles are pretentious assholes
 
@SterlingArcher something similar happened to my parent's neighbor's dog. That thing wasn't tall enough to reach my hands, so it would try and jump up and down to bite my fingers, the little asshat.
@Vap0r well yeah, they're made up dogs for rich people
 
@SterlingArcher did she love the dog more than you?
 
no
mom loves me the best
I inherited my hair from her
 
8:26 PM
yet she didn't get you a carriage for your birthday
 
i mean... inhairited
im 2 for 2 today boys
crushing it
 
^^^ this guy puns
 
@SterlingArcher Your goldfish rights are hereby revoked.
 
I love how Hannibal always seems like full-on blazed, even when he probably isn't.
 
8:28 PM
@ssube Thank you it do the job!
But now i want to pass an object as an argument, but i will never now all the posibilities of this object
How can i define it?
 
@ssube the end of that makes me crack up so bad
 
2
Q: GraphQL Args error: argument type must be Input Type but got: function GraphQLObjectType(config) {

GrowlerOn server start (node index.js) I am getting the following error with my GraphQL NodeJS server: Error: Query.payment(data:) argument type must be Input Type but got: function GraphQLObjectType(config) { _classCallCheck(this, GraphQLObjectType); This error happened when I changed my ...

 
@SterlingArcher I didn't know you had a boyfriend. What's his name?
 
I found this, but it's way to specific
 
My friend bought this s.afe.space
 
8:30 PM
3 hours ago, by Trasiva
It's official, it's all been a lie. Stephanie is really Stephan.
 
I never said her name was Stephanie
I said I loved Stephan's [on his] knees
Fuck that makes 3
im a jokester today
 
I'm going to text Steph and tell her to cut you off for a month.
 
Scoring yourself seems kind of cheap
 
Do you guys watch Louis on youtube
 
!!s/off//
 
8:32 PM
@KendallFrey I'm going to text Steph and tell her to cut you for a month. (source)
 
Damn
 
ohhi
 
@KevinB How was the meeting you were late for?
 
well, it was a marketing meeting
and i don't do anything related to marketing
 
all meeting are marketing meetings, one way or another
 
8:46 PM
@ssube So like, insightful man.
 
everybody else has work to do
if your development team has a lot of meetings, you probably actually work for marketing
 
@ssube so true XD
 
i'm just part of marketing because the "web team" historically here was part of marketing rather than IT
but i guess... in the past the web team didn't manage servers
like i do now
 
@ssube Can you help me with my little problem? How can i pass an object of objects / key: string to an argument with GraphQL?
an object like
 
@MikeBoutin You mean pass any object, without knowing the properties ahead of time?
 
8:52 PM
Exactly
it's a filters object
 
You can't. That's intentional. You can't pass or receive anything that isn't explicitly listed in the schema.
 
@ssube ho, damn, so i must map all filters
ok, thank you
 
If you want to write something like that, you need to put the operand above the operators ($gt: [foo, bar] vs {lh: foo, op: gt, rh: bar}.
 
Is rails the only thing that uses cofeescript?
 
my mom uses coffeescript
 
8:59 PM
nice
 
Trying to learn Typescript - have a question I can't find an answer for. In my tsconfig.json file, I can specify a target. It's my understanding that this target determines how far "down" tsc transpiles to. Is that correct?
 
@loneboat approximately, yes.
There are other settings that control parts of it, but that's the primary one.
 
e.g. if I target ES5, then all of my typescript gets transpiled to a level most ES5 engines would be able to run?
 
correct. You can go down as far as ES3 in some cases, but ES5 supports most of the new features well enough.
 
So if I change to targeting ES6, I would potentially start leaving some browsers behind?
I'm having an issue with Promises. I found that targeting ES6 instead of ES5 fixes it, but I would rather not shrink my area of supported browsers.
 
9:02 PM
Promises should work just fine in any version. What's the problem?
 
function refreshWithSelectedListEntry(listEntryId):void {
    View.clear();

    Model.getListEntryById(listEntryId)
        .then((listEntry:Model.AthenaListEntry) => {
            View.updateListEntry(listEntry);

            let accountId = listEntry.account.sfid;

            return Promise.all([
                Model.getActivities(accountId, null)  //  <<  TODO: pass in OPPTY ID; ALSO: should this be _new_account_value or new_account/Id?  See stackoverflow.com/a/33125018/390519
                ,Model.getContacts(accountId)
The "return Promise.all([" line
Is saying:
[ts] 'Promise' only refers to a type, but is being used as a value here.
 
that's definitely a bad config, but I'm not sure the output level is what you want to change
try the settings that control what is available (where you'd put that you're on node or the browser, I don't remember the key)
 
Meaning it's not REALLY a problem, but the compiler is just complaining?
 
It means you didn't tell it your environment quite right.
 
Oh okay.
{
    "compileOnSave": true,
    "compilerOptions": {
        "emitDecoratorMetadata": false,
        "module": "amd",
        "target": "ES6",
        "outDir": "ts_built",
        "sourceMap": true
    }

    ,"include": [
        "ts_src/**/*"
    ]
}
That's my whole tsconfig.json
I haven't really done anything to describe my environment really.
 
9:06 PM
"dom" maybe?
wait, no.
 
You're naming possible compiler settings? Or what?
 
i'm not familiar with these options, but, what you'rs doesn't have that mine does is a "lib" section that specifies "dom" and "es6". typescriptlang.org/docs/handbook/compiler-options.html
 
For --lib ?
Oh okay.
 
yea, "lib". I think Promise are under es2015, not DOM. but you might want both anyway
 
Those libraries are built into my Typescript install though, right? Just have to add them to my tsconfig? Or do I have to explicitly include them in my project also?
 
9:10 PM
Yea. They are included. Just put this in your tsconfig: "lib": ["es2015", "dom"],
(or more options from the docs)
 
hmm.
 
I'm reading about --lib from there.
 
yea, same thing
 
the default, if you specify target es5 but not lib, includes dom es5 and scripthost already
 
9:11 PM
Hey that fixed it for me.
I'm targeting ES5, but including es2015/dom
It compiles now at least.
 
which explains why target es6 worked too.
 
the lib setting just tells it where it will be running
 
:p
 
like "these globals will be around, I promise"
 
^
 
9:12 PM
heh, Promise
@KevinB: The docs say --lib actually specifies which libraries to include in the compilation.
Not just where it will be running.
 
but those libraries just consist of definitions
true. target is for that.
 
Oh okay.
 
I think I would have preferred fake modules that you import that were made of only typedefs, but this way works
 
{
    "compileOnSave": true,
    "compilerOptions": {
        "emitDecoratorMetadata": false,
        "module": "amd",
        "target": "ES5",
        "lib":["es2015","dom"],
        "outDir": "ts_built",
        "sourceMap": true
    }

    ,"include": [
        "ts_src/**/*"
    ]
}
Well, ^^ here's what I have now and it compiles.
:-D Thanks!
 
ssube: the --libs way makes more sense, since you don't have to import Promise in Javascript
 
9:15 PM
yes... but I'd rather have nothing available until it's been imported
unfortunately that's not how JS works
 
You can do that with libs: []
kinda.
perhaps it would be better named "environment"?
 
So it's working for me now, after testing it in the browser. But that may just happy coincidence, since I "promised" promises will be there (by specifying lib:[es2015]), but in an older browser it may still break I guess.
If I'm understanding.
 
unless typescript provides a polyfill for promise. I have no idea.
 
Yeah, looks like the generated js really uses a promise.
So all I did was make the compiler happy.
 
more specifically, the type checker
 
9:23 PM
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-1.html
Ctrl-f "Downlevel Async Functions"
That explains my issue with Promises. Okay, was hoping to avoid a polyfill, but guess I'll go ahead.
 
github.com/zloirock/core-js for all your polyfill needs. This is what babel uses.
though, you have more choices for promise polyfills, specifically
 
Do I just include it in a <script> tag before loading my module loader? Or do people typically load it like a module?
 
like a module and you probably only want a few bits. the page describes how to import it in many ways.
like, if you just wanted promises only, you can do that (and I suggest this, i forget what polyfills TS provides)
 
Sweet, thanks.
 

« first day (2412 days earlier)      last day (2536 days later) »