« first day (1991 days earlier)      last day (2962 days later) » 

5:01 PM
@SomeKittens I have no idea to be honest, I'll have to ask
 
Ask them how big their package is
2
 
I think that violates my HR training video
 
#nofucks
 
No fucks, until a hard left turn
 
guys, i have the following HTML: <a href=''><span class='glyphicon glyphicon-plus'></span></a> assuming $(this) is the A tag how do i change the class of the span to something other than glyphicon-plus
i am trying: $(this).find("span").removeClass("glyphicon-plus").addClass("glyphicon-minus"); but this doesnt seem to do what i want and the glpyhicon class doesnt change.
i've also tried $(this).firstChild,removeClass() but had an undefined error when doing this
 
5:05 PM
Nice channel @SomeGuy ^
 
$('span', this).removeClass('poop').addClass('not-poop');
 
@Andy have you tried doing that after the dom load?
 
same as $(this).find('span')
 
@Andy You should use the console to log out what this is, so you can determine what it actually is
 
@JoJo yep, it's after some Ajax stuff and the DOM has already loaded.
ok, right, i'll take a look
shit a brick, i've been kicked out of my co working space for the night
thanks for the help guys and no doubt be back on line tomorrow or whatnot.
 
5:07 PM
kicked out of your workspace?
I didn't know that was a thing
 
coworking places are weird
it's a big (incredibly loud) room full of iOS app devs
 
^
 
trading ideas and whiteboarding wireframes
the worst place I've ever worked and all I had to do was 2-hour meetings with a client every week or so
 
I wonder which country is the largest producer of jQuery plugins? I bet it's the US
 
they shut at 6
ot desking aint ideal
 
5:10 PM
my childhood summed up
 
those damned lemons
 
reddit.com/r/turtlefacts @rlemon you're welcome
 
@rlemon LOL
 
5:17 PM
So @SterlingArcher do you like metal?
 
Don't you dare
Don't you ruin metal for me Kendall
 
I swear on your mum
 
did you get my ping
 
@SterlingArcher ^^
 
5:18 PM
@SterlingArcher You don't want to know what I do on your mum
 
Ummm I missed it. I'm not sure if I want you to post it again though ._.
 
@SterlingArcher haha, that's probably nice
 
14 hours ago, by Kendall Frey
@SterlingArcher you like metal, right? https://www.youtube.com/watch?v=0GErGfHjHQ0 your feelings about to flip their shit
 
one of these days, I might just get a severance package
 
@KendallFrey whatever you do to my mom I just do to you anyways
 
5:18 PM
No, you really don't
 
!!tell Sterling wiki alligator snapping turtle
 
I already hate this
For some reason, I can't stand the japanese singing
All I think of is anime, and I hate anime
Sorry @MadaraUchiha
 
imagine seeing this
 
crl
var o={k:1}; var {a=2, b=a>0?3:4}=o; [a,b] // do you think it works?
 
5:20 PM
Babymetal is so... I wish there were words for here
 
!!youtube jackass snapping turtle on a stick
 
crl
it fucking does..
 
@SterlingArcher FWIW, I much prefer pretty much any language besides English
 
@SterlingArcher but these are alligator snapping turtles
they are much worse
 
5:21 PM
@SterlingArcher I hate anime, but babymetal is fucking awesome
 
Songs are usually better if you can't understand the words
 
@rlemon I saw them on Wildboyz and I think animal planet. Those things have the power to snap bones I think
 
I've been procrastinating for so long my weekly-snoozed reminder to change my oil popped up alongside a new reminder that I should change the oil I put in three months ago, when I started snoozing the former reminder.
 
@SterlingArcher like butter
 
@SomeKittens have fun buying a new engine
 
5:22 PM
Crocodiles have the greatest bite force on earth, right?
Why are reptiles such angry biters lol
 
All of the oil spilled out of my car on the highway, so I have all new oil in that bad boy
 
@SterlingArcher evolution
 
@SomeKittens My dad did I think 20,000 miles on oil
 
bite and don't let go. if in doubt, twirl
stick win every time
3
 
@rlemon goddammit
 
5:23 PM
Plant stick, grow new stick
 
