« first day (1620 days earlier)      last day (3342 days later) » 

3:00 PM
@BenjaminGruenbaum If that's all the level of abstraction you need, so be it.
 
@ssube ok, it worked, so for the accessibility it's ok? The element on my sub-menu are focusable when the menu is not opened. What i must do?
 
Well, I wasn't but I got convinced.
 
@ssube tab-index='-1' to all?
 
@SecondRikudo my whole argument is "you don't need that much abstraction in almost all cases".
 
@MikeBoutin that I'm honestly not sure about. The browser is letting you focus on hidden elements?
 
3:01 PM
@BenjaminGruenbaum Well, I do still have my AuthenticationService in PHP that got passed around from application to application.
So reusability is a strong argument for.
 
@SecondRikudo oh, I'm all for libraries, they have nothing to do with architecture though
 
Common tasks like authentication, crud, statistics, these all benefit from having their own services in this architecture.
 
@ssube Ok great! When i set it to display: none it's ok! Thank you! I'm very new to accessibility!
Thank you very much!
 
Can we just all agree, at least, that we want arrow functions in V8 already?
 
No, they just benefit from being put into reusable components - and being made into class libraries.
 
3:02 PM
dumb question, how do you query for all things in a collection that are also in an array? I tried: Students.find({}, { $in: { classes: this.classes } })
 
Libraries for authentication have nothing to do with your architecture or framework.
That's the whole point of a library vs a framework - there is no inversion of control...
 
@MikeBoutin excellent. Actually hiding things like that should prevent focus and most other events, then you can use focus + keydown(space) to trigger your menu
 
@ssube Great!
@ssube Good advices, i just began my accessibility work
Is it possible to track [on tab back] ?
 
user1596138
3:22 PM
Why would a potential employer want to check my credit.
 
responsibility? I mean, I think it's dumb, but I'm sure they can try to justify it
 
make sure you're not an idiot
mostly so they know you're not desperate and won't up and vanish
 
@Jhawins what credit?
 
user1596138
Credit report
 
@Jhawins heh thats weird
only time I had that was for every gov job
but that makes sense
if you have shitty credit you can be bribed easier (or so thats the thinking)
 
user1596138
3:24 PM
No one is asking to check mine but a friend was talking to me about it and then I researched it and it seems to not be a weird thing?
 
user1596138
@Loktar HAHAHA
 
actually maybe that applies to these other jobs
bad credit === more likely to sell/steal company secrets, or just shitty ethics in general?
 
user1596138
Yeah I guess it's ethics
 
user1596138
Credit report == how often you screw people over
 
but regardless I wouldnt be comfortable with it
I mean for my security clearances they dug into my past l ike crazy and that was fine because it was for America.
but if its for company xyz, screw off.
 
user1596138
3:25 PM
Yeah I don't think it's justified. It's never been brought up to me but I wondered
 
user1596138
Cause ya know, being 20 years old there's really nothing I can do about having shitty credit, it's because I have such a short history.
 
you can get good credit in a year
I'm living proof
 
user1596138
Nope
 
@Jhawins if you're positive, you have an awesome credit
 
@Jhawins yes.
 
3:27 PM
@rlemon you never got my pings wrt maple syrup?
 
user1596138
Google that shit. Average score directly correlates to total credit lifetime
 
a year ago I couldn't get a phone in my name. I just qualified for a 350K mortgage
 
Mornin
 
so TRUST ME
you can do it in a year
 
user1596138
You're how old lemon?
 
3:28 PM
doesn't matter. I turned my credit around in a year.
 
user1596138
I have only existed for 1.9 years as far as my report is concerned. Thats the thing. I don't have anything to turn around I just have to accumulate rep basically haha
 
user1596138
It does matter.
 
w/e dude, believe what you want
doesn't effect me
 
@Jhawins personnaly i think it's very intrusive... i already got a lot of Judicial inquiry, never i single credit request
 
user1596138
@rlemon The amount of time between now and your oldest account is huge, it's one of the most important factors. Google
 
3:29 PM
@rlemon affect
 
like I said I don't care any more. we disagree (might even be that is a fundamental difference between can and usa)
 
