« first day (2549 days earlier)      last day (2398 days later) » 

12:33 AM
Hello guys
So a question popped into my head recently
before NodeJS became popular....How was JavaScript tested?
I mean unit testing...Not behavioural testing in the browser
 
user2620028
the testing libraries existed before nodejs became popular
 
Well forgive me, but i only know about Mocha, Jasmine and Karma :-)
and they need NodeJS
 
some code wasn't tested. some code used home-grown testing
 
12:50 AM
It's the part of "Some code wasn't tested" that surprises me
and how the world was able to move on just fine...Having some JavaScript code that couldn't be unit tested.
 
Suck it Canada!!!
 
1:15 AM
woo stage 1 done
 
1:56 AM
x^x^x^... has 2 solutions for 1 < x < [e-th root of e]
 
user2620028
@danidee qunit was the first one i remember hearing about, and i haven't ever been employed at a place that encourages writing tests.
 
user2620028
Leads to a lot more work, but, they are the ones paying for it.
 
@HatterisMad That was one of the reasons i quit my first job
Not solely for tests....but there was no developer culture
 
Hatter I'm taking my Senior seminar class this semester. If I don't pass this class well I'm not sure what the plan is. Probably won't ever graduate
 
user2620028
@William ayy you can join me then lmao
 
2:03 AM
and i got tired of doing extra work that would've been avoided if i we followed best practices...No automated tests (it was all manual), no CI, no code reviews
We were just churning out streams of code
 
user2620028
@danidee i am on the same pace, currently i have 4 interviews this week
 
user2620028
we have ci and code reviews
 
user2620028
and a dedicated QA person who does a fantastic job
 
I wonder how you unit test a graphics library
 
user2620028
but there is no oversight of planning stages and no automated testing
 
user2620028
2:04 AM
so our QA person just gets hammered
 
@HatterisMad You have CI...That's already automated testing.
 
user2620028
uhh would you care to elaborate on what you mean
 
user2620028
you mean to say we could be testing with the ci?
 
Just making sure it builds isn't really close enough to what you want
It's better than nothing though
 
user2620028
yeah... we have testing available but aren't taking the easy way out :P
 
2:07 AM
@HatterisMad Presumably there's some kind of categorization of "good code" and "bad code", otherwise, what's left to call CI?
 
You can't do CI without having automated tests...You're checking if the new code you introduced doesn't break existing functionality
 
user2620028
i think maybe i am just misunderstanding the terminology here
 
only automated tests can tell you that...cuz the code might build succesfully but the latest commit broke something that you don't know about
 
user2620028
we use gitlab ci to deploy
 
I don't think automated deployment counts as CI
 
user2620028
2:08 AM
lol it isn't even automated
 
user2620028
have to manually do it
 
user2620028
manually as in hit the deploy button
 
@HatterisMad well that's Continuous Deployment.
 
@HatterisMad Yeah that's not even remotely close to CI :P
 
user2620028
what is your guys definition of ci
 
2:10 AM
> In software engineering, continuous integration (CI) is the practice of merging all developer working copies to a shared mainline several times a day.
I'd go so far as to say it's not just several times per day, it's continuous.
 
user2620028
yeah i read that
 
user2620028
but working copies
 
Note specifically the "working"
 
user2620028
they mean not just merge requests
 
user2620028
like svn?
 
user2620028
2:10 AM
or my memory of svn?
 
user2620028
shared files essentially?
 
It could be done via merge/pull requests
Our is done per checkin, but we use TFS, not branching
 
Bascially it's checking new code (Everytime someone makes a new commit) to see if it doesn't break any existing functionality
 
user2620028
i mean we do it with merge requests, but only whenever we are done with that branch. might be an hour, might be a week.
 
Sure, and is that handled automatically?
 
user2620028
2:12 AM
No, goes through code review and then merged manually after a code review, before it is merged it gets a second glance by the person merging it
 
If you have some process that will test the merged code and push to the trunk if it passes, that's CI
 
user2620028
gotcha
 
@HatterisMad If you're using gitlab CI. The CI should be triggered any time there's a new commit...You don't have to open a Merge Request
 
Some people might include manual merging in CI, but generally it refers to some automated process
 
user2620028
yeah that is definitely not what we are doing then
 
2:14 AM
Lol
 
@danidee What if you're using a branching workflow? Would it still be desirable to merge per-commit?
I'd think you'd want to trigger the CI merge manually
once you have a "complete" feature
 
@KendallFrey Running the CI doesn't mean the programmer is done with a feature
 