Is anyone creating css-per-page? I'm getting pushback from my team thats the direction they would like to go.
 
@CharlieBrown god no. All pages should follow a template schema of CSS
Custom CSS for certain aspects is fine, but ffs not every single page
 
75% of your CSS should be designed to be reusable in other places on the page.
 
that sounds awful.
 
They would prefer that css (less) be written to match the nesting of the html
@ton.yeung no, just arguing with my team all day about css
 
5:25 PM
do it in a modular way, rather than per page
 
so they want MORE css?
 
They would like the following:
 
The more CSS I have to write, the more I wish I were dead
 
yes it is
 
5:26 PM
Array.from pisses me off no end
 
.view-payments {
    // some css
    .payment-list {
         // some css
        .payment-list__item {
             .item-name {}
        }
    }
}
 
@KendallFrey why
 
maybe about 4 levels deeper too
 
[].slice.call
 
@rlemon because it has to exist
 
5:26 PM
@CharlieBrown now your resulting css is stupid tho
@KendallFrey use spread ??
 
nesting that much makes overrides really difficult
 
@rlemon still stupid
 
so you end up with a lot of duplicate css
 
I usually have the following in a ground-up project
- header
- footer
- master (core, reusable styles)
- one per feature (lightbox, slider, article, etc)
 
@ssube Will be doing that Thursday, but 'engine' isn't technically correct in that instance.
 
5:27 PM
@rlemon spreading doesn't create an array from a nodelist does it?
 
but not one per page
 
add to the nodeList prototype?
:D
 
I want my duck typing back
 
@SterlingArcher sure does, after you add a iterator
 
@KendallFrey hahahaha, autocorrect, amirite?
 
5:27 PM
or interfaces or whatever
 
like... let x = ...document.querySelectorAll("*");
oh.. what?
 
@SomeKittens what?
 
NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];
[...querySelectorAll('poop')].map
 
@SomeKittens how do you figure that? If you don't change your oil, you'll be getting a new engine.
 
the main argument is, you can reuse the same chunk of html (an include) and it looks how you want
 
5:28 PM
I still prefer Array.from instead of spreading into an array, but that's just me trying to be more explicit in my code
 
@CharlieBrown that is the problem with CSS, it is markup centric not design centric
following down that path just makes things harder in teh long run
 
I agree, but they believe this as much as they believe in breathing
 
well, i assume because the markup will match the css nesting in that case, for that particular include
 
you are working on describing a design, not markup
 
I thought you weren't supposed to modify the prototype like that
Unless iterators are the exception?
 
5:29 PM
they're not
 
@SterlingArcher the iterator will be there eventually I'm pretty sure
 
@ssube Thursday I'll be reserving my spot for a new car, but it's less 'engine' more 'motor'
 
this is just a hack in the meantime
 
it's a hack to work around weird un-arrays
 
@SomeKittens lol, getting one of those wind up cars?
 
@SterlingArcher but not as oddly satisfying as babymetal
 
@ssube I'll have to re-look, but I'm pretty sure they're making nodeLists and HTMLCollections interable
 
@KendallFrey you stop this blasphemy
 
@rlemon bout time
 
5:30 PM
they won't have array methods. They will have the symbol iterator
 
@SterlingArcher \v/
 
Here some actual css that gets output
.view-paymentcenter .panel-default .panel-heading .panel-title .actions-payshow .btn-link {
  color: inherit;
  font-weight: bold;
}
.view-paymentcenter .panel-default .panel-heading .panel-title .actions-payshow .btn-link:hover {
  color: black;
}
 
This ends poorly... imgur.com/gallery/4dvbue0
 
@CharlieBrown when specificity is concerned, you should only be as specific as you need to be
padding in layers of specificty can bite you in the ass hard if the design ever need tweaking
(which, we all know it will.)
 
5:33 PM
@ndugger weightlifting videos scare the crap out of me
 
im def agreeing. i have to convince them somehow
 
That ended a fucking lot better than I thought it would
 
to me, its obvious as all heck
 
> "They are africanized"
 
