Open Side Menu Go to the Top

09-07-2017 , 01:32 AM
Dude.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
09-07-2017 , 10:22 AM
Was completely unable to reproduce a tester's bug with our app not loading in ie11. Check their screenshots closely and see compatibility mode is turned on. Well then..
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 01:49 PM


Boom shaka laka. You gotta think that emailing the other employees is what made this happen. 95% chance anyway. Being nice never pays.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 02:11 PM
Nice! Glad you got paid. Once that clears I'd let the other employees know that while you did get paid it was a huge pain dragged out over weeks and you have doubts about solvency going forward.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 02:12 PM
Gj suzzer
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 02:20 PM
Quote:
Originally Posted by blackize5
Nice! Glad you got paid. Once that clears I'd let the other employees know that while you did get paid it was a huge pain dragged out over weeks and you have doubts about solvency going forward.
I've promised them no more mass emails. The employees know how long it dragged out. If any of them reach out to me I will reply.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 02:20 PM
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 02:42 PM
Regarding my earlier performance issues - here is a jsfiddle that does something kinda similar to what my page is doing. When switching from the smaller list to the larger one, you'll notice the browser chug a little. This is a little faster than my page, I'd guess due to a couple things I removed for demonstration purposes (e.g. not using Linkify because things are still slow w/o it), but still quite slow. For the web devs here...
- is the slowness an inevitable issue of "rendering 300 things at once on a state change"?
- anything in particular that would improve the performance of this page as-is?
- what strategies (lazy loading? is offloading rendering to a background thread while you show a spinner or something a thing people do?) would you employ to work around issues like this?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 03:34 PM
Nice one suzzer
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 04:29 PM
@gb 2 things jump out

a) don't extend react.component unless you're using state or lifecycle events and
b) your react is out of date by a lot. Try using the most recent version, see if that changes things, and then try v16-alpha and see again how that looks.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 05:20 PM
Quote:
Originally Posted by Grue
a) don't extend react.component unless you're using state or lifecycle events
More reading on this? Can I make a React element out of something that isn't a component? I thought everything should be a component.

(haven't tried v16 but I updated to 15.6.1, basically the same behavior - think I was using older one because I was having trouble getting jsfiddle to recognize React.addons.Perf and examples I found were using older versions)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 05:32 PM


Dangit I'll never be a millionaire now. What if I never cash the check?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 05:35 PM
Google react stateless components effectively its uh here I'll copy paste one

Code:
import React from 'react'; // eslint-disable-line
import PropTypes from 'prop-types';

const Changelog = props =>
	<section className="changelog">
stuff here
	</section>;

Changelog.propTypes = {
	onLeaveChangelog: PropTypes.func
};

export default Changelog;
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 05:51 PM
Quote:
Originally Posted by goofyballer
- is the slowness an inevitable issue of "rendering 300 things at once on a state change"?
the creating of 300 react vdom nodes is probably the bulk of the slowness.

Quote:
Originally Posted by goofyballer
- anything in particular that would improve the performance of this page as-is?
- what strategies (lazy loading? is offloading rendering to a background thread while you show a spinner or something a thing people do?) would you employ to work around issues like this?
showing spinners when doing ajax requests is standard. I don't think it's common to build a big react dom tree in the background but no reason you can't. I messed around with your code and this is probably awful but the basic idea is there. I set it to show 'loading' for a minimum of 300ms because just flashing 'loading' for a few microseconds is more off putting than being forced to wait a split second.

https://jsfiddle.net/ps43p7q6/1/

Last edited by lostmypw; 09-07-2017 at 06:04 PM. Reason: link
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 06:15 PM
Quote:
Originally Posted by Grue
Google react stateless components effectively its uh here I'll copy paste one
Sweet, didn't know you could also just provide a function that turns props -> JSX.

Quote:
Originally Posted by lostmypw
I messed around with your code and this is probably awful but the basic idea is there.
So basically, the rendered list is part of the state? *mind blown* Awesome!

Thanks for the help.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 06:34 PM
That loading for a minimum makes me think.

Is it common/good to use loading messages like that?

I don't like them when the request should be really quick, but I feel like maybe I'm missing how common it is for small waits?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 06:44 PM
Quote:
Originally Posted by lostmypw
the creating of 300 react vdom nodes is probably the bulk of the slowness.
For the record, I'm wrong about this. In the example the list method only takes 8ms or so to run so it's react messing with the actual dom that is slow. Either way, updating the dom right away to show something is loading seems like an okay option.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 07:02 PM
Quote:
Originally Posted by Larry Legend
That loading for a minimum makes me think.

Is it common/good to use loading messages like that?

I don't like them when the request should be really quick, but I feel like maybe I'm missing how common it is for small waits?
https://www.nngroup.com/articles/pow...-scales-in-ux/

Supposedly if it takes longer than 0.1 seconds to update in response to some user interaction, the user will experience the delay as laggy and get annoyed. In that case it's probably better to let the user know something is happening behind the scenes.

In this example it would probably be better to continue showing the first list and just toggle a spinner somewhere in view instead of immediately removing the first list. Twitter and youtube do something similar to this with their routing changes.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 07:40 PM
I was having an email exchange with a coworker today about the evils of dates and timezones - he was complaining about a code base where the database tables had mixed date types and meanings, I was complaining that python is somewhat inconsistent in regards to "unix timestamps" (i.e. seconds since the unix epoch)

Along the way I mentioned that you should never do this

Code:
d = datetime(2017, 1, 1, tzinfo=pytz.timezone('US/Central'))
And then explained why. His next message was "I think I probably need to re-review all the code I wrote today"

(btw the above problem is a doozy and it's caught me many times)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 09:36 PM
Suzzer, nice job. I never thought you'd get paid.

I don't think not cashing the check will work for you.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-07-2017 , 09:50 PM
I think you should blow the money on something you wouldn't normally allow yourself to get. It's basically like 8 grand you found on the street.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2017 , 06:59 AM
Quote:
Originally Posted by suzzer99


Boom shaka laka. You gotta think that emailing the other employees is what made this happen. 95% chance anyway. Being nice never pays.
Glad you got paid and glad your strategy worked.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2017 , 11:40 AM
Quote:
Originally Posted by RustyBrooks
I think you should blow the money on something you wouldn't normally allow yourself to get. It's basically like 8 grand you found on the street.
Well what $3k of it is going to taxes? So that's $5500 for hookers and blow. See you in a couple weeks!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2017 , 05:11 PM
Quote:
Originally Posted by suzzer99
Well what $3k of it is going to taxes? So that's $5500 for hookers and blow. See you in a couple hours!
Like a boss
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
09-08-2017 , 05:14 PM
Okay, so I have an interview question I know I struggle with.

Q: "What is the worst bug you've ever dealt with" or "what is the hardest query you ever wrote" or some variation like that.

A: Is there really good enough code bases that questions like this are relevant? **

Sarcasm aside, I really wouldn't know how to answer this. It is like asking a musician the hardest piece they know. There really doesn't seem to be an answer that isn't relative to the time I worked on it, and even so, it's nothing I lose sleep over or think about much. Patterns emerge, I learn them, then I move on with my life.

** in the context of what I normally do, I'm not really sure if people who think they have the worst ever code (tm) realizes there is zero chance I haven't seen worse.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m