Well, I'm not excluding doing it multiple times per branch
 
In our case, we tend to have WIP branches (Work in progress branches)
 
Just trigger it once you have several commits that together make a minimal working something
If you have WIP branches branching from feature branches, then that's essentially the same idea.
 
2:18 AM
It enables us collaborate better. Especially when we have new developers. I can go over their work commit by commit until a particular feature is Ready
but the idea of triggering the CI for every commit
is to make sure we catch integration issues as soon as possible
So by the time we're merging we won't have any issues
We still Merge manually....so at that Stage the CI Server just runs the tests we have in place
No automatic merging (I don't even like the idea)
 
Oh ok so it's more of continuous testing than integration per se
 
Yeah i guess i'm misused the word CI :-) , since we don't merge as soon as the tests pass.
 
Our version of CI is a gated build that prevents you from committing breaking code
 
Though gitlab CI has this automerge feature but it's still kinda manual cuz you have to click on a button to enable it....Every single time
@KendallFrey What CI Server do you use....Jenkins/Hudson?
 
2:31 AM
Never heard of it...Just googled it and it's Microsoft :\
 
We're a MS shop
TFS is, to put it mildly, not my favourite tool.
 
:-)
 
@danidee I've used Jasmine without node.
It doesn't require node.
Nor does Mocha.
 
user2620028
i had a bad experience with tfs and never tried it again
 
@littlepootis Did you include Mocha/Jasmine with the test code in a JavaScript file and run it through the browser? PhantomJS? How.
 
2:42 AM
@danidee Just the browser. Doesn't require PhantomJS.
 
Though my initial point then was these testing libraries didn't exist Until Node gained traction...but i'm still interested on how Mocha/Jasmine'll work without Node
 
There are installations for installing the standalone version github.com/jasmine/jasmine#installation
 
@littlepootis Alright one of these days...I'll try it i have this Vue component that i want to test
and Mocha keeps telling me document is not defined
I've tried so many things...doesn't work, So maybe i'll finally test it in the browser where document really exists
 
So shitfaced
 
user2620028
3:11 AM
is drunk jordan any different than sober jordan?
 
Hi
littlepootis are you Indian
 
3:39 AM
@Abhi no
maybe
I don't know
 
Hello! Who's not coding?
 
Liar. How can you not know
 
I'm weird.
 
Is it possible to save fadeIn('fast').delay(5000).fadeOut('fast') in a variable, then just use the varibale where ever?
 
4:24 AM
Make a fn?
 
@PredatorIWD 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.
 
5:07 AM
1 message moved to Trash can
@theoutlander Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@CapricaSix I did, but that's how it shows up.
 
1 message moved to Trash can
@theoutlander Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
1 message moved to Trash can
@theoutlander Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
1 message moved to Trash can
@theoutlander Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
5:38 AM
WebStorm is driving me crazy because I can't figure out how to get a command prompt while debugging. What IDEs do you guys use?
 
Hello.
 
5:56 AM
How I exit from Dwarf Fortress:
1. Ctrl + Z
2. pkill -9 Dwarf_Fortress
3. ???
 
4. sudo rm -rf /
 
6:23 AM
@rlemon Ah, sorry, it was too late for me. I'm usually already in bed around that time :P
 
