« first day (2552 days earlier)      last day (2379 days later) » 

4:00 PM
@towc haha
 
and then everybody started pasting that one snippet from the release notes
 
@Jhoverit
 
honestly if errors went ignored before upgrading, then that's the real problem
but I see what you're saying
 
@Mosho yeah I mean you don't want errors ofc
and totally should fix them
 
@towc shut up
 
4:01 PM
but before if a user saw it, the entire page didn't unmount
 
yeah I see that
 
that was really my only complaint, it's just an annoying thing now something to deal with
 
it's just that the (paraphrased) statement "react was fine with errors before" is pretty triggering :P
 
lol all I was really saying just trying to complain a bit with the "room" get some comfort and support maybe a pat on the back "It will be ok @loktar" you can do it
instead people like to just argue ahah which is normal for the internet
 
user1596138
They just like to argue with me lmao
 
user1596138
4:02 PM
When I use my sock account nobody thinks twice
 
user1596138
I bet nobody has ever even considered it
 
I knew jhoverit was 007
 
I did want to not be a RO for a while though, sort of related but unrelated
just fyi
 
@Loktar well, welcome to the club :)
of not being RO, that is
 
There's dozens of us
 
4:03 PM
@Jhoverit Maybe you think that because you don't notice the times no one argues with you. I'm not saying it's true. But maybe?
 
user1596138
We're the majority. U aint kew
 
@Loktar next time you come for moral support
just unzip
 
it's great. @Cereal throws non-RO parties every friday
 
I'll take care of it
 
lol
 
4:03 PM
hi all I am trying to parse some html in my javascript string but running into a bit of trouble
 
user1596138
@KendallFrey Those legitimately don't exist aside from Sterling and Hatter in automotive discussions
 
here is my fiddle
 
inb4 regex
 
bah alright back to work adding error boundaries.
 
4:04 PM
@Jhoverit I can give you an example, if I must.
 
user1596138
@KendallFrey How'd you get off Ignore anyway? Basic logic tells us that there are times I'm not arguing. Thank you tho
 
user1596138
Anyway
 
user1596138
If anybody that's not a egotistical snowflake knows of any other communities to chat up, hit me up! I don't need help, just friends :)
 
IRC.
 
@Jhoverit I have no idea what you mean by that.
 
4:06 PM
##javascript, nodejs, so many more
 
user1596138
I don't even know how to IRC
 
@KendallFrey I think he means he ignored you
 
#motorcycles is a fun IRC chat
 
user1596138
Don't your balls have to sag at least 7 inches
 
this community is nice because we have more "real" relationships though
 
4:06 PM
but do any of them have sterling?
 
@Jhoverit I'm not an egotistical snowflake, you're a massive asshole to anyone who disagrees with you.
 
damnit sterling
 
user1596138
@KendallFrey I didn't call you one.
 
oh, I thought that was the implication
 
also tons of gitter chats now as well
 
4:06 PM
Yeah that's right I'm cheating on you guys with an IRC channel
 
user1596138
I said anyone who isn't one is welcome to suggest other coms.
 
user1596138
I am on some gitters
 
@SterlingArcher I never even left IRC! 😛
IRC is great esp in channels with lower members
bleh alright I need to do this error boundary stuff for real though.
 
IRC is dope af, I kind of want to write a bot
 
@SterlingArcher Call it "Bucket"
 
4:08 PM
@Loktar nah, just go back to react 15 and let errors happen silently ;)
 
user2620028
@KendallFrey bro, that also fits you
 
@Shmiddty if only,m already spent 4 days updrading 10 or so of our applications
 
@Loktar would placing a boundary at the root component bring it back to exactly how it was before?
 
BotBucket?
 
I'm gonna be upgrading soon myself :P
 
4:09 PM
@Mosho no
you just render the error message instead 😒
 
I try not to be a massive asshole. I know I sometimes am abrasive, but I don't go out of my way to be. If I'm ever being an asshole, just tell me.
 
I did consider just forcing a rerender at the root only
 
@Mosho no. the error boundary provides a way to render an alternate view for that level in the tree
 
so any child ones would make the page look like it "refreshed"
however that would be super confusing for a user
 
hmm
 
4:10 PM
the plan is to gradually wrap any major pieces though and really handle stuff
 
@SterlingArcher No, just Bucket
 
right now it just gives the user a blank page lol
since it unmounts it all
and like I said... like 10 or so applications lol so a bit of work
 
I'm drawing a blank, and maybe it's because i should be, but what unexpected errors could i... expect... from a component?
 
I guess I could add a boundary to every single component
 
I love irc, but everyone jus uses discord now
 
4:11 PM
@Mosho that's a bad strategy
 
user1596138
@Mosho But they still unmount...
 
also, i just threw an error in a child component... and it just kept going
 
I can't even do that 😒 we have so many components, so many.
 
user1596138
So you get notified, sure
 
