« first day (2138 days earlier)      last day (3032 days later) » 

17:00
@ssube sounds fun!
@Gant kek. not sure if good thing or bad thing for you?
if i want to filter in teh chrome console, however find my message within the context of other messages around it.. is there a way for that?
Are there any real-world situations in which someone might want to select elements by data-attrs (or any attrs really) with values containing < and >?
I could make up some..
@BoltClock sure: Say you have a bad person and they're writing some jQuery. It could easily happen.
@JoeSaad there's already a filter on the console if you're using a "modern" browser
17:07
@ssube wat
you can filter out errors, warnings, info, and so on, and on chrome you can set your own regex filter
@BoltClock readas: no, not unless somebody is doing something wrong
the only case I can imagine is a filter of some sort hidden in the data attr
What's wrong with a bad person writing jQuery >:(
@BoltClock the jQuery
That question answers itself.
17:08
fbhueiwqbfqui3bg
see? Sterling agrees.
d3 is driving me nuts
d3 is fine.
I can't get that whitespace on the numbers to go away. I've tried strokes, fills. stroke widths, linecaps, etc
It's a text svg floated over a rect
so, SVG, i assume?
17:10
yeah
@BoltClock you mean containing both? then not that I know.
what styles do the text have?
rect = heatmap
	.append('rect')
	.attr('width',cellWidth)
	.attr('height',cellHeight)
	.attr('fill', generateHeat(obj[category][item][subcat], subcat))
	.attr("stroke", "black")

assignHandler(rect, score, column, row);

svg.append("text")
	.attr("x", parseInt(margin.left+mx,10))
	.attr("y", parseInt(width-margin.left-margin.right+my,10))
	.attr("dy", width+14)
	.attr("dx", 40)
	.style("font-size", 15)
	.style("stroke-width", 1)
	.text(obj[category][item][subcat]);
did you use the chrome inspector like you would with HTML to se where it's coming from?
.style("stroke-width", 1)
17:12
<g width="-70" height="-6" transform="translate(370,165)">
    <rect width="85" height="40" fill="hsl(50, 100%, 79%)" stroke="black"></rect>
    <text x="370" y="75" dy="114" dx="40" style="font-size: 15px; stroke-width: 1;">3</text>