user1596138
I use credit karma (which uses equifax scores now, so it's not just FICO FAKE-O) and have for 2 years now. And I've done quite a bit of reading on the subject. But I have absolutely no clue what Canada does
 
3 mins ago, by Florian Margaine
@rlemon you never got my pings wrt maple syrup?
 
@FlorianMargaine yea sorry, I will check.
 
@rlemon np dw, just wondering
 
3:32 PM
city?
 
Grenoble
 
2 Business Days	Purolator Express International
Guaranteed✝
Base Cost	$188.35
Fuel Surcharge	$16.95
 
s/Gre/Cher/
 
that is their cheapest for puro
 
Damn, that wouldn't work
 
3:33 PM
@FlorianMargaine if you know anyone traveling from North America to france they can bring it with
I could ship to them
 
user1596138
@rlemon But yeah you're right you can do things fast.. My equifax score has gone up 119 points this year. Sorry, I'm kinda edgy today.. I got to stop in the shoulder on the highway in a cloud of smoke on my way to work
 
@rlemon I don't, that's the point :P
but ugh, thanks
 
maple trees in france?
you can make your own
it is very easy to make
 
user1596138
Please <3ro
 
not the same as canada's
 
3:34 PM
that's a shame :/
 
If you get it delivered to Mexico by Saturday, @BadgerCat could bring it
 
international shipping is retarded
@copy yea to the states (at a reasonable) price is like 4-5 days
customs and shit
@FlorianMargaine I'll bug boss man again and get you started on that project. we'll send syrup with hardware ;)
also, nudes.
 
@rlemon woah
 
LOTS of nudes
 
3:36 PM
that must be a diff between the US and Canada
if you have bad credit it will take at least 7 years in the US to make it good.
 
@Loktar yup -- my credit was like <400 and now I'm 910
went from a D to an A+
 
yeah stuff stays on your report here for 7 years minimum
as stuff starts dropping off it goes up
you can help it along ofc
 
but that was because I put a lot of money in RSP's and got a credit card and use it always and pay it off every two weeks
 
but its a drawn out process :/
 
also never missing a bill payment in a year.
all of it added up, I was shocked when I checked my credit score
 
3:37 PM
@rlemon yeah all that stuff will help here as well for sure
but if you have "bad" credit here (not no credit) then it takes a while
if you have no credit, its easier/faster to bring it up
 
yea I had terrible credit
 
What's the fastest way to destroy your credit?
 
lol its why I'm paranoid with my credit
 
when I was 18 I maxed a CC and when I was early 20's I walked away from a $1300 phone bill
 
one black spot just jacks you up
@SterlingArcher bankruptcy :p
 
3:38 PM
Haha oh good, im alright there
 
bankruptcy here is a minimum of 7 years. then you start again with 'no credit'
(my mom went bankrupt after her first divorce)
 
@SterlingArcher Bank robbery.
 
its something like that here, but I dont think you get the benefit of having no credit
my parents filed bankruptcy twice :/
their credit was such garbage.. my dad couldnt even get a loan for 2k for a car lol
 
my dad stuck her with a house and a car she didn't have and couldn't afford
 
that sucks man
my dad got hurt/disabled so thats what did it for us
 
