« first day (2284 days earlier)      last day (2663 days later) » 

9:00 PM
I'd rather have the rebol parse dialog in JS but I don't.
 
But on the edges, the outer layers you normally don't want to stare at too long because your eyes will bleed, it's there.
Because it's usually the most readily available solutions.
 
@MadaraUchiha Except you work with single message systems
 
@BenjaminGruenbaum what does that look like?
 
if we had that syntax, I would be totally ok with it
90% of my problems with regex is that it's write once/read never
 
9:02 PM
SomeKittens would have strong opinions on it (Rebol) but he left.
 
I bet you could implement that rebol syntax in JS pretty easily.
 
@ssube yeah, it's no fun to debug.
@ssube go for it, it would be a welcome tool. I wrote one once but gave up in the middle because I was bored of writing parsing code :P
 
I'll put it on the list with @Luggage's JSX to Ansible tool :P
or maybe I'll come up with a usecase in my game stuff and throw it in there, already writing a config loader :|
did you know that JS (npm) has no good config loading library? they all depend on singletons or provide nothing more than Object.assign
 
There's also github.com/VerbalExpressions/JSVerbalExpressions but it's pretty different.
@ssube do config through dependency injection it's cleaner. @MadaraUchiha wrote an injector you can check out.
 
@BenjaminGruenbaum I am. I wrote one.
 
9:05 PM
Probably use one which utilized Reflect and type-metadata if you're using TS.
 
@BenjaminGruenbaum Chusha? It's old-ish
 
@Inject(Config) and @Configured('foo')
 
@ssube so the choice of configuration is one the injector makes - right?
 
@BenjaminGruenbaum nah, that's asking for trouble.
 
Mine uses static properties, but decorators can work well too
 
9:06 PM
@ssube Angular does it so it likely will never break
 
@BenjaminGruenbaum no, there's more to it, that's just very simple.
I've got named injection and everything
 
We do configuration choices through global flags and at build time - but you said global configuration doesn't work for you.
 
I'm just using my github.com/ssube/noicejs with a custom configure decorator to get and assign values
 
just met a c++ developer today who called javascript as being a "toy"
I was like wtf?
 
@Asperger JS today is an unruly teenager, where as C++ has become senile.
2
 
9:08 PM
And sterile
 
yes, there are a lot of narrow minded people in the world
 
@ssube whereas?
 
Only peasants need to manage their own memory now a days
 
One of his arguments was: Javascript has no structure
 
@Asperger that's by far the best argument.
 
9:09 PM
Does it need one ?
 
In fact, JS undermines itself all the time by having no structure.
 
I think thats a good thing
 
V8 spends a substantial amount of time looking for structures it can optimize against.
@Asperger It is not. It's bad for performance and bad for maintenance.
 
oh didnt know that
actually now that you mention it, makes sense ya.
 
notice a consistent theme to these posts?
 
9:11 PM
Modules don't really solve that though ^
 
modules solve a lot of the human (maintenance) problems, I think.
none of the technical ones
 
modules? like packages? namespaces?
 
@ssube what structure would solve the technical ones? JITs for C# or Java work just as hard.
In fact, LuaJIT probably beats most other jits on most tasks with most optimizations turned off.
Someone actually wrote a Java to Lua compiler and it ran faster than on the Sun JVM :D
 
@BenjaminGruenbaum the one I run into most often (and have solved) is consistent classes to optimize against, which is easily solved with clean code (the sort that TS enforces).
 
Not that clang isn't a beast, then again - the same toolchain and llvm optimization pipeline are what safari uses for JS.
@ssube yeah, I agree. It's very easy to write JS that's hard to optimize.
 
9:15 PM
That's part of why I use TS for my own projects now. It leads you in good directions from the start.
at least, for me, with a decent understanding of what's going on
obviously it won't help somebody who's brand new and has no idea how memory works
 
JS is no toy, though. By saying that, the c++ dev proved himself ignorant of the state of development in the world.
 
@Luggage he probably had a const World and thought nobody else could mutate it.
 
