These are chat archives for niallobrien/IrishDevs

6th
Jan 2015
Niall O'Brien
@niallobrien
Jan 06 2015 09:08
@aaronsnig501 A bus to Ballybeg/WIT passed me about 2 mins after I spoke to you this morning, lol
I’ve been listening to this podcast quite a bit lately and it’s really good. If you’re interested in Angular, it’s definitely worth a listen. They regularly have members of the Angular team and quite a few high profile Angular/JS experts, many who have created awesome http://pluralsight.com courses. Worth a listen: http://devchat.tv/adventures-in-angular/
Niall O'Brien
@niallobrien
Jan 06 2015 09:16
Looks like MoonPig got in shit - lol! http://www.ifc0nfig.com/moonpig-vulnerability/
Niall O'Brien
@niallobrien
Jan 06 2015 09:37
Terrible advice for front-end project structure in my opinion. http://www.sitepoint.com/good-front-end-architecture/
T.J. Fogarty
@tjFogarty
Jan 06 2015 09:40
definitely disagree on the Sass structure, page-based styles is creating a nightmare for yourself
Aaron Sinnott
@aaronsnig501
Jan 06 2015 09:41
That's ridiculous. You're project would end up being massive if done that for every page in your application
Niall O'Brien
@niallobrien
Jan 06 2015 09:42
Yeah, I can’t believe they’d publish such an article. Terrible advice.
Aaron Sinnott
@aaronsnig501
Jan 06 2015 09:43
Especially with such a misleading title!
Niall O'Brien
@niallobrien
Jan 06 2015 09:43
Ah, you made it into work @aaronsnig501 :)
Aaron Sinnott
@aaronsnig501
Jan 06 2015 09:43
I sure did haha
Mick WAll
@mjpwall
Jan 06 2015 09:43
any of ye got any experience in testing with node? I've got an express app using passport for auth, supertest should work but having difficulty testing an authorised user.
Niall O'Brien
@niallobrien
Jan 06 2015 09:44
There’s many options here @mjpwall
I haven’t done much myself, but Jasmine seems popular. Also take a look at Mocha with Sinon.
Mick WAll
@mjpwall
Jan 06 2015 09:46
Was using mocha with supertest, I'll take a look at those others, thanks @niallobrien
I'm liking gitter, a desktop app for linux would be great, I'm sure it's comming
Niall O'Brien
@niallobrien
Jan 06 2015 09:46
No prob, the crowd I’m moving to use Mocha with Sinon and love it
Yeah, it’s essentially IRC without the bollox
lol
Mick WAll
@mjpwall
Jan 06 2015 09:49
chrome app seems fine, guess that's the solution on linux for now
Niall O'Brien
@niallobrien
Jan 06 2015 09:49
Yeah, better than nothing I guess.
I use Gitter on OSX and iPhone and it’s pretty awesome.
Mick WAll
@mjpwall
Jan 06 2015 09:51
yeh got the iphone app and osx app, using linux in work, chrome app seems to be the only option, no notifications though
Niall O'Brien
@niallobrien
Jan 06 2015 09:51
Just leave it open on a second monitor, lol
Elon Musk’s Reddit AMA is pretty awesome! https://pbs.twimg.com/media/B6qEyt1IAAEj6FE.png
Niall O'Brien
@niallobrien
Jan 06 2015 10:03
What do they have you developing with node @mjpwall ?
Mick WAll
@mjpwall
Jan 06 2015 10:05
It's an api for that panda project, working with postgres, I'm testing that. Also doing a simple app for the masters that uses passport, have real problems tesing that.
logins work fine in the browser but the test is timing out using mocha with supertest
Niall O'Brien
@niallobrien
Jan 06 2015 10:06
Your tests shouldn’t hit the DB or network anyways
Stub/mock out the dependencies
So if your app has to hit /users to get a list of users, you will instead stub that dependency and when your test looks for /users it’ll get a response without hitting the network or db
Mick WAll
@mjpwall
Jan 06 2015 10:08
the plan was to use a different db for testing, so a local db for testing (I'm using vagrant) and a mongolab db for production
Niall O'Brien
@niallobrien
Jan 06 2015 10:08
I don’t see the point on hitting the db
You know it works...
Use Sinon to stub/mock your shit
:)
People have different views on this, but that’s the general consensus.
Mick WAll
@mjpwall
Jan 06 2015 10:10
I get ya, but for the work project the manager is insisting on using a test db so I'd like to get it working.
Niall O'Brien
@niallobrien
Jan 06 2015 10:10
Ah - fookin’ managers, lol
Well if you’re using Supertest you might be best to drop down to Superagent
I guess a lot of it depends on the Passport auth strategy you’re using too. But yeah, I’d imagine it’s a pain in the balls.
It’s very easy for me to sit here and type shit after all, lol
Mick WAll
@mjpwall
Jan 06 2015 10:13
yeh, supertest uses a supertest.agen() function that does that, should work for login and store the session, fucker is timing out though
Niall O'Brien
@niallobrien
Jan 06 2015 10:14
Strange alright, what is it trying to connect to that’s timing out?
Mick WAll
@mjpwall
Jan 06 2015 10:15
I'm doing a post to the login route as shown in a number of examples, no joy though
Niall O'Brien
@niallobrien
Jan 06 2015 10:21
Something funky with your code me thinks.
Niall O'Brien
@niallobrien
Jan 06 2015 10:31
@tjFogarty Might be nice to introduce some acceptance testing to the team with node.js. http://nightwatchjs.org/
@tjFogarty Possibly run a gulp task to fire off that shit! :)
T.J. Fogarty
@tjFogarty
Jan 06 2015 10:31
not a bad idea at all
I used acceptance testing to test the backend of a Wordpress site that kept breaking.
T.J. Fogarty
@tjFogarty
Jan 06 2015 10:34
awesome, might look into something like this as well https://github.com/Huddle/PhantomCSS
Mick WAll
@mjpwall
Jan 06 2015 10:35
@niallobrien you're probably right, I'll get another look at it tonight, sorting the work shit now, that's going a little better!!
Niall O'Brien
@niallobrien
Jan 06 2015 10:35
Oh wow - it does image diffs @tjFogarty
That shit is crazy
T.J. Fogarty
@tjFogarty
Jan 06 2015 10:38
nope but it looks mad, in a good way
Niall O'Brien
@niallobrien
Jan 06 2015 10:38
For sure!
On a large project, I’d imagine it’d be very valuable
Mick WAll
@mjpwall
Jan 06 2015 10:46
phantomflow looks mental
Niall O'Brien
@niallobrien
Jan 06 2015 10:48
Big time! On a large-scale sass app I can see it being a huge benefit to front-end teams.
SaaS app*
Niall O'Brien
@niallobrien
Jan 06 2015 11:04
@tjFogarty I’d say use Nightwatch for simple UI testing, making sure shit’s still there and working as expected etc. PhantomCSS for fine-grain testing of your responsive design, especially when you’re afraid to make CSS changes in case it breaks other stuff.
T.J. Fogarty
@tjFogarty
Jan 06 2015 11:05
nightwatch looks class, cheers
Niall O'Brien
@niallobrien
Jan 06 2015 11:06
Yeah, it seems like it’d be pretty quick to get up and going. Some testing is better than none for sure.
Great, Twitter fight with an Irish Wordpress developer, lolz!
T.J. Fogarty
@tjFogarty
Jan 06 2015 11:13
call him out, fight in the ball alley after mass
Niall O'Brien
@niallobrien
Jan 06 2015 11:13
"Back of the bike shed, after school! You’re dead!"
lol
He owns this shite company: http://www.bosmedia.ie/
I love being an asshole sometimes, lol
T.J. Fogarty
@tjFogarty
Jan 06 2015 11:15
it’s fun, at least he’s using WordPress
Niall O'Brien
@niallobrien
Jan 06 2015 11:15
I hope he gets aids from it.
Or anal cancer :)
T.J. Fogarty
@tjFogarty
Jan 06 2015 11:16
at least give him the choice of the two anyway
Niall O'Brien
@niallobrien
Jan 06 2015 11:16
No, he deserves both. Ha
ukip.org expired then this guy did this: https://twitter.com/felix_cohen/status/552409455238053888 Lolz
T.J. Fogarty
@tjFogarty
Jan 06 2015 11:21
brilliant
Mick WAll
@mjpwall
Jan 06 2015 11:25
ukip.org is still live
Niall O'Brien
@niallobrien
Jan 06 2015 11:26
Their domain’s expired though
Open for registration
:)
Some laugh if yer man gets the domain
Mick WAll
@mjpwall
Jan 06 2015 11:27
@niallobrien what's your twitter name
Niall O'Brien
@niallobrien
Jan 06 2015 11:27
@niall_obrien
I’m on it the whole time. Love Twitter
Mick WAll
@mjpwall
Jan 06 2015 11:32
cool
lolz
T.J. Fogarty
@tjFogarty
Jan 06 2015 14:37
pissing about with something, basically a front-end starter template with ES6 https://github.com/tjFogarty/boilerplate
Niall O'Brien
@niallobrien
Jan 06 2015 14:45
Lookin’ good :)
Niall O'Brien
@niallobrien
Jan 06 2015 15:27
Or just rip out Foundation’s interchange :)
Chris Kennedy
@Kriyo
Jan 06 2015 15:35
Naice
Niall O'Brien
@niallobrien
Jan 06 2015 15:55
Grrr - last msg was for Skype, lol
@tjFogarty Must make a node & Express setup that I can just "clone & go" with gulp integration. Would be nice if such a setup catered to MEAN stack and regular server side view rendering.
Niall O'Brien
@niallobrien
Jan 06 2015 16:25
Chris Kennedy
@Kriyo
Jan 06 2015 17:26
hahaha
Niall O'Brien
@niallobrien
Jan 06 2015 19:54