@SomeGuy :(
 
@KamilSolecki There was plenty of OoooooO00oOOooo'ing regardless, right?
That's all that matters
 
Oh just the right amount ^^
 
6:55 AM
@rlemon @KendallFrey
Classic greentext
 
7:41 AM
I'm searching for a clock for angular (new version 2+)
I found this, it very nice deepu.js.org/angular-clock
but it only for angularjs (1.x)
 
@KamilSolecki Solid 5/7
 
Ace
8:06 AM
kstop watching /b/
it's bad for u
 
@Ace i only read 4chan on r/classic4chan
 
Ace
ah
no 4chan/b/?
 
Its hard to find quality on /b/
Among all that porn and shitposts
 
8:37 AM
How on earth can I set gulp-watch to be more aggressive? I want to know every time I've got an unused argument, I'm calling an unset value, running something that becomes a NaN, etc... but I can't find how to do so on the web
ignore this post
 
Ace
what are you even talking about?
jesus
 
read this as me asking how do I find out if node-inspector exists
The answer being yes
 
9:17 AM
Okay new question
How do I ask my code to throw an error when I attempt to divide by zero?
Is there some kind of node error config I can turn to most strict?
 
I guess I meant: I wrote dumb code and didn't realize it and it took me an hour to finally figure out that I was dividing by zero because it's very difficult to trace the cause of strange behavior when I'm used to strict exception handling and js likes to propagate NaNs
 
9:39 AM
yeah, it's weird getting into a different language with different semantics
where're you coming from?
 
Omg @rlemon
 
10:00 AM
@kikjezrous it looks like you would like Typescript
 
wouldn't help him if he's dividing by 0
 
dwarf fortress looks pretty cool
I can definitely see myself losing nights to it
and it works on linux :/
 
Its like rimworld, but rimworld is Just better
 
well, is rimworld free?
ok that's a bs argument
 
10:16 AM
It is a bullshit argument :P
 
@rlemon maybe I can make a solid-ish compound out of the bonemeal itself to use as the medium. Could be interesting
not too sure how
maybe instead of the ripped paper towels, I can just use a piece of the towel, put it on the net, then fill it up with bonemeal?
 
I was playing dwarf fortress on hangouts last evening
 
10:52 AM
is flow worth using?
 
no
typescript 4 lyfe
 
i havent looked into that
i kinda installed flow without knowing what it was
was setting up eslint and the guide did flow as well
ive had enough of setting up this project for one weekend. i am going to leave type checking for now and get to doing some code
i set up my project using next.js
it's pretty cool
 
11:06 AM
jsfiddle.net/atharvajava/g3d53r7L hi can anyone help me here i want to retreive value from ST if active is YES from mongodb my query seems to return all of them
db.props.findOne({"release":"1","project":"1","product":"1"},{"cd.env.ST":1},{"c‌​d":{$elemMatch:{"env.ST.active":"YES"}}});
 
11:53 AM
@hsimah check out nuxt.js too
 
typescript looks amazing
and df will destroy your life avoid at all costs
I started doing meth as a step down drug from df
 
I'm too dumb for df
 
12:49 PM
what's df
 
it's like meth
but more dangerous
 
1:03 PM
@Zirak yup, vue does things :)
I just went my stomach go through hell
 
time to try to make something with ue4 again
 
went for shopping today, decided to try out a few new things
between acid milk, weird oreo recipes and a way-too-cheap pasta sauce, things are on fire
 
ew, cheap sauce is the worst
what kind of acid milk did you find?
 
I thought it was yoghurt, and was cheap enough for me not to worry about reading the whole thing
I'll take a pic
 
did you get sour cream?
 
1:07 PM
I thought it read "aciclko", which is pronounced like "azizlko" which I thought might have been the name of "vanilla" with "milk"
but no, it definitely is acid af
that said, I don't know why I drank half of it already
 
it's some kind of cultured, flavored milk
like pre-yogurt
 
is that like pre-cum
 
I swallowed either way
well, still haven't made much progress on the uni application
I genuinely think the reason I like CS is because everything else I've tried kind of just sucked
or by chance I started doing it before other things, and it stuck
 
everything kind of sucks, you just like CS
that new Blade Runner movie is pretty good, though
 
let me rephrase that: I sucked at just about everything else
or maybe just because I was trying to make my family proud and my father is an IT guy
 
1:18 PM
meh, that's what introduced me to it, but wasn't a major factor in making a career out of it
 
well, "it made a lot of money" is probably not a reason unis will want to hear about
maybe computers were just my only friend
the only thing I could trust
 
you shouldn't trust computers
 
maybe I can word that in a way that doesn't make me seem like an idiot
well, I thought I could
"My name is matei and I have trust issues. I didn't make any friends, so I turned to a machine that didn't ask me to repeat what I said or tried to eat my lunch"
"later on in life, I discovered machines are just really good liars, so I started living in a cave"
"obviously the cave was monitored by the NSA, and that's where my passion for tinfoil started"
"then I started growing accustomed to plants. I thought they didn't lie to me, but turns out they all had rootkits"
"after a tragic attempt of one of my basil friends to suicide, I decided to get past my differences with reality, and accept my fate"
 
@ssube word
 
computers be snitchin
 
1:24 PM
@towc did you jerk it before you opened it?
 
hmmm no
 
It says to in red print ^^
 
OOOOOH
well
touche'
 
Blue*
 
omg that's so much better
 
1:26 PM
Its important to know your slovak.
 