3:40 PM
yea he checked into the psycho ward and she was still technically his wife (divorce hadn't gone through yet)
so she got stuck with it
 
but my parents were just bad with bills anyway, they wouldnt pay
"They wont shut you off for 2 months"
lol like wtf?
 
I'm not looking forward to 'bills'
 
hahah
 
I like that everything is combined into one right now
so much easier to pay one thing vs 5
 
3:41 PM
@SterlingArcher Next reply: "It doesn't have to be."
 
@rlemon hah yeah
so your utilities are rolledup into your rent currently then?
 
yup
all inclusive. I just pay phone and internet
 
damn nice
 
user1596138
@Loktar Hahahaha my parents...
 
user1596138
They do that and then at tax time every year catch up. As long as I can remember. Even though they don't need to do that
 
3:46 PM
@Loktar new place I'm going to try to work it out that the GF manages all of that crap
she doesn't pay rent. she can do the grunt work
 
user1596138
@rlemon Could you even get a CC over $300 limit at 18?
 
@Jhawins they gave me 2500
 
user1596138
Hahahahahahaha
 
I worked software and made good money
 
user1596138
Here they don't do that. Because you'll max it out and it'll end up as a charge off
 
3:47 PM
I got a job at an elearning place out of HS
I had a higher CC limit than my mother :D
 
damn right (double standards)
 
user1596138
@rlemon ...But that doesn't matter here? You would have poor/no credit history regardless of where you worked at 18. Canada must be different
 
user1596138
Or the world is different now. You are about a decade older than me right?
 
@Jhawins yes but they, in that case, see how much money you earn and how long you've been employed there
!!afk lunch
 
@KarelG 'tain't the only thing double in that picture
 
3:49 PM
Chase declined my CC application a couple months ago... I'm still without a CC, though, I'm not complaining. I'm gaining credit by making car payments
 
user1596138
I got a CC with capital one when I was 18, $300 limit. I closed it because I kept making mistakes..
 
user1596138
And that was only on a 300 card lmfao thank god they didn't give me jack shit!
 
I got a checking account
and wrote some bad checks because I needed gas
back then checks were like free money!
 
user1596138
@Loktar Hahaha.. I've done that at my buddy's gas station but I know when they cash those checks so I never bounced one
 
cheques are satan
 
user1596138
3:51 PM
Got me out of some tight spots.
 
I just hate keeping track of money that I have, but don't actually have
 
user1596138
Even if they did cash it then there's the "will my credit union allow this much of an overdraft?" gamble
 
user1596138
Which only costs $5.. But they get mad haha
 
user1596138
When you're 18 it turns out you can get an auto loan without a co-signer. Also turns out the interest is 18%. Fuck
 
dumb question... how can you see if the current date is between two date ranges reliably?
 
user1596138
3:57 PM
@corvid Just compare them like numbers
 
by using a date library, because who the fuck has time for parsing shitty dates?
 
user1596138
You don't need to use a library...
 
!!google javascript if date in range
 
@corvid moment.isBetween
 
user1596138
3:59 PM
!!> var far = new Date('2016'); var short = new Date('2015'); var cur = new Date(); console.log(cur > short && cur < far)
 
@Jhawins "ReferenceError: assignment to undeclared variable far"
@Jhawins "undefined" Logged: true
 
user1596138
Just compare Date objects
 
371
A: Compare two dates with JavaScript

moonshadowThe Date object will do what you want - construct one for each date, then just compare them using the usual operators. I suggest you use drop-downs or some similar constrained form of date entry rather than text boxes, though, lest you find yourself in input validation hell.

if you are going to be doing tons of date related stuff maybe something like moment.js would be necessary
 
i am trying to code a javascript page loader on my asp.net site but the problem is it won't go to the target page
 
otherwise.. why add another dependency?
 
4:00 PM
@ThembaMabaso 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.
 
user1596138
function isBetween(curDate, lowDate, highDate) {
  // all args are Date objects
  return curDate > lowDate && curDate < highDate;
}
 
^--- doesn't matter of which the arg type is :p. it even works for integers
 
@CapricaSix got that...
 
@ThembaMabaso have any code, a reduced test case or anything?
 
no, just read my mind
 
4:09 PM
mind...
let's play some mind games...
 
UGH
COME ON, @jAndy!
 
user1596138
@KarelG Oh right. That's true.
 
@jAndy you're a loser
 
leaves the chat room forever
 
<title>Please wait...</title>
<script type="text/javascript">

var iLoopCounter = 1;
var iMaxLoop = 6;
var iIntervalId;

function BeginPageLoad() {
location.href = "<%=PageToLoad %>";

iIntervalId = window.setInterval("iLoopCounter = UpdateProgressMeter(iLoopCounter,iMaxLoop);", 500);
}

function UpdateProgressMeter(iCurrentLoopCounter, iMaximumLoops) {
var progressMeter = document.getElementById("ImgLoading")

iCurrentLoopCounter += 1;
if (iCurrentLoopCounter <= iMaximumLoops) {
progressMeter.innerText += ".";
 
4:10 PM
I lost the friday
 
@KendallFrey indeed. But I'm happy to be in good company :p
 
o/ @jAndy
 
\o
/o/
 
@ThembaMabaso edit your message and hit ctrl+k
\o\
 
This is what I think of when i see @jAndy ^
 
4:11 PM
that's.. interesting
 
They're valves for pools, I used to work with them a lot
 
holy cow.. where comes that from, love it
 
@ThembaMabaso is <%=PageToLoad %> being populated correctly?
 
by the way.. that baseline for FEDs (i have the shortcut naming) is pretty darn awesome
 
user1596138
4:13 PM
@jAndy google images "jandy" lol
 
webpack also looks pretty sick
 
@jAndy it is
using it like crazy
 
it's like the thing I was always after
 
:22273845 yes it is on the .cs file of the PageProcessor.aspx    protected string PageToLoad;
    protected void Page_Load(object sender, EventArgs e)
    {
        PageToLoad = Request.QueryString["Page"];
    }
 
man, why is people stuffing HTML with chunks of script codes
 
4:14 PM
@Loktar do you use it for static build processes or dynamic delivery ?
 
user1596138
@KarelG people love to do things poorly
 
static
you mean vs code splitting?
Im going to be doing that soon actually for our admin pages
 
but its quiet able to also serve as requireJS clone isn't it
 
yea, thats what I think makes it better than browserify
 
definitely
 
4:15 PM
I mean browserify can do that, its just not straight forward
 
@ThembaMabaso it's not prone to be error proof. Assume that there is no Page-param entered, then you get an empty PageToLoad
 
in webpack that is one of the main features from the start
 
how do we simulate slow upload speed in localhost ? Firefox side (preferred)? OS side? Or MAMP pro side ?
 
In Chrome you can just throttle network speed in dev tools.
 
@animaacija Why?
 
4:15 PM
replace it with an existing sentence, like "homepage.com" to see if the value gets used in the script
 
sounds all great and good.. right now it looks a little complicated and feature packed, but I'm sure I'll get into it pretty soon
 
@jAndy also bundling in CSS... so damn cool
 
@Loktar Bundling?
 
var React = require('react'),
    CreditScoreStyles = require('./CreditScore.less'),

    CreditScore = React.createClass({
        displayName: 'CreditScore',
        getDefaultProps: function() {
            return {
                alpha: '',
                scoreAlpha: '',
                scoreNumeric: ''
            };
        },
        render: function() {
            if (this.props.alpha && this.props.alpha !== '') {
                var className = this.props.className + ' c-credit-score c-credit-score-' + this.props.alpha.toLowerCase();
super small example component
line 2 we include our styles
 
@KarelG should i use a try catch or wat? I am new to JS guys
 
4:16 PM
so the styles for each component live in the same directory as the js
 
I don't get it
 
@SecondRikudo to see how page loads on slow connections and because uploading locally is more like just coppy & paste a file, i my xhr progress logs out only 0 and 100 % nothing inbetween
 
CreditScoreStyles is a js object ?
 
@Loktar And your selectors only affect the component?
 
1 min ago, by Roel van Uden
In Chrome you can just throttle network speed in dev tools.
 
4:17 PM
@jAndy you can actually bundle the css/styles in your js
 
ahh noe forget it
 
@RoelvanUden not quite you still have to namespace them
but it makes it a lot easier to figure out what styles control what
 
but what does CreditScoreStyles represent in the above example
 
Namespace them with a container like '.CreditScore .header' or something?
 
@SecondRikudo aight, so i add chrome in my collection. Nothing like this at firefox yes?
 
4:18 PM
No idea.
 
we just append the component type to the beginning
 
!!tell animaacija google firefox throttle network speed
 
c-credit-score
 
@RoelvanUden thx
 
4:18 PM
c is for common component, and it lives in our components/common/ area
 
@Loktar what does return when you require a .css or .less file ? In JS ?
and of course you need some server-side counter-part in order to make this work no ?
 
@ThembaMabaso to make PageToLoad = Request.QueryString["Page"]; error proof is a C# thing because it occurs in the ASP environment. Not in js. Now, comment that and add a line with PageToLoad = "homepage.com" to see if that string gets passed to the script
 
@jAndy the "compiled" css in a string in the JS
for IE9 support I ended up having it make the css file outside though
 
i know how to that, but it's not hard eh. i hope ...
 
you can even embed images into the js file, adds them as dataurls
you can tell webpack to embed all images under 5k for example
and it checks your css image pages, font file paths, auto gets/includes them
its pretty slick
 
4:20 PM
ehh.. so webpack transfers the css and then creates a style-tag on the fly with the contents or something ?
 
yea exactly
you can do it the traditional way as well, thats what we did because IE9 has the css rule limit (4095 per sheet/style tag or whatever)
but yeah man its pretty crazy what you can do, you could have your application consist of an html file and a js file and thats it lol
webpack also looks at your import statements in the css, so we just add this to the top of any .less file we include
@import (reference) "~styles";
so you can use the global variables, mixins from lesshat, whatever
 
sounds really good
 
yeah it has a learning curve but once you get it, its pretty great
 
interesting point would be, if that gets "bundled" in a way or does it transfer every require call seperately
if you like require 3 stylesheets and some javascript files
(calling another module for instance)
 
makes me think of the inline feature ^^
 
4:25 PM
@FlorianMargaine you have too many hidden gems man
 
there's the CLI going with it: github.com/Ralt/cssminifycli
and it's not hidden! :P
 
@jAndy not sure what you mean, it would bundle the 3 stylesheets and js into one bundle, but if you use code splitting youd get seperate bundles loaded based on the path you tell it, so like only load X.js when user hits /test.com/blah
 
so you always need a server-side script
that would be a little caveat to me
 
no, youd use a front end router
only thing you need a server for is to serve up static content
I havent done anything with code splitting yet with webpack, so I'm not an expert in it
but you dont need a server at all for webpack
 
mhh alright. however sounds definitely worth getting into it anyways
 
4:28 PM
yeah for sure, react community uses it heavily thats what got me into it
 
@KarelG thing is i had used something like PageProcessor.aspx?Page=TargetPage.aspx
 
4:49 PM
ugh, overseas travel is a pain
 
I quite like when I'm going west, not so much going east
 
where ya going @KendallFrey?
 
Tajikistan
not leaving for a month and a half, but need to renew my passport right now
 
morning
 
user1596138
(Short of a college degree) is there any type of course/certification I can go through that actually makes a difference? // Front end dev question
 
4:52 PM
@Jhawins define "difference"
learning-wise or CV-wise?
 
user1596138
CV
 
@KendallFrey work? leisure? picking up a wife?
 
@Jhawins w3schools
 
work
 
user1596138
Something to answer the question "what makes you qualified for this position?" Aside from personal projects and what I've done at my current job (which isn't that easy to present)
 
4:53 PM
@Jhawins Then I dunno, I haven't really applied for a job for a while
 
@Jhawins I perform services in exchange for currency.
 
@Jhawins there are specific accreditation you can get. but those are very specific generally.
like, you can get your CISCO cert
or your MS certs
 
user1596138
Yeah I mean something less specific than specific certs and more specific than a CS degree
 
I am unaware of a "this guy knows front end" cert
 
@Jhawins Racking up in SO rep also helps
 
4:55 PM
@Jhawins Can you get colleagues to vouch for you or would that be a difficult thing to do since it kindof signals you plan to leave if they are current?
 
user1596138
@ivarni I'm the only dev here and this is my only dev job ever (20 year old)
 
right.. that makes that part a bit awkward indeed
 
user1596138
See my issue? lol
 
SO rep / github contributions
they go pretty far
 
user1596138
I know..
 
4:56 PM
and ace any kind of technical interview they'd throw at you
 
user1596138
Just wondering.
 
user1596138
How about a "this guy knows anything" cert lol
 
does khan or code-academy give out a "congrats! you passed" printoff?
 
I've done some 4-5 day courses that did
 
user1596138
I have to look at it as a gamble for the person hiring me. And right I don't think I would like the odds of hiring me and me being able to do what's asked of me
 
4:57 PM
That CSS game told me I was a CSS God
Is that resume worthy?
 
@Jhawins cisco offers one of those
 
amybe Brainbech certs
 
!!youtube rap god toy story
 
@SterlingArcher ^
 
4:58 PM
@Jhawins No, you should not look at it like a gamble, you should know they're getting a good dev. It's they who should feel it's a gamble and you who should convince them it's not :)
 
oh my god LOL
 
@SterlingArcher yea I just about died the first time I watched it :D
 
user1596138
I personally don't see why I would hire me over anyone else. Unless I accepted some dirt pay
 
@Jhawins I was the same
 
4:59 PM
I loved this one
 
22yo, just finished with my army service, no job experience
 

« first day (1620 days earlier)      last day (3342 days later) »