« first day (2441 days earlier)      last day (2501 days later) » 

4:01 PM
I didn't see what you wrote @ndugger, but I'm guessing it was really nice :)
 
it was dank
 
dank
 
4:24 PM
Whats the most reliable way to measure page performance?
 
chrome tools
 
@Arrow Which metric?
 
depends on what performance aspect you want to measure
 
I have been using lighthouse, but the result has not been consistant
 
underperformance tab you can start recording a number of metrics
 
4:26 PM
 
personally I find "Your page is 20% fast" not all that useful
 
Thats what I have right now.
 
network tab is far more informative
 
@KevinB I am doing good in network, an am overhauling lots of legacy jquery scripts
 
4:27 PM
if the bottleneck are the calls
 
I want to be able to measure the improvement webpack gives
 
part of that improvement (or lack thereof) could be seen in the network tab, as far as how long it took for the dom to be ready, for the page load event to occur, what held each up, etc
 
To justify myself spending a month cleaning up technical debt 😜
 
there's an audits tab,
you can run profiles,
 
lol technical debt, just make something up.
 
4:31 PM
Dom content loaded and load = ~1s
@Arrow The rest of my team are rails devs. Ruby people treat JS like a necessary evil.
 
JS is a necessary evil. Nobody here will disagree with that
Until WASM gains access to the web APIs and we get new languages that can replace JS in the browser, we're stuck with it
but that's not an excuse to write shitty JS in the meantime
 
by the time WASM comes around. hopefully in my lifetime.
 
One can make beauty out of mud (or JS).
 
@jake that's rich
 
> but that's not an excuse to write shitty JS in the meantime


This is why I am cleaning up JS in bare <script> tags
 
4:35 PM
considering they're ruby people
Ruby was relevant for 5 minutes
 
Absolutely. If you actually care about your work and the quality of code you produce, JS can still be a decent language
I agree with Jason, too. Ruby is garbage and mostly dead anyways, so it is a bit ironic
 
If I tell someone I work primarily in JS I feel the need to say things like "modern js, like es6+". I feel like they probably assume I just copy and paste jquery snippets from SO.
 
@ndugger haha I like that wording :p
 
I say future JS
Which is 100% true
 
There's nothing wrong with using form elements with an onSubmit handler in React, right? People are telling me it's bad to use
 
4:37 PM
@jake The primary gain you get from Webpack is productivity, not performance.
 
I used to feel that way, I worked in Basic, Visual Basic, always heard how things I did weren't "real" languages, I look back and laugh really
 
It's not future JS. It's current JS.
other people are like, stuck in the past, man
 
I love javascript. It will always have a special place in my heart, but that doesn't mean I can't be realistic about how bad it is as well
 
No matter what module system you use, it will not be more performant than code that has no modules and no IIFEs with closures.
 