</g>
Removing the stroke-width doesn't change it
set it to 0 numbskull
have you set it to 0?
I wonder if I need to fill the background of the text to the cell color
I think I did hang on
Yeah no change
it could be antialiasing against a different color, but that's odd
can't hurt to try
@SterlingArcher silly question, but there's no css being applied to the text?
17:13
@SterlingArcher it is from css
has to be
perhaps from a boilerplate/bootstrap kinda thing
@rlemon hey snap, you owe me a coke!
NO COKE! PEPSI!
Ahh yeah you're right
whurt
A text shadow is being inherited
@SterlingArcher that's why you check computed properties
@rlemon i was thinking, pls be a meme, otherwise i would have been dissapoint
4 mins ago, by Luggage
did you use the chrome inspector like you would with HTML to se where it's coming from?
<cough>
Shut up I was inspecting the g element instead of the text lol
My bad
svg text {
	text-shadow: none;
}
viola
@SterlingArcher was it from a css framework?
17:16
No, custom CSS file
(I didn't make it)
fair enough ^^
@SterlingArcher you make me laugh every time you say that
wallah, fuckboy
even worse
17:19
@KendallFrey you should play the world's smallest ~~~violin~~~ viola for him
@SterlingArcher ffs, did your mother never teach you onomatopoeias?
viola = instrument, voila is the exclamation
My mother taught me yoga, dicknuts
She taught us all.
@AwalGarg I need your post address for the card :P
17:24
@copy Yeah, that's the route I would have taken if this wasn't more of a learning excercise
I'm being extra sassy today
they are being polite
why does it seem like there are no web dev jobs? I thought there were supposed to be tons.
@corvid there's tons here
Recently it's gotten harder. Allthe junior jobs are usually filled around this time, and mid-sr levels are more desired after college graduation
@corvid where are you living now?
17:27
Boston, right now. I'm not sure if supply is way higher than demand or something
@corvid Tell me about it.
we have the opposite problem down here, can't find anyone willing to move.
@corvid heh, I like your personal site
Personal site?
@KevinB move where?
mississippi
@KevinB talk to @Trasiva if you have any jr-mid level positions open
hah, no wonder you're having trouble recruting
yeah
we have a new office in orlando... might be easier if we move the web team there
Corvid Group -> Corvid includes crows. -> A group of crows is a murder -> Corvid is actually a part of an assassin's guild.
17:34
@SterlingArcher did you listen to the song I linked you yesterday?
ssssh, everyone with know my secret.
@KevinB if you don't mind me asking, what's dev pay like down there?
don't tell them the password to the entrance in Cheydinhal
3 alligators / month.
or 4 pounds of meth. Your choice.
can I split it?
1.5 gators and 2 pounds of meth
17:37
Hey, I actually liked the Biloxi area when I was stationed down there.
no one in the state can do that math for that.
@Trasiva but you like gators and meth
I thnk the avg for a junior dev around here ranges from 40-50k
touche
@Luggage they already did the meth
17:37
@KevinB cost of living?
@ssube Gator is pretty damn tasty actually.
15-20K?
dirt cheap
@Trasiva yeah it is
so the takehome is still okay
17:38
yeah, it's great, i would have to make double in many cases to put away the same amount of income every month in savings elsewhere
Can I give the alligator meth?
@rlemon Mississippi CoL is 89.10% of nat'l avg
@corvid dude, that's a terrible idea
alligators are scaly assholes without meth
Or... a great idea, no way to know until we try!
gators are chill
crocs are assholes
17:39
@corvid that's the spirit!
gators are only chill in the literal sense
but 9/10 people we get down here to interview end up pushing for 80-90k
@KevinB for a Jr position?
jr-intermediate
17:41
Since they have to live in humid-ville, FL.
@ssube on a serious note tho, gators are pretty chill. they don't fuck with you unless you fuck with them. generally they just are where they are not supposed to be. crocs otoh are little shits and like to start stuff.
so see a gator, back away. see a croc, run.
That's racist.
don't run from shit. On land you have the advantage.
@KevinB eh, that's probably beyond what they'll get anywhere that isn't a tech hub but not too far beyond.
they're probabyl worth 80-90k, but i can't get that approved.
17:42
umm. they are faster than you'd think
I probably should be making more than i am, but... i love it here, and make enough to do what i want, so no reason to leave.
oh I know, I've seen a bunch of various gator-like beasts in aquariums and stuff
couple in real life too
caiman I think are faster than the others
if you are happy, you are fine.
What's the best way to populate a class instance with data from a RESTful service in ES6?
17:44
i took a pay cut to work where/how i want. And I don't regret it.
If someone is interesting, I set a bounty on this one: stackoverflow.com/questions/39047678/…
i mean, i've been here 8 years and i've only been making jr dev pay for 2 of those years
@KevinB What's an apartment around there cost?
i don't know
haven't really looked into them, had no interest in renting
In ES5 I always did something like:
function Class(args){
  for(prop in args){
    this[prop] = args[prop];
  }
}
In ES6 should I use the same loop inside the constructor?
17:46
Object.assign(this, args);
@Vap0r you should have been using for/in in ES5
much less ES6
class MyClass {
    constructor(args) {
        Object.assign(this, args);
    }
}
@KevinB Oh, you bought a house?
housing it's pretty easy to find a 3/2 1500 for less than 120k$ in good shape
@ssube that was ES5 code?
17:46
Oh, well shit.
That's not bad at all.
@Luggage, @rlemon thanks
I'd probably have to rent, my credit's still all fucked.
@KevinB how much water damage?
I am waiting for a house on my street to go up for sale. basically the same as mine. a house a few streets over is listing for 20K more than similar ones were last year
I am hoping my house made $20k as well :D
@SomeKittens well, it's florida, so 100%.
17:48
mississippi
oh, my mistake.
@Luggage 3bed/2br pond, great views, $120
Mississippi: Four i's yet it still can't see why kids love the taste of Cinnamon Toast Crunch
What would be the correct way to do an auto include for an extended class in JS?
include Foo from './modules/foo.js';
wait
'auto-include'?
17:50
include.. :(
@Luggage sorry PHP terminology
import a from b;
wrong again, Lemon.
import a from './b';
b is a variable.
could be anything
17:51
yea.. you can't do that.
correct lemon is correct.
even that statement is wrong
@KevinB For the record, Sterling's not wrong. I'm always applying for jobs when I find them, and moving is always in the cards.
I'm so confused.
there is no magically auto-include
you have to import things
17:53
So import would create a request to the path supplied?
and this shows how (ES6, so assume you are using babel): developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
how you import modules actually depends on environment (browser vs node) and what bundler, if any, you are using
@Trasiva if we seriously start looking again i'll let you know.
require(), define(), System.import(), etc. All ways.
@KevinB Sure, until then I'll keep banging my head on my desk as I'm restrained from using ES5/6, haha.
This would be in the browser.
No bundler
17:55
i don't get to write very much js here, it's mostly coldfusion/server management.
you have to use a bundler of some sort or things get bad
so plain <script> tags for each file?
maintaining old crap
@ssube why? like what?
@Luggage yep.
with such a small team we can't really afford to move away from it at this time
17:56
like not being able to include external modules
I agree. you need a 'bundler'. In fact, the good ones are much smarter than jsut bundling. Webpack is the general favorite, for good reason
you can use require.js in the browser
Alright I'm looking it up.
Environment is .NET/C# mostly Web API if that helps on the suggestions front.
Require.js will work, and it has the advantage of being simpler to get started using it for just a few files and grow, but there are other more popular sophisticated ones (webpack).
if you run into any problems with require, though, there's no way to debug them
it's horrible to use
if you don't ever actually touch it directly, it works until you need webpack
17:58
that's when you use Faith Driven Development
2
pray to god and hope shit works...
    <script type="text/javascript" src="assets/scripts/class.Slide.js"></script>
    <script type="text/javascript" src="assets/scripts/class.Draggable.js"></script>
    <script type="text/javascript" src="assets/scripts/class.Uploader.js"></script>
    <script type="text/javascript">

        document.addEventListener("DOMContentLoaded", Page_Load);

        function Page_Load(){
            var ShowID = window.location.href.split("=")[1];
            if(!ShowID) return alert("No show specified, redirecting to main page"), window.location.href = "index.html";
That's what the script section looks like on my most recent page.
bundle it
on a completely separate topic... I found a game that hits a middleground between Factorio and Minecraft: Fortresscraft
I kind of like it though.
What's wrong with this?
kinda surprised it seems like noone plays it
17:59
If you want commonjs without bundling, you can use github.com/awalGarg/micro-require for development and then browserify before pushing to production. works with node modules too.
that's fine when you have 3 files. my app has 1000's of .js files for the client.
@Luggage I never have that.
of which at least 100 are involved in any one page.
why not? one file that just does a date-picker, one that just handles requests to your API, one that just validates some 'business object', etc, etc.
Let me get this straight though. If I were to develop a bunch of JS UI components, a bunch of useful JS classes to use on some pages, and some page-specific classes related to the RESTful resources used. AND I were to use a bundler...
right.. you'll WANT a 'bundler' with all that.
18:02
Would this allow me to write one small piece of code using whatever I wanted to out of that "toolkit" and have the bundler make it so?
roughly
Or would I have to specify which components were being implemented?
yea. you say "this files needs these other 3 files" and it'll handle that
how it handles it depends on your choice.
@bitten what if i want to see the context of it, the console above and below it?
@Vap0r If I may ask, have you used any other programming language?
18:03
@AwalGarg a lot
here's another basic question (sorry if it sounded stupid)...
if i'm having an non void function, can i call it as if it is void?
for example getName() {addtoArray and return name}; can i call it like getName() without actually assigning it to anything?
@AwalGarg why do you ask?
@Vap0r well they all probably had some way to include one file of code in another one, or importing stuff across files/modules, right? The environment JS runs in makes it a bit tricky to have the same kind of "importing" in JS - and hence you need a bundler to get that same "importing".
there's nothing tricky about it
it just didn't exist in the language until recently
But I thought they just said ES6 has an import
18:05
@Vap0r no browser currently supports it.
lol oh
...
@Vap0r the language does, the engines haven't decided how to implement it, so you need a library that can do that
that's what webpack and friends are
so I guess.... I need a bundler
True
So what does babeljs do with an import?
Tell you you're screwed?
18:06
turns it into es5 of your choice.
turns it into the better form for your engine
mine turns it into a require() call
typically require
@Vap0r again, you don't. you can have commonjs requires without bundling things in development and amd requires otherwise too. but generally bundling is a good choice.
@Vap0r I think you have enough to go read a 'getting started'. I don't mind answering questions, but we are covering basic things.
18:07
webpack has tons of template projects, but you don't need much to start
Lol @Luggage I agree
@JoeSaad i'm not familiar with a browser that has that feature, sorry
i.imgur.com/MCUGsMq.png jebus this is taking forever to finish
trying to make shit printer friendly isn't fun
@Vap0r do you know how to load modules (require()) in node?
/me disagrees with @luggage and wants to start ranting about how much fucked up things are but keeps my mouth shut
18:09
@Luggage never used node.
ok.. well, nevermind.
@AwalGarg you're suggesting that somebody use different bundler/loaders in dev and elsewhere, so I'm not sure commenting more is a good idea.
I try to be right enough instead of being 100% correct from all aspects. You seem to be able to achieve the latter which is impressive ;)
I said I'd link you
WIP, code isn't great
@rlemon heh it's still interesting
still things to learn
thanks for sharing it with me
18:15
@bitten i.imgur.com/MCUGsMq.png is what that generates
(6000 * 10000 image)
be warned
@rlemon i'm ready
overclocks
definitely ready now
man it pains me to step back and read this code
there is no consistency anywhere
@NathanJones i watched it last night, it was clever and well put together. thanks for the recommendation! also it was scary >.>
@rlemon it's still readable, and it works
Is there an effective algorythm to find nth occurance of a word in a word puzzle? Something that looks like this: lh3.googleusercontent.com/…
I know I need a 2 dimensional array. I let it iterate over the indices and for every letter it finds it checks out all 4 directions to see if the next one matches the sequence. If yes it continues going that direction and well does the same check again by doing something like [+1 and -1][-1 and +1]
And in order to make sure it doesnt check out the same path again I will just cache the path (index pairs of the matching letters of the word encountered)
Again I got a solution in my head but I think there must be an effective algorythm
18:31
is there a test runner that runs without affecting module loading?
@bitten thanks
@Mosho most of them?
got a question...not related to javascript though...I got a macbook pro with intel iris 6100, could I run the built in monitor + 2 4k @ 60hz through DP ?
any redux users in here that could answer a quick question?
When you normalize your data for the app, where do you do it?
I google'd and found it can run the 2 4k's, but not sure if that means it'll also run the built in display
18:41
like for instance a server gives me back a nested object and I need to flatten it before handing it off to the reducers, where should I do it?
in the actions?
buy the displays, test it out
if it doesn't work return the displays
imagine an application like Microsoft Visio - if it used MVC or similar architecture, would the data model be one giant objectthat contained everything - and all controllers interacted with it OR would they break the model up into smaller chunks? Like amodel for each object on the canvas?
@fayzaan hah that will be pushing it I bet
Blah... why was npm fs module unpublished.
the fs module is built into node...
18:45
ok got my answer, do it in the action creators
reducers are as dumb as possible
Thanks Jason, you're welcome Loktar.
@ssube mocha does
it takes your source, wraps it, and executes that
others do shit like that too
user1596138
@Loktar lol
;)
@Jhawins dude I have been using the FUCK out of egghead
def got our moneys worth through just me
@Loktar I would do it as a separate part of the app's code
I need to see about re-purposing one license for the new guy
18:49
have whatever you use to call the API do it as some middleware
like normalizr
wtf is normalizr?
I need to check that out
Yes you do :)
by mr. abramov
right now I just use straight fetch to grab the data
may not suit your needs but it's great
18:49
and hand it off
I don't think Abramov is real
he is a machine
@Mosho YEEESS
dude this is exactly what I need actually
I was about to do the same thing on my own. Thanks man
anytime
user1596138
@Loktar Haha yeah? Nice
user1596138
I haven't even used it
user1596138
Have had so much shit going on lol I haven't coded at home in like 3 months.
and I haven't had any free time at work to research stuff pretty much all year

« first day (2138 days earlier)      last day (3032 days later) »