« first day (2356 days earlier)      last day (2607 days later) » 

3:00 PM
The builder pattern is an object creation software design pattern. Unlike the abstract factory pattern and the factory method pattern whose intention is to enable polymorphism, the intention of the builder pattern is to find a solution to the telescoping constructor anti-pattern. The telescoping constructor anti-pattern occurs when the increase of object constructor parameter combination leads to an exponential list of constructors. Instead of using numerous constructors, the builder pattern uses another object, a builder, that receives each initialization parameter step by step and then returns...
 
guys, anyone has successfully made a karma-coverage of a requirejs app ?
and if so, what gods did you pray to ?
 
fluent builder is when the methods chain
 
@rlemon ty
@MoshMage When I want success, I don't pray, I act.
 
@MoshMage Indian (Hindu) ones since it was Karma related
 
@MoshMage had it working with webpack and babel imports
But it's a mess and might or not might not work depending on "things" and "stuff"
 
3:02 PM
@Loktar ok. Imma go and be a monk now :)
 
you'd think a mage could get it working though :p
 
short of summoning a demon, I've tried and tried
 
@Loktar nahh, that's warlock territory
 
If I have a "private" function in a module, but I want to unit test it, do you guys normally just export it anyways, since you need to test it?
 
lol
 
3:03 PM
well, off to reading docs again :)
 
Like export it under a name you shouldn't access, like internalFunction
stupid markdown
 
good luck @MoshMage !
we just don't test anything, makes life easier
 
@MoshMage this is a project I'm working on where it "is" working: github.com/maykinmedia/consumerjs
 
lol
I feel obligated to write tests these days
 
It uses es6 style imports but under the hood that's just requirejs i guess?
 
3:04 PM
@Loktar funny thing is: Tests are actually being ran - it's just the coverage that comes out empty ^^
@SvenvandeScheur should do it, I'll give it a look and try
 
@SvenvandeScheur that's not true
 
ah, what does babel do to them then?
 
@ndugger I just never have at some point I might start idk
 
ES6 imports, even when transpiled properly, act differently
 
waiting for the whole testing isn't needed movement
I'm sure it w ill happen one day, everything changes in dev
 
3:05 PM
I've still got one foot in the "testing isn't needed" movement...
but I'm senior engineer for a large corporation, and I feel obligated to write tests :(
 
so am I
 
gotta write dem tests, den, boiiii
 
but I have no such obligations lol
 
it would take a lot to convince folks that tests are costing them more money than bugs
 
3:06 PM
@ssube MFWR
 
Currently working on software performing many realt time calculations that require a lot of refactoring, tests are your friend, not the enemy...
 
just write stuff you don't need to refactor
 
tests are my frenemy
 
@Loktar you mean spaghetti?
 
it's pretty useful on long term ...
 
3:07 PM
I'm going into consulting
 
I only write perfect code
 
refactoring is good
 
> Yeah you don't need tests just write perfect code
 
consulting is where the $$ is
 
you don't have to worry if adaptions would break your code
@Loktar people likes to change things and it sometimes leads to extra bugs. Really
 
3:08 PM
if you write it so it can't be refactored, you'll spend so much time changing the tests to match the code that they'll become unnecessary
 
My code is perfect, and I write tests to make sure that someone else doesn't change that fact.
 
that's really the best and only way to avoid them
 
if you have unit tests, you can see if it succeeds or fails, preventing bugs.
 
@ndugger yeah exactly
@ssube that's the only real thing I've have issues with regarding it
 
I don't even know when I'm being facetious anymore
 
3:08 PM
people just writing tests to match the code to make sure they succeed
@ndugger same lately and right now esp
 
my life is a sarcasm
 
Testing is good but we need ramp up time, something we don't have the luxury of, my plan is to force it in the next project actually
 
Even with perfect code, goals may chance which result in refactoring. If there are no tests, it's close to impossible to validate if everything is still OK after doings so.

Tests however, are no magic bullets. They will not prove the absence of bugs but just highlight those that do exist.
 
@SvenvandeScheur right thats why we have QA too
 
that's why you test behavior
 
3:09 PM
!!s/arcas/ca/ 36377146
 
@rlemon That didn't make much sense. Use the !!/help command to learn more.
@rlemon my life is a scam (source)
 
we also have automated testing which is super meh, but does find bugs once in a while
 
user-testing is not the best coverage, but finds the best bugs
 
Oh god dammit it's in the title
 