@KendallFrey I've seen some fucked up stuff in the gym man
people just asking to get hurt
one lady laying on her back pushing the squat bar up with her legs (basically head-standing at the end)
it was a track guided squat rack, but still.
ohh I think you've both seen this already
but kills me every time
@SterlingArcher @KendallFrey
 
5:37 PM
lmfao
!!youtube after the burial lost in the static
 
@KendallFrey educate yourself on good metal son
 
@rlemon uh, what
 
!!youtube through the ashes of empires full album
 
5:38 PM
now that^ is worth a listen
 
@SterlingArcher Lost in the Static as in the game?
 
defacto
 
youtube.com/watch?v=F61G3gOa_A8 Whoever searched for snapping turtle meant this
 
common practice?
 
5:39 PM
convention
 
@SterlingArcher nah, that has nothing to do with the game
This game:
 
The game?
 
no and fuck you too
 
Hey.
Save it for my mom.
Asshole.
 
save it for your mum's arsehole?
 
5:42 PM
yes
she's been saving it for me
 
IF HES FEELING SQUIRRELY SO BE IT
 
ew
 
This is the price of our friendship
 
!!vape then coffee or coffee then vape
 
@rlemon vape then coffee
 
5:43 PM
!!afk ^
 
!!afk ^
 
@ton.yeung 3
 
I'm being interview by Spotify in a few days for a front-end developer job. Anyone working at Spotify who might have some tips? I was told it's a "technical interview"
 
guys, why is bluebird not running these promises in the sequence they were given?
var Promise = require('bluebird');
var commands = `MG"Hello";MG"Goodbye";MG"Nope";`.split(';').filter(Boolean)
Promise.map(commands, command => {
  return new Promise((resolve, reject) => {
    Meteor.setTimeout(() => resolve(command), 2000);
  });
}, { concurrency: 1 }).then(results => console.log(results))
 
Line 2 is missing semicolon, wont solve your problem but you should use semicolons
 
5:48 PM
@corvid bro you need to jump full into es6 :P
lambda expressions AND var?
come on man :P
 
@corvid Promise.delay()
const Promise = require('bluebird');
const comamnds = 'whatever';

Promise.map(commands, command =>
  Promise.delay(2000)
    .then(() => command), { concurrency: 1 })
  .then(console.log);
Bah, needs better formaatting
But that's the gist of it
 
@MadaraUchiha actually no
 
Giphy doesn't work at school :(
Wait wait I could theoretically.... AHA
 
5:54 PM
> Neither does imgur :(
 
@rlemon did you just...
 
Yeah I have proxies I can use... but..
If I modify my extensions code to go through my website and show the image... Hehe
Just like Slack does slack-imgs.com/…
 
@rlemon Have your girlfriend (wife?) take a pregnancy test.
That joke was dad level.
 
So I could do tristanwiley.com/img/?url
 
@TristanWiley I wouldn't go there
 
5:55 PM
My school fricking blocked Github
 
You'd be flagged as malware
 
@TristanWiley Because you'd be diverting traffic to your own web server?
Where you can MITM, and log, and steal cookies
 
Nono
So my extension (pinned) has a Giphy command /giphy. And I just get the URL for the image from a REST API call. So all my website would do is just a PHP script that downloads the image and shows it, instead of showing it from Giphy's site.
If that makes sense.
 
Who blocks github
 
5:58 PM
a school blocking github sounds counterproductive
 
@SterlingArcher we're going to, on our build bots
every time it goes down, a couple packages with hidden git deps break
 
I'm in high school. I have to have a serious talk with my tech department.
 
you monster frisbee
 
function poop(bool) {
  if (bool) { // I want to return a promise, but I already know the resolved value, so the new constructor is not needed.
    return Promise.resolve("poop");
  }
  return new Promise((resolve, reject) => {
    // ...
    resolve("not poop");
  });
}
poop(true).then(expectsPooP => console.log(expectsPooP)); // poop
poop(false).then(notPooP => console.log(notPooP)); // not poop
is this the correct approach?
 
Why do you name every function poop?
 
5:59 PM
v
 
foo is boring?
 
^
 
poop is smelly
 
you're smelly
rekt
 
kek
 

« first day (1991 days earlier)      last day (2962 days later) »