currently using react-select for lots of my dropdowns (converting from a jquery-based library called "select2", don't laugh).
But open to suggestions for alternatives.
 
My bosses boss threatened to post a picture of me headbanging while coding on our slack channel. He caught me in the zone xD
I don't want it posted, but upper management loved it
Apparently I'm the only metal-head in the office
 
How does one headbang and code at the same time?
I guess I need to see the pic.
 
9:21 PM
Efficiently, that's how.
 
touch typing with your index and little fingers only
 
I don't have it, was just threatened with it
 
what's his email?
I'll help him make a gif out of it.
 
@Luggage literally every component I tried on that page didn't work.
The autocomplete didn't, the multiple select froze, the long list didn't render and then just showed blank space.
 
react-select? works for me..
 
9:22 PM
@BadgerCat just heard about the shooting in Carmen -- are you and your peoples ok?
 
the demo page works, too..
 
Not for me, I see lots of bugs.
 
I'm not in loev with it, but it works for me. has for months. I just started moving more controls over to it..
 
@MadaraUchiha @BenjaminGruenbaum I didn't realize when linking it, but Mr. Aleph's latest post is exactly about regex vs other parsers and abusing strings.
 
But again.. open to alternatives if you have one you like.
 
9:23 PM
hello guys, how i can : output .= '</div>'; output .= '</div>';output .= '<div class="item">'; output .= '<div class="row">'; ?
 
doing a full select replacement is more than I care to get into. Maybe it's not that much work..
but keyboard nav and all.. just too much distraction at the moment..
 
@ssube Regex was never about being the fastest parser - it's about being one that's quick to write.
 
@Unmecparla uh, what?
 
@Unmecparla JavaScript does not have .= like PHP does.
JavaScript uses + for both numbers and strings
 
ho shit :'(
 
9:24 PM
10/10 thought Stack had a pornhub tag
 
@SterlingArcher Same.
At least it wasn't TS playground.
 
@BenjaminGruenbaum he actually gets into a bunch of that, it's interesting. Although regex used to look fast, when it was embedded in perl. :P
 
how i can do same @MadaraUchiha
 
@MadaraUchiha you can't get that out of your mind, can you?
 
9:25 PM
@MadaraUchiha why do you hate that so much?
what did I miss?
 
he had a google-snafu with the search
 
!!dick around until 5 or leave early to grocery shop
 
@SterlingArcher I'm not sure
 
what the shit
 
Any Harry Potter fans in here?
 
9:26 PM
getting more and more realistic
 
@ssube What do you expect TS playground to be?
 
? :(
 
Think about that for a second
Then Google it.
 
who put AI in cap on god i will beat you with my sandles
 
@Pigman168 I've read and watched.
 
9:27 PM
2 mins ago, by Madara Uchiha
JavaScript uses + for both numbers and strings
 
@MadaraUchiha I'm at work, so I'll wait. I hope it's this, but if it was, you wouldn't be so upset.
 
@KarmaDoe This shocked me:

https://www.google.ch/search?q=josh+herdman&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjh3IWszcfRAhXkLcAKHcTKA3gQ_AUICCgB&biw=1366&bih=616
Check out the one with his teeth showing
 
output += '</div>'; output += '</div>'; ?
 
@Pigman168 It's a bucal protector.
 
What's that?
 
9:28 PM
Or he's a sharkman
 
Looks like he had his teeth modified
 
:D
 
For when you get punched on the lips, not to cut yourself with your teeth
 
Ah ok
 
9:31 PM
@MadaraUchiha its correct output += '</div>'; output += '</div>'; console.log(output);
Uncaught ReferenceError: output is not defined
 
@KarmaDoe Apparently Crabbe got 2 years in prison for taking part in riots
 
Don't worry, we're fine @SterlingArcher
 
@BadgerCat good <3 stay safe bestie
 
But that's not relevant to being a HP fan, it's more like being a "cholulo"
 
9:32 PM
ug.. old page passing dates around instead of the strings I want..
 
@KarmaDoe What's that?
 
It's a spanish word for when people cares what actors do with their own personal lives.
 
Gotcha, I just thought it was interesting
 
It may be, but again is not HP related.
 
any people can tell me why i have an error here pls : output += '</div>'; output += '</div>'; console.log(output); Uncaught ReferenceError: output is not defined ?
 
9:36 PM
Have you defined output?
!!> x += 4;
 
@SterlingArcher "ReferenceError: x is not defined"
 
You can't concat a variable that isn't defined
 
output = ''; then do whatevs
 
hum
 
let
no inferred globals fam
 
9:37 PM
hi
 
im stupid sry
thx
 
My alarm just went off. Is someone using globals in here?!
 
its ok we were all stupid once
@Luggage s/using globals/changing the thermostat/
 
@SterlingArcher Some of us don't stop being stupid though.
 
WHO TOUCHED THE THERMOSTAT
 
9:39 PM
indeed
 
let alarm
 
dammit he beat me
 
That's right Jordan, SUCK IT!
Actually, nevermind. You might.
 
@Trasiva Hah
 
9:40 PM
There's a solid chance
anywhoodles
!!afk grocery shopping then p90x
 
user2620028
you know, that sentence is different, and yet the same, if you move the comma
 
@SterlingArcher p90x eh? How's that going?
 
user2620028
That's right, Jordan SUCK IT!
 
It hurts.
It hurts a lot
But my arms are getting yuuuuuuuuuuuuge
 
@SterlingArcher Yea, but it does work if you put forth the effort. I have a TRX set at home, but until I cut some weight, my fatass can't use it.
 
9:41 PM
hmm have a 2 day intro to SQL course coming up at work..wow
 
devtool: '#source-map' really slows down re-builds..
 
2 days to learn basic sql
had a whole semester on that... was incredibly boring
 
user2620028
should be 2 minutes to learn basic sql
 
Guys, have you ever had issue with rendering SVGs in Phantomjs?
I can't give you SVG code because it's company work but somehow few path elements are not being rendered
 
the class never got past normalizing tables and creating tables
 
9:45 PM
Any clue?
 
and was based on microsoft access
instead of mssql
 
1
Q: SVG disappear when zoom in on chrome

Roey ZadaI've loaded a page with multiple SVGs on chrome. when I zoomin/out one of the SVG is disappearing and I have no idea why this is happening. (and it stays like this even when I zoom back to default) any ideas? this is the url if you want to try it yourself http://www.facegift.co.il/canvas...

that's exactly my issue
 
And there's a solid answer with it.
 
@KevinB yep same it's a good excuse for a day out of office!
Is there any reason to chain multiple Ajax GET's if the requests don't depend on each other's results?
or would you just declare then one after another?
 
Why does webpack -p report "Output filename not configured" when the filename is correct (no typos), it's in the project root, and the configuration is being exported?
 
10:00 PM
@BrianJ depends on how many there are. I'd send 3-4 at once and then .all them together
assuming you wanted to know when they were all done
 
three in a row @KevinB What do you mean by at once and .all?
yes I would wan't to know when all done to assign props
hmm I see some examples
 
hey again
 
hey
 
@rlemon @ndugger @SterlingArcher youtu.be/Y1Hpem6e9mM
 
ah ok this is what your getting at kevin?
$.when(
    $.ajax({
        url: "xRestService.xsp/byFirstNameFlat?count=5",
        dataType: "json"
    }),
    $.ajax({
        url: "states.json",
        dataType: "json"
    })
).done(function( people, states ) {
    for (var i=0; i < people[0].length; i++){
        var person = people[0][i]
        var temp = ""
        temp=temp+person.firstname+" "
        temp=temp+person.lastname+" lives in "
        temp=temp+states[0][person.state]
        console.log(temp)
    }

});
 
10:11 PM
yes
cept... .then instead of .done
eh, i guess done will work.
 
@HatterisMad everything sex length is under a minute I think
 
:o
 
on another note..anyone got good link on component lifecycle events in React.js for a eh friend
 
doesn't the react website have that? their docs seemed decent when i last looked
 
Yea
The docs on their site are pretty damn good
 
10:17 PM
ah ok I showed the guy the docs but didn't quite get it
something explaining events with examples would be nice
or maybe tell him RTFM again
 
@BrianJ the official one is good
 
hmm so by my understanding this means.. your mom's legs and the rest of her?
 
he could read the source
 
const yourMom = { ...legs };
^
 
i think it means she's all legs
nothing else
 
10:23 PM
hmm
not destructuring?
ah so she contains only legs
or the contents of legs
 
no, lol.
...legs
 
user2620028
@William its called efficiency right?
 
yes but my understanding of that is still that youMom contains only the contents of legs array
@HatterisMad
 
user2620028
so you do get the joke but are arguing semantics of the evaluation?
 
10:35 PM
yeah well trying to understand the spread operator..the joke is that yourMom contains only legs and what makes up the legs array?
sorry to kill the joke lol
 
user2620028
your mom spreads her legs
 
hmm but programmatic ally it doesn't actually signify that right?
it means your mom is literally a pair of legs..nothing else
 
and whatever makes up a pair of legs..feet..ankle..knee..thigh
buttocks..
 
and it's not even a deep copy
 
10:37 PM
calf..
ok haha funny when you don't take it semantically
 
user2620028
i mean if you want to take it semantically it can still be funny
 
user2620028
yourMom is the result of spreading legs
 
hmmm true true
a very efficient joke indeed!
const yourDad = { ...legs }; works too?
3
 
but it's not yourMom's legs that are being spread... they're some other kind of detached legs
 
yes the legs belong to someone else right?
 
10:47 PM
they belong to no-one
or the window if you're not in strict mode
 
yourMom is being given a pair of legs
which is a nice gesture really
ok thanks for clarification here. I'm out
 
this kills the joke
 
The joke isn't funny anymore
WELL DONE GUYS
 
const yourMom = { ...legs}
If anything
 
@leaf please do not post answers as comments. — Moon Cheesez 49 secs ago
-_-
stackoverflow.com/questions/41686378/… @MadaraUchiha possible.. sock? idk
seems weird leaf would answer the question another account posted in that manner
They've both posted an answer btw
 
11:07 PM
can anyone recommend a good sci-fi book series?
 
Depends on how sci-fi you want it
goodreads.com/book/show/16130318-cain-s-blood I loved this book. It's brutal as fuck, but it's very good
 
I was looking for something more along the lines of military sci-fi
 
This is very military-esc
 
@tereško Robert A Heinlein - Starship Troopers
 
think: Old Man's War, Expanse or Lost Fleet
 
11:09 PM
ex-black ops soldier, theres gun battles, etc
 
@tereško Oh, the Safehold series by David Webber is amazing!
Reading book 8 at the moment
 
Give it a shot, the initial part of the book is about a chemical weapons test in the middle east
Plus, the psychological aspect of chasing clones of serial killers? oh my
 
@monners that looks promising
 
It's one of the best series I've ever read.
And I read a lot of sci-fi
It's so good I read all of webber's other space epics while waiting for book 8 to be released :P
 
@SterlingArcher Today you learned that it's actually spelled "-esque". Viola!
 
11:12 PM
FUCKING WHATEVER KENDALL
 
Honor Harrington is also a good one. Badass junior female officer rips shit up in epic space naval battles. Heavy on tactics and naval culture
 
I'm an engineer god dammit
 
Something something Dr. McCoy
 
@SterlingArcher He's retarded, Jim
 
11:14 PM
 
yeah I immediately had to go browse that meme
 
it's just a given
 
giv'er bud
!!youtube just out fer a rip
 
@KendallFrey Something went on fire; status 403
 
11:20 PM
@HatterisMad your mom is constantly spreading her legs
 
user2620028
@Shmiddty highly likely
 
11:35 PM
plot twist... she's a yoga instructor and has class every Monday and Wednesday.
 
My mom teaches yoga
 
const sterlingsMom = { ...yoga, ...legs };
 
@SterlingArcher I know, she showed me all her positions
 
Hi! may i ask a question?
 
> DonHatch That's cute. I'm sure you're just as involved in the spec as I am so I suggest you read more carefully.
@BenjaminGruenbaum lmao
That's cute
!!welcome MithleshUpadhyay
 
11:46 PM
@MithleshUpadhyay 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.
 
How to add answers on developer's story? I'm troubling in that.
 
I can't help you because I couldn't be bothered setting up my employment history :P
 
I'm in the top 1% of JavaScript answerers on SO :D
Jesus my developer story is old af
 
@SterlingArcher , oh really, thanks.
@SterlingArcher , yes. because of you are not a content developer. so, you won't need that. ;)
@david , right. you are good enough.
 

« first day (2284 days earlier)      last day (2663 days later) »