3:10 PM
I know this is javascript chat room but I need some help on jQuery. I have an issue where my message displays without the okay button the first time but when I close the dialog box and do it again the okay button displays. Not sure why this is happening.
     function showAlert(message) {
            $('#dialogText').text(message);
            $("#dialog").dialog({
                autoOpen: true,
                resizable: false,
                modal: true,
                title: "Alert",
                height: 250,
 
@Sandy2016 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 know this is javascript chat room but I need some help on jQuery.
 
@SterlingArcher haha
 
This guy fucks
 
Code coverage just give you a theoretical idea on how much code is tested...
 
3:11 PM
!!s/f/s/
 
@BenFortune This guy sucks (source)
 
@Sandy2016 is that jqui?
 
@Sandy2016 can you give a fiddle that demonstrates your issue?
 
^
 
How can I create a fiddle in the chat room?
 
3:12 PM
 
don't go to the .com
that's a porn site
 
wait really?
 
with fiddles
 
oh fuck you lol
 
3:12 PM
haha
 
tbh I'm kinda sceptical about that code coverage thing
 
Code coverage is useful when you aim to write tests for previously untested code
 
Jest's code coverage tool is pretty neat
 
gives you an indication of how much work you have left
 
@ndugger is that all you use? Jest?
 
3:14 PM
Jest + Enzyme
 
I need to look into testing shortly
cool I'll check those out
 
Engineers, am I wrong? youtube.com/…
 
the problem is that all non-private methods should have tests
 
whats funny is today I caught an issue since I just happened to review a devs code which unit tests would have picked up
 
but code coverages doesn't scan private methods if you start from outside the box
 
3:15 PM
I just don't feel like doing it waah.
 
@Sandy2016 the code you gave works just fine on its own. look at external styles that could be hiding the buttons.
 
Fuck, this 4k monitor is dope
 
Someone needs to create jsviola.net
 
@KarelG which is why I export private functions from a module under a "private" name, like __myFunction__
It sucks
but it's all you can do
 
It's so clear .___. is this what PC gaming is like?
 
3:16 PM
yes
 
I mean, i'm sure this is a POS 4k monitor but the difference is still cray
 
@rlemon Where can I check the external styles?
 
so cray
 
@SterlingArcher for dev though that's fine
 
the console, your source code, the folders?
idk. look at the css
 
3:17 PM
@Loktar yeah dude even sublime text is sharp af
 
I mean if it's a "pos 4k"
 
It's a dell
 
ok
 
inspect the element and see when the button doesn't appear. jsfiddle.net/2yffsrqv because it works fine
 
I assume that means POS
 
3:17 PM
yeah dell makes decent monitors actually
 
oh word?
 
yeah it's kind of crazy
you wouldn't expect them to
a lot of people actually like their 4k's no joke
 
I prefer asus monitors, but yeah, dell's are alright
 
right? all i can think of from dell is those shitty $12 keyboards
 
@SterlingArcher m8
 
3:18 PM
8k already?
Welp, time to kill myself
 
lol
I bet you'd like an ultra wide as well
that was the best work experience I had
@ssube has a kick ass one
 
@Loktar wink wink
 
It's gotta have devastating girth, you right
I love @ssubes monitor
 
@Loktar I've been enjoying it.
 
Honestly I want a virtual desktop lol
rift style
 
3:19 PM
hah
 
I'm so hardcore I do my dev'ing in the matrix
 
Took a while to figure out the best way to set up stuff, but I have 2/3s editor and 1/3 browser, terminal goes over the middle 1/3
 
@ssube whats nice is just having all of that space to have that issue lol
 
it's better than 3 actual monitors was
 
@SterlingArcher until you get mad at the VR editor and punch it, only to get fired later for punching the cleaning lady as she walked past your desk.
 
3:20 PM
I still had my other monitor mounted when I had my ultrawide and my neck would get sore looking at the secondary
 
I have my laptop on the side for work chat and secure stuff, and I hardly use it
 
I want to play a multiplayer VR game like COD or SSB
 
that's how I had mine setup, it makes everything look so small lol
@SterlingArcher there are some, but none super awesome yet
I did play cod zombies on the rift though, that was pretty fun
 
I'm waiting for VR to really take off before I get one
 
3:22 PM
but it acted like a head mounted display pretty much
 
@Loktar +1 for the warcraft poster
 
@SterlingArcher I don't think it will :(
 
No? :(
Where did the hype go?
 
@Neoares man I love Warcraft!
@SterlingArcher just lack of software really
 
@Loktar I know
 
3:22 PM
Oh I watched the Warcraft movie recently
I actually really enjoyed it
 
heh it's sort of bad eh?
oh really?
yeah I didn't mind it actually either
 
Take that with a grain of salt -- I don't know a single bit of anything about Warcraft
 
although that green crap was supposed to be blood, but apparently China has some rules about blood in movies.
 
it's fel xDDDDD
 
3:23 PM
yeah there were a couple of other weird things, but meh it was cool
 
Yeah it wasn't like Eragon for me, where I knew the book so well that it ruined the movie, so I was just able to enjoy the action
Whoever that actor is reminds me of James McAvoy
 
the main guy? He was the main character in the TV series Vikings
 
I knew I knew him from somewhere!
Total badass
 
yea
I will not look so awesome bald.
 
Oh, btw I'm on a Black Ops zombies kick at home, and I found my mic for my xbox so if anybody wants to play with me, that'd be kewl
My xbox live is Ice NXne
(black ops is $20 at the store, and backwards compatible, so it's not cray to get it!)
 
In a way, that's bad. That's a lot of competition
 
@SterlingArcher fortunately most of the competition is bad :P
 
I'm lucky, I'm one of 3 devs in my whole sector that loves JS. The rest are Java/Big Data/Machine Learning devs so we have a monopoly on GUI work
 
big data needs lovin' too
 
@Loktar true, I've denied 4/5 devs (the 5th turned down our offer) because they were 20 year engineers who decided they wanted to go JS and bombed at it
It's crazy how somebody so smart can't grasp JS
 
3:29 PM
yeah you're in a tough spot too since they need a clearance right?
it was SO HARD finding devs in the gov due to the TS req
 
Not really, we give clearances too, so long as they can get them
 
ah nice, our company was super stingy
well the contract itself was
 
I've gotten away without having a clearance because my skills are in such high demand
 
it still hasn't came through?
I thought they were supposidly fast tracking them now lol
 
3:30 PM
No, I was submitted in February
 
it took like 3 years for mine to go through (I was in the USAF the whole time though)
ah alright so you have a bit to wait I imagine, but hopefully not too long
 
but idk how it's gonna work, because I have a job interview coming on the 10-11th
 
@SterlingArcher dropping things?
 
lol pootis
 
@KendallFrey wonder if that's true. I worked with a guy like that.
he was super weird.
 
3:32 PM
I'm so loved here I could spill the 3D printer and win an award
 
// How do I define a default export for a third party module in TS?
declare module "some-react-thing" {
    // this guy, right here.
    class SomeReactThing extends React.Component<x, y>{ };
}
 
he couldn't work with a female coworker, he left his prev job due to it
 
That does seem at least a bit creepy
@SterlingArcher do you have a 3d printer
 
yeah, for him his wife was just really insecure
 
We have 3, 2 little ones, and one gigantic one
 
3:33 PM
coool
I'm back printing again, my filament came this morning
 
Unfortunately the big one broke when it was being moved, and R&D is waiting for funds to get it fixed
 
btw, I've kind of been wondering: is SO javascript-biased?
maybe just the fact that it's on the web
 
@towc web-biased
 
user1596138
The web is javascript-biased
 
@towc eh yeah but c# then has an equal chance of being as popular
and it's not JS kills all
 
3:35 PM
JS kills
lemon injected a JS once
 
jSkills
 
He used to be a Lime
 
user1596138
I am JS
 
well, and places like freenode are probably biased against JS.... because if you pick a dumb developer who wouldn't know how to access freenode, chances are he'd consider himself a js dev
 
@Jhawins true story
 
3:36 PM
!!afk vaperoni
 
is there any data structure in JS that acts like a mathematical set? i.e., has union, difference, intersection, etc
 
@Loktar You don't have much to say regarding initials
 
JB?
 
user1596138
JAB
 
@corvid nope, but it's not hard to make your own
 
3:36 PM
JavaBro
 
user1596138
His middle name is Alice
 
hah I wish
 
user1596138
lmao
 
that's cooler than my middle name
/me jokes
 
@Loktar exactly
 
@towc yeah just frustrating that doesn't exist, seems pretty common
 
@KendallFrey lol what?
 
I can't believe you don't know what JB is
 
ok KF in Canada
 
user1596138
@towc is the real MC lol
 
3:37 PM
I want some chicken now
 
@littlepootis Aren't you not supposed to edit the prototype?
 
@corvid for mostly any usecase of a set, you don't need a set, or using a set would be impractical
 
@KendallFrey lol no it's a whoosh I guess?
oh come on that's weak man
 
@Loktar My initials are one stroke away from my favourite game
KSF -> KSP
 
user1596138
3:38 PM
!!giphy jb
 
hah
 
user1596138
If it comes up it's not weak
 
user1596138
Whoa...
 
Kendall Sissy Frey
 
3:38 PM
@Loktar That's a woman
 
LMAO
 
kendall needs a nickname
 
Tumblr has one "lesbiansthatlooklikejustinbeiber"
 
@towc "Sawyer"
 
Full of pics like that
 
3:39 PM
That was my name in high school, for literally no reason
 
Mine was Thoreau.
 
is it your actual middlename though?
 
It's not
 
My nickname was little lemon
 
people used to refer to me as "hahahaaaahahhahahhaaa his face"
 
3:40 PM
Some guy called me Sawyer because he thought that was my name. It became my name.
 
LOL
 
what was your nick loki?
!!wiki Thoreau
 
Henry David Thoreau (see name pronunciation; July 12, 1817 – May 6, 1862) was an American essayist, poet, philosopher, abolitionist, naturalist, tax resister, development critic, surveyor, and historian. A leading transcendentalist, Thoreau is best known for his book Walden, a reflection upon simple living in natural surroundings, and his essay "Civil Disobedience" (originally published as "Resistance to Civil Government"), an argument for disobedience to an unjust state. Thoreau's books, articles, essays, journals, and poetry amount to more than 20 volumes. Among his lasting contributions are...
 
@towc Jason
no cool story for me :/
 
3:44 PM
Not even "Browner"?
 
<3 vim
 
@KendallFrey nah that's a move I do on your mom though
 
emacs is like dead
 
@Loktar but... I barely knew 'er
 
lol
 
3:45 PM
@towc lol
no
My friend's was Ms. Congeniality.
 
@littlepootis according to those percentages...
 
How is Javascript the most popular language for desktop development lol
just noticed that, it's in a dead heat with c#
seems like a bit of BS, I can't imagine all these huge companies switching over to electron or similar things.
 
top paying technologies are interesting to look at
clojure is probably on top because it's mostly used by top academics, right?
 
oh snap, today is my 1 year at SNC
 
!!wiki SNC
 
3:47 PM
Saturday Night Club?
 
SNC may refer to: == Politics == The Syrian National Council, a left-leaning coalition of Syrian opposition forces formed in August 2011. The Syrian National Coalition, formally known as the National Coalition for Syrian Revolutionary and Opposition Forces, a coalition formed in November 2012 intended to unite opposition forces involved in the Syrian civil war . Sahrawi National Council, the legislature of the Sahrawi Arab Democratic Republic Semaine Nationale de la Culture (National Culture Week of Burkina Faso) Stoke Newington Central (ward), an electoral division of the London Borough of Hackney...
 
congrats on getting into the Syrian National Council!
 
Definitely not the Syrian National Council lol
 
user1596138
LOL
 
@towc you know where I work ._.
 
3:48 PM
oh right, the raping thing
oh, not anymore?
damn, loving the design
can you even call that flat?
 
lol no I was let go from RAINN in 2015
 
that was a dry move
 
I contracted for SNC for 6 months, so technically today is my 1 year 6 months
 
I want to apply for "Software Engineer Inern"
my lifelong ambition is to be an inern
 
I may be an SNC employee, but I work in the MACE division
 
3:52 PM
I can't wait to inern at your company.
I'm gonna inern like no one has inerned before.
 
lmao fails
If anybody has an RF background or a Reverse Engineering background we have some kickass openings on our drone projects and our airline hacking projects
 
this is so sad
it's like saying "go to uni to learn something fun, and you'll end up without a job"
 
that is accurate
 
> Machine learning specialist, Data scientist, Developer with a statistics or mathematics background
Don't do stats, kids.
 
repost since @ssube is here:
27 mins ago, by Luggage
// How do I define a default export for a third party module in TS?
declare module "some-react-thing" {
    // this guy, right here.
    class SomeReactThing extends React.Component<x, y>{ };
}
 
3:59 PM
If I ever have children, I won't even let them use a computer until they're in high school. I don't want them to be developers
 

« first day (2356 days earlier)      last day (2607 days later) »