I don't feel like a million tiny ants are entering my stomach
don't trust ants kids
ok, back up a bit
the reason I got into javascript and programming in general is that I was trying to make minecraft mods, and looking for java tutorials
so the reason I got into programming is that I wanted to make stuff happen
the reason I kept on programming must have been because I liked making stuff with very little cost in resources
and that's also the reason I'm "enthusiastic" about it
but what about commitment?
It may honestly just be money, but that doesn't look good on paper
maybe I'm not committed at all, and the next thing that might be better than programming for me will take me over
I don't really care about making a difference in this world anymore, and if I did, it would sound like such a megalomaniac thing to say either way
maybe I'm committed out of fear I may never be able to do anything else in my life
 
I can't really even say I'm committed because I like challenges. I do, but CS is already somewhat of a comfort zone, so I should be doing another kind of challenge
 
@towc that's why I bought a powerful motorcycle
 
does anyone here think they're committed to computer science/programming?
 
1:33 PM
what does that even mean?
 
I could bring in some stuff that's not entirely fake, like "my grandfather was a computer science professor, and I want to make him proud". Which may genuinely be the only reason I'm still doing this, but sounds really urgh
the university application guidelines ask me to "demonstrate enthusiasm for and commitment to your chosen course"
which tbf it means more something like "demonstrate commitment to academic stuff"
 
oh man, Heat Signature is like a top down Superhot
this game is super fun
 
@towc wat
now that's interesting
 
no u
 
@towc If you dont want ants in your stomach, you need to stop leaving donuts around there
 
1:44 PM
@KamilSolecki they told me they want to be free in my sleep. You can't say no to a donut.
 
so many million ant puns to be had
 
do go ahead
how's this to begin with?
> I started programming because I wanted to modify some games I was playing when I was 11. That gave me a huge lesson in determinism and effort: what comes to the user is the result of thought-out structures and ideas. Thanks to that, my heroes shifted from the strong and rich to the clever and dedicated.
admittedly, now I know you don't need much smarts to do these things
just a privileged enough family and an abundancy of time
 
2:08 PM
I remember the bullshit I had to write for that essay
so much cringe
but you're a kid, you still have hopes and dreams so bullshitting should come easier
 
You started programming because of your white privilege
Instant perfect essay for this generation
 
> I started programming because you touch yourself at night.
 
I started programming because $$$
 
@MadaraUchiha 10 bucks and that's what they'll be reading
 
Then fell in love with it
 
2:20 PM
@towc Awesome, where's my 10 bucks?
 
that's exactly how it works
 
That's what I said.
 
Preferred torrent clients?
 
filthy pirate
 
@SterlingArcher you made me rewatch the series again. Congrats.
 
2:27 PM
rick and morty?
 
archer
the ants
oh, that's also rick and morty
but I'm rewatching archer
 
BoJack Horseman is pretty fun too. Just started it
 
I couldn't get into bojack
Currently rewatching American Dad
 
I love american dad lol
 
2:48 PM
I love games that emphasize your gear
Borderlands and Destiny sort of do it, but Risk of Rain and Heat Signature take it seriously
 
3:18 PM
found thousands of termites
fuck
 
Termites in his eyes pootis
 
3:38 PM
Good lord
 
@Jhoverit look at this beautiful porsche i saw
 
3:57 PM
@SterlingArcher Is that a GT3 RS?
 
what's so beautiful
looks like any other
 
@Mosho it's the VOF-1400
 
4:12 PM
someone at the school I'm applying through needs an intro course to email ๐Ÿ˜’ They sent all the oxbridge applicants an email about some stuff, and we can all see each other's emails. That bothers me because I didn't follow my dreams and more people I know will know about it
 
4:30 PM
Oh my, I just cooked the best peppered steak I think I've ever had
Props to the butchers that seasoned it because I'm lazy
 
color me impressed at "cooked"
 
@BenFortune I had a 660g steak yesterday
 
@GNi33 What's that in oz?
 
delicious, delicious steak
 
jesus christ, 23
 
4:32 PM
yeah
 
I had an 18 ounce tomahawk at TGI's a couple week ago, that thing was impressive
 
is the cutlary huge or...?
 
got a "competition" going with my father in law, so next time we'll have to go bigger
 
Ah medium rare, I love you
 
4:39 PM
untouched is perfect
what's below rare?
 
blue
 
noble cow?
or does it become salmon?
wow, there are emojis for families? ๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง
that's a single character
๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€‌​๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๏ฟฝ‌​๏ฟฝโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง‌​๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๏ฟฝ‌​๏ฟฝโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ง‌​โ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๏ฟฝ‌​๏ฟฝโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง
well, that's interesting
SO definitely distorted some characters
pasting it in console ends up with 4 different characters
 

« first day (2549 days earlier)      last day (2398 days later) »