@Cereal I hate discord UI so I just use Teamspeak
 
4:12 PM
so..
 
yeah but before this, they would just break
 
user1596138
But you need to rearchitect to have actual error displays
 
@KevinB with an error boundary?
 
i didn't set any up
 
4:12 PM
or w/o?
 
user1596138
Which is awesome. IF you did that from the start and don't have 10+ code bases on multiple projects
 
in react 16?
 
yes
 
at least you can still go out of the route and try again
as a user
not that that's ideal either
 
what kind of error, because we had one for example, cannot read property of undefined blah blah
which killed it
 
4:12 PM
  getCountryItems () {
    return this.props.rootStore.countries.map(country => (
      <MenuItem
          key={country.countryCode}
          value={country.countryCode}
          primaryText={country.name.bar}
           />
    ));
  }
country.name is a string
ah
that's not an error
gotta go one deeper
 
user1596138
Heh
 
also something else we noticed
in the past it looks liek children used to filter out nulls
 
also, typescript is screaming at me
 
it screams all the time
wants you to kill it
 
this.props.children rather.. now we're getting those back
 
4:14 PM
but you just ignore it
sadistic bitch
 
@Loktar that is docced somewhere, I ran into it once
 
so have to do a prefilter of nulls before iterating
 
I bet you get kicks out of it too
 
some filtering happens in the JSX, some by React
 
i just fail to see what unexpected errors we could get
 
4:14 PM
@ssube yeah it looks like it's older... but we JUST hit in in 16, was odd
@KevinB try like myundefinedthing.property
 
connectivity errors should be handled at the request, syntax errors should be caught by typescript
 
totally a real error that shouldn't make it through
 
yeah i'm doin that now, compiling
 
but... it would just kill the child component before, not the entire tree
in our case the server didn't return what was expected
returned null.. so it wasn't technically our fault, but sort of was
since we didn't have a guard
 
yeah it killed everything
 
4:15 PM
have you looked into a tool that will validate the data pre-react?
 
but... in th is case, if it didn't, there would be a select with items that were empty
so that's a win?
 
I know they exist, 90% of graphql's code is one (but it's not very useful without the rest of graphql)
 
sort of, but imagine that's just a small modal in a huge application
and now bam, the entire thing is just dead for the user lol
the proper approach is to obv wrap larger pieces with error boudnaries
 
repost
 
4:16 PM
Whaa
 
Sterling knows, he probably posted it :P
 
Am I late again
 
I did LOL
 
but it is a repost
 
I'm not saying like these things shouldn't be handled at all, shouldn't have errors like that definitely
however, that the entire app just unmounts now is all I'm saying sucks :p
 
4:17 PM
i'd much rather it fail like this than just kinda work, then get a bug report that i cant reproduce. but yeah that does suck, if you don't already have a handler in place for that
 
yeah, I like that it's at least pretty specific in the error
 
but where do you put boundaries
heh
 
Unrelated to react woes, but dead effect 2 vr is great
 
because.. all of my expected errors can be handled in other ways
 
anything moderately complex I guess
@Cereal oh yeah? I liked the first actually
er no I'm thinking of a diff game, 2 is the only VR one iirc, and i think I bought it
 
4:18 PM
Like, this makes it super easy for me to provide a generic error page to users in the event something weird happens, that's great
 
Never played the first. Had some money in my wallet from a refund so I picked up the second one. Once I got past the nausia of trackpad movement, I was having a blast
I started moving and almost fell over
 
yeah, once we get ours in place it will be nice too, like our modals, or page sections can individually die at least
 
i hope it never happens though
:p
 
it's just getting to that point haha
 
i guess i'm just used to thta functionality
that's exactly how coldfusion handles it
if you don't have a catch, you're going to the 500 error page
doesn't matter how minor
 
4:21 PM
I think I'll get a VR setup once I get on my feet in vegas
 
!!afk interview
 
@Shmiddty it might be a good time to hold off
 
do it
 
new ones are on the horizon
 
or not, that's a good point ^
 
4:21 PM
well on Valves side anyway
 
mine still collecting dust unfortunately
 
If a wireless one is on the horizon, wait for that
 
I'm going to pick up one of the Samsung or ASUS ones
 
@Mosho if I'm being honest... so are mine
 
@Cereal okie dokie
 
4:21 PM
as soon as those drop
 
Unwinding my vive cable is so annoying
 
cool! And expensive! vuejs.amsterdam
 
I havent used mine in over 2 months 😒
 
hi all can you guys assist me with a parseHTML issue I am having with my jquery functon?

http://jsfiddle.net/xfupo5e4/
 
@Skullomania You asked earlier, but you didn't say what's wrong with it
 
4:22 PM
@Loktar you're in better shape than me
 
it is not parsing the html
 
I've seen fancy ones where you can walk on a sort of treadmill thing
 
@Skullomania Why are you using $.parseHTML on undefined
 
it is showing it as part the string
 