I will use JS until it dies (it won't)
 
4:38 PM
@Loktar I also started in VB (6). It's 'real' in all the ways that matter, but I think VB.NEt is an inferior compromised version of C#.
 
@Loktar I think it would
 
wasm may eventually kill it, but not right away
 
@Luggage oh yeah I totally agree with that, but it was just a "programmers" way to bring people down
 
I will say, though, I do prefer prototypal inheritance over classical inheritance, regardless of the language.
 
Eventually, "normal" languages would compile to JS (or WASM) and JS would become a target only language
 
4:39 PM
like "Oh that is really cool! What did you use?" Oh Basic, omg wow that's not even real programming
 
Yup. Been there.
 
@MadaraUchiha Wait, so having 1 scope instead of <script> tags will make it slower?
 
@Loktar "that's not even real programming" I hate that statement.
 
when I was like 15 it used to bother me, I'm over it now though haha
 
Not that long ago, JS "wasn't real programming"
 
4:39 PM
and that's why I'm even a proud windows user :p
@MadaraUchiha yea exactly
 
@jake What are you hoping to gain?
 
We can still shame coffeescript users, though, right?
 
I mean, let's be honest... It's not real programming unless you use an IDE to compile to a binary executable. Duh.
 
@Luggage yes all 3 of them
 
If you use DOM manipulation, AJAX calls, localStorage, etc, your bottlenecks are almost certainly not in how many closures you have or how efficient your in-memory algorithms are.
3 mins ago, by Madara Uchiha
@jake The primary gain you get from Webpack is productivity, not performance.
 
4:40 PM
If only it were only 3.
 
productivity
As in, you get to keep some small portion of your sanity while writing JS.
 
@ndugger or until you write your own assembler in basic :P
 
but is the performance hit of modularization really that big of a problem?
 
@Luggage Yes
 
I did that on the c64 (didn't come up with it, copied it by hand from a book) but man that taught me some good stuff
 
4:41 PM
I program in microsoft xcell vba
 
The way webpack does it is a bit expensive, with closures inside of an array
 
I program in html tables
 
hahah xcell
 
that's just startup, though, right?
 
But I hear webpack3 brings a very substantial performance improvement over that
Does things with clever hoisting instead of closures.
 
4:42 PM
(or when importing a module for the first time during execution)
 
@Luggage If you're in NodeJS, sure
NodeJS servers run for weeks/months at a time
So the startup time is negligible
Not so much in a browser
Even if you have an SPA
 
well, it's a necessary evil
 
putting stuff like this in a global callback instead of being procedurally executed after an XHR
 
And it's getting better, apparently.
 
4:43 PM
the hoisting improvement was just from the most recent update, right?
 
That gets returned when someone clicks a tab
@KevinB Yeah, it breaks angular :(
 
I haven't tried it yet
don't have the time to work through any bugs if it produced a bunch at the moment
 
@MadaraUchiha I just don't know how to reliably identify the bottlenecks.
 
start by identifying what you want to monitor/improve. For example, page interactivity (how long it takes for a click to result in an action,) perceived load time vs actual load time, network usage over time, etc
 
Whats an easy way to monitor those changes? Lighthouse takes so long and does not work locally.
 
4:50 PM
all of them at once? no idea. i usually pick one metric at a time.
new relic has some tools that definitely help, but it's not free
 
Well right now, I am trying to decide between using 'style-loader' or ExtractTextPlugin for webpack.
 
@jake What are you observing?
 
I have both methods working, but the numbers lighthouse give me are so inconsistent.
 
Does the page get stuck or unresponsive? Does your scrolling stutter? Animations not smooth?
 
@MadaraUchiha First meaningful paint, Its average performance wise,
 
5:01 PM
so, essentially perceived load time
for example, the time it takes to get to the "Loading Chat..." window of SO chat
 
fuck that caught me off guard
@ndugger
 
If you go to the performance tab in the console, enable screenshots, then hard reload the page, you'll be able to compare screenshots to the timeline to see what the bottleneck could be
 
@SterlingArcher Mooove bitch, get out the way.
 
😍
 
I didn't know ben stiller was in the music video
 
A K
5:06 PM
that tree looks like a giant piece of bacon
 
Look at all the pink sawdust!!
 
that's some beautiful cedar
love the purple heartwood
 
@AK or all bacon you've ever seen looks like that tree
 
@rlemon You have that cedar?
 
I wish
@KendallFrey omg
STS-57 launch. '93
 
5:09 PM
mmmm
 
that makes me moist
 
the bull or the rocket
 
yes
This is my favourite song to listen to after a bowl of thin mints
 
@KendallFrey hold my beer
 
s/of thin mints//
@rlemon OOF
 
5:18 PM
don't throw it so hard
 
@rlemon D:
 
He'll be drafted to the MLB later.
That, signed by the Browns for a real QB
 
I can see down into the twins stadium from my desk
but baseball is boring, so I don't really care
 
that probably means I can see your desk from my desk
 
5:23 PM
lol
 
I'm in a 5th floor window on the light rail side
well, not today
 
   var arr = Array.from(
    data.reduce(function(acc, o) {
      return acc.set(o.id, acc.has(o.id) ? 0 : o)
    }, new Map),
    (([k, v]) => v)).filter(x => x);
can this be done any shorter
 
@KendallFrey @ndugger @SterlingArcher youtube.com/watch?v=bcXiwNjkhxU
 
const
(acc, o) => acc.set(...
 
o remove the return
cool
 
5:26 PM
Why did they make another one???
 
@rlemon what is that
 
a link
 
don't kendall me
 
!!kinkykendall
 
Oct 16 '15 at 15:11, by Kendall Frey
I can do goatse
 
5:30 PM
@rlemon Love those
 
what are those humanish things
sex dolls?
 
no
 
+1 to the Japanese for not going that route
 
@juanvan i mean, if you want them to be
> David Lewandowski
 
my wife might like that idea ^-^
 
5:33 PM
@rlemon wow
 
sounds Japanese
one of those polish japanese people I guess
 
duolingo just added japanese
 
japanese isn't even real
 
What's the best JS statement and why is it switch(){case}?
 
the best js statement is ;
 
5:38 PM
@Vap0r your jokes give me ebola
 
@ndugger I'm glad
@rlemon I thought we didn't have to write those anymore
 
@Vap0r only if you don't respect yourself.
 
just because you get ASI doesn't mean you shouldn't use semicolons... you're just adding work for the parser if you omit them
 
@rlemon that's what I'm saying
@ndugger the parser might atrophy if we don't use it
ASI was a scheme to artificially inflate parser employment numbers!
 
my favorite is let;
 
5:43 PM
When debugging does the javascript get interpreted differently than it would if you weren't debugging?
 
@corvid Uncaught ReferenceError: let is not defined
 
@SvenTheSurfer I mean there are regular scope things, and it depends on if you have tranpsiled codes and a couple of other things, but yeah the JS works in the same manner. Why do you ask?
 
!!> 'Hello i am corvid'.split(' ').map(([ firstLetter., ...word]) => ${firstLetter.toUpperCase()}${word.join('')}).join(' ');
 
@corvid "Hello i am corvid"
 
why
 
5:45 PM
@corvid "SyntaxError: missing name after . operator"
 
!!> 'hello I am rlemon'.replace(/^(.)/,t=>t.toUpperCase())
 
@rlemon "Hello I am rlemon"
 
you trying to do this?
 
!!> 'hello i am ndugger'.replace(/(^.)|(\s.)/g, x => x.toUpperCase())
 
@ndugger "Hello I Am Ndugger"
 
5:48 PM
I think that was his goal
 
@Vap0r I'm not too solid on how javascript is interpreted in the first place, but for compiled languages that try to optimize code (loop unrolling) for example. You never see that happening when debugging those languages.
 
!!> 'hello rlemon watch this'.split(' ').map(([first = '', ...word ]) => ${first.toUpperCase()}${word.join('')}).join(' ');
 
@corvid "Hello Rlemon Watch This"
 
@corvid check my code... does the same thing with far less complexity
 
!!> 'hello I am rlemon'.replace(/\b(.)/g,t=>t.toUpperCase())
 
5:49 PM
@rlemon "Hello I Am Rlemon"
 
noobs
 
bobpls
 
!!> var str = "hello world", upperCase = str.charAt(0).toUpperCase() + str.substring(1, str.length), console.log(upperCase);
 
@Vap0r "undefined"
 
uh I suck
 
5:50 PM
yes
 
@Vap0r "SyntaxError: missing ; before statement"
 
just stop trying
 
It works for what I wanted it to work for dammit :(
 
woot woot
 
5:52 PM
@rlemon I'll wait for the inevitably better version that comes out. This cuts the weeds at the soil level, doesn't root them.
 
@KendallFrey I'm just hoping PUBG isn't on sale since I bought it like 4 days ago lol
 
I mulch my gardens
wouldn't work for me
but looks neat
 
I agree, I remember how (comparatively) crappy the first roombas were and have seen how advanced they become. I can't wait for the version that will come of this 5 years from now
 
@SvenTheSurfer get a refund :P
 
6:05 PM
@rlemon dude what the fuck
 
it's glorious isn't it
 
I don't think steam knows what "under $10" means
 
lol, Twilio sent me an email saying "how likely are you to recommend twillio" and I responded with 0 and for a reason "because I get these stupid surveys"
got another email today "hi robert, we've removed you from the email list."
I'm slightly more likely to recommend them now
 
nice
 
Twilio is awesome
I used them at my old job, it's a pretty good API
 
6:13 PM
yea the service is nice, I just don't like getting spam emails
 
twilio.com/sms is Travis Kalanick still CEO?
 
Anyone use diagramming libraries? Specifically want to try making a flowchart type thing, gojs, jsplumb, rappid/jointjs... something else?
 
Hi! What's your thoughts about these 2 syntax for IIFE?

(function(myArg) { ...  }(myValue));

OR

(function(myArg) {})(myValue);

?
 
6:19 PM
afaik they are just preference
 
none are quicker?
 
should I buy Hitman from the steam sale? Looks bretty gud
 
It's just syntax preferences?
@corvid It's amazing
I played a lot
 
if there is a difference in speed, it'll probably be so insignificant it'll be hard to measure
 
I heard it's extremely replayable
 
6:20 PM
and likely variable depending on implementation
 
@corvid I past 25h in the 2 tutorial missions and 45h in the first one
I didn't completed them
LOT of things to do
 
steam store is being a bad :|
 
@rlemon oooooohh
 
@KendallFrey ohh sweet jesus imgly.info/2017/06/mncxnm.html I need this
 
6:29 PM
forget a standing desk, eh?
 
right?
gotta type with the hockey stick tho
 
gestures
 
@rlemon HE JUST KEEPS GOING
 
Bricks! 50% Off! ?

What's Bricks?
 
cocaine
 
6:30 PM
Where can i find some?
50% pretty good deal
 
rectangular prisms of compacted or cemented material
 
!!urban bricks
!!undo
classy
 
@SterlingArcher Wrong product
 
you can't own words man
 
tell that to every company ever
 
6:32 PM
actually you kind of can
it's called trademark
 
if you can own a colour you can own a word
 
^
I'll trademark that
 
soon we'll be selling off feels
 
I've had enough of your lies
 
6:33 PM
Oof, I stirred up enough shit in the C# room where they're all mad at 007 now
I never thought it would actually work
I guess I'm better at trolling than I thought
 
@ndugger lol
@KendallFrey JUDAS!
 
he is a slithering judas
 
Excuse me?
 
backstabbing canadian
 
Oh you know what you did
 
6:38 PM
Everyone pile onto the 007 hate in the C# room
we can do this!
 
anyone here experienced in building reactive forms in angular2?
 
Seriously, what's the deal and what is Bricks?
 
sigh
room topic changed to JavaScript: Bricks! 50% Off! none for Mike.: Topic: JavaScript, ECMAScript. Read this: javascriptroom.github.io/rules. Before asking inform yourself on the XY problem goo.gl/taIqf | devdocs.io Documentation™ Helps. Room meta discussions: github.com/JavaScriptRoom/culture [ecmascript] [ecmascript-6] [hypescript] [javascript] [nodejs]
 
Hi ! Looking for how to create chart with only points, no line, no curve, only 2 axis and points, someone knows one ? ;)
 
LOL
XD
 
6:42 PM
(Using boostrap, there is Flot chart and Morris.js Chart but apparently no "only points")
 
Maybe 007 really does feel a sense of persecution? Maybe we should be nice to him?
Pilt!
hahahaha
!!afk cig and laugh
 
hi, can anyone help me to solve this problem stackoverflow.com/questions/44706618/…
 
I'm pretty sure he was kicked from C#, so we win
 
@mhtb DataTables 1.10+ and its extensions require with jQuery 1.7 or newer.
 
@rlemon already got it, thanks for thinking of me though
my daughter let me know about it a couple of days ago so I gave her the code for the loot box lol
 
6:53 PM
ha, nice.
yea I recall you saying your kids are obsessed with overwatch
 
@MikeBoutin bought it, probably pretty good
 
@mhtb I'm not really sure what the problem is, mostly because I don't know persian, but it seems to be sorting/filtering words for me.
 
C# flagfest eh?
 
looks like 007 doesn't like people talking about him
 
in C#, 40 secs ago, by Sterling Archer
Kendall posted a screenshot of chat, of which that chat, said by you, offended said flagger, who flagged Kendall, instead of you.
 
6:58 PM
lol
 
@corvid It is!
@corvid The Paris mission is amazing
(the first real mission)
 
I think Hokkaido looks interesting
 
I didn't tried it, i bought the season pass, but i did so often the Paris mission than i begin another game and didn't get back to Hitman
Soon, i'll get back
only the 2 first missions was released
 
7:21 PM
wow, was my comment deleted?
-7
Q: Why to learn Javascript when there's jQuery?

aqw alhadaryjQuery is a Javascript library which can do everything Javascript can but in less code. I can't find any reasons why to learn Javascript when there's jQuery other than to support older browsers. Since jQuery doesn't support older browsers like Internet Explorer 8 and below

 
all the irrelevant 'noise'' comments were
 
didn't get a notification or anything
 
you don't
 
😒 but I wanna
 
comments are second class on SO and subject to removal at any time for any reason
 
7:23 PM
I mean, fair enough
 
stackoverflow.com/questions/44707736/… I had no idea you couldn't dupe close unless there was an upvoted/accepted answer
 
@SterlingArcher I upvoted the linked post from the comment, now dupe close to your heart's content
 
7:38 PM
Hi guys. Let's say I have a class Bag that I want to fill with Coins. Each minute I will use a new bag, and the number of coins per bag can differ (and be 0). Is there a way I can write Bag to do all that logic internally, or will I need outer logic to control when to create a new Bag instance to put new Coins into?
 
lol, technically listened
 
!!> const thing = { user: { username: 'corvid' } }; const { user, user: { username } } = thing; console.log(user, username);
 
@corvid "undefined" Logged: {"username":"corvid"},"corvid"
 
TIL you can do this with destructuring
 
reminds me of the joke. programmers wife tells him to go to the store and pickup bread, and if they have eggs get a dozen. he comes home with a dozen loafs of bread.
 
7:40 PM
haha
 
<bah>stuff</bah> is the same as <bah children={"stuff"} /> :)
he's not wrong
 
stop appending smiley faces in order to cut the tension
 
ok :)
 
(:
 
7:46 PM
🔫
 
I had to sell the trigger of my gun to feed my family
 
lol
 

« first day (2441 days earlier)      last day (2501 days later) »