I'm guessing those aren't geared for the consumer market
 
4:23 PM
@Shmiddty yeah only issue with those are though is lack of support in games
 
not so much
 
@Skullomania check out the docs for .append
 
certainly not the living room market
 
@Skullomania So, you're passing the return value of "showHTML" to parseHTMLshowText
 
but they def look awesome
 
4:23 PM
What's the return valued of showHTML/
 
@Cereal wat
 
@Cereal msg
 
if that was true, then this should work too:
var x = showText(...);
$.parseHTML(x)
 
Also, appending part of an html tag makes no sense
you can't have half of a paragraph element
 
@Skullomania I don't think so
 
4:25 PM
 
@Cereal there is an opening and closing paragraph tag....what do you mean by half?
 
argh, I forgot the only thing I have left to eat is the pasta with that sauce I sweated :/
 
That was kevin
 
I'm considering just throwing it away
 
@towc you sweat pasta sauce?
 
4:27 PM
well, there's also that chicken I was waiting to eat for a hopefully "special" occasion
 
@Skullomania you're appending the html 1 character at a time. If that means appending <p> separately from </p> then you're trying to append half of an html tag.
 
ooooh
 
@Shmiddty isn't it what I said?
used some really cheap pasta sauce yesterday. Hated taste and smell, and somehow a couple of hours later I was sweating that smell
 
@towc it's one of the things you could have said. Without context, "sweat pasta sauce" could mean anything
did you sweat it as in heat it up and get the oils out?
do you have an unusual mutation that makes you literally sweat tomato puree?
 
What "namespace" should I use for an alias for local modules. I mean, I import 'foo/router'; and "foo" is my project JS root.
 
user1596138
4:29 PM
@towc Most people get their company to pay for these events, that's why they're so pricey
 
my organs are still fucked up by the pizza with salted poop :/
 
You could theoretically parse the html on each iteration and completely replace it, but, might get unexpected results.
 
don't eat poops
 
I try not to
damnit, I don't want to just go buy another sauce or more stuff to make the plates I'm used to :/
should also probably be something light, I'm dying internally
 
@Skullomania jsfiddle.net/xfupo5e4/2 for example
 
@towc you're eating pasta and bread, no shit
 
notice how it starts to append the paragraph tag as plain text, but then when it's a whole opening tag it converts to a full element
repeat once it gets to the end
 
@ssube the poop on the pizza has a say in that
 
:eyeroll:
 
user1596138
@KendallFrey U know it gonna be interesting when the guy presenting lives on top of a mobius loop warehouse
 
4:32 PM
@KevinB I see what you did there
 
Oh yeah Cliff is amazing
 
I genuinely kind of want to avoid any kind of food, but I feel hungry already :/
 
eat something crunchy and green
 
I could drown in yoghurts and have some diarrea
 
to offset your bread baby
 
4:35 PM
@ssube you mean fruit?
or rotten potatoes?
oh, salad?
 
that one
a nice spinach and chicken salad with tomatoes should sort you out
 
hmmm
sounds like a good idea
I'll go buy the ingredients
 
if you believe people from 2k years ago, all you need is spinach, tomatoes, olives, chicken, bread, and feta
 
well shit I googled "green chips" and this
 
@KendallFrey ouch
 
4:37 PM
those look good
 
really?
the possible taste reminds me of puke
 
salted chocolate, green tea, and potato?
seems pretty tame
 
just tea with the salt from the potatoes seems urgh :/
unless they're non-salted
admittedly I didn't read the article
 
chocolate is often sweet
 
user1596138
 
4:40 PM
you don't get rid of salt by adding sugar :/
@Jhoverit sorry, something went wrong
 
you've never had salted caramel or chocolate with some other flavor?
 
user1596138
Meh. Works for me
 
it's a common flavor for truffles and other candies
 
oh god, facebook.com is completely white to me
no errors in console
 
lmao
 
4:41 PM
body's empty
 
@towc you're joking rtght?
maybe.... no error boundaries
 
think they got your same bug? XD
 
it'll be like their licensing announcement all over again
> Hey guys, so we know we said one thing and explained at length why, but actually...
 
@towc lel same
 
was going to say that it might just be opera screwing around
but are you using opera?
 
4:43 PM
chrome
 
seemed like a hot reload too
it was working, went back to the tab to check it out just to make sure after the error from jhoverit's link, was completely blank. Thought maybe a rendering glitch, so reloaded, but nope
 
gotta admit that's pretty funny
 
still not working after disabling cache
 
keep hitting refresh
 
@towc didn't know there was a dark theme. thanks
 
4:46 PM
inb4 "so, people, turns out react is a huge bluff, we're switching to vue"
actually, just seems like the server is not responding when requesting things
jhoverit's link still errors, but it works
anyway, back to buying stuff
nvm, server's up. I think I was on the WS tab :/
 

« first day (2552 days earlier)      last day (2379 days later) »