Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 09-04-2017, 12:44 AM   #29601
blackize5
adept
 
Join Date: Sep 2012
Posts: 1,123
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Grue View Post
Consider a container/component seperation style then. Redux connect and mapstatetoprops will let you conditionally render your modal without needing to check nextprops in the lifecycle method.
I've used a container component architecture sans redux pretty heavily on a couple of react projects. We've started using redux in more recent projects that I haven't had opportunity to be hands on with. It seems like a lot of boilerplate for no gain over the container style.
blackize5 is offline   Reply With Quote
Old 09-05-2017, 10:07 PM   #29602
Grue
Pooh-Bah
 
Grue's Avatar
 
Join Date: Mar 2004
Location: It is pitch black.
Posts: 5,010
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

100% agree on redux being overkill at least more than one connected component for most use cases. Just have the top level app handle the store then pass it down to components. Yes there's a lot of prop chains but its also not a million connects and double component/containers and mapstatetoprops nonsense.

Lots of drama on my game lately where one of the more prolific players who has always claimed to be a hot 18 year old asian woman may be in fact an obese 29 year old asian man who stole someone's identity. i.e. more time I need to waste on ****. It did inspire me to learn to scrape the tor exit node IP address list and did learn that string.split('\n') works fine for a list of inner htmls so uh I got that going for me.

Almost 50k games played on my game so average of 7.5 players and 10 minutes per game means I've taken ~7 years of humanity away. Going on my tombstone obv.
Grue is offline   Reply With Quote
Old 09-05-2017, 10:36 PM   #29603
jjshabado
Carpal Tunnel
 
jjshabado's Avatar
 
Join Date: Jul 2006
Posts: 21,855
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

No offense, but you can't put that stat on your tombstone until you've sucked away more time than you lived. Now that's an achievement!
jjshabado is offline   Reply With Quote
Old 09-05-2017, 11:28 PM   #29604
Grue
Pooh-Bah
 
Grue's Avatar
 
Join Date: Mar 2004
Location: It is pitch black.
Posts: 5,010
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Games really only being going strong for ~3 months so I got that covered fam
Grue is offline   Reply With Quote
Old 09-05-2017, 11:35 PM   #29605
RogerKwok
grinder
 
Join Date: Apr 2009
Location: bay area
Posts: 418
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

redux is massive overkill

mobx more than gets the job done for state management, even endorsed by Abramov himself

https://twitter.com/dan_abramov/stat...334912?lang=en
RogerKwok is offline   Reply With Quote
Old 09-05-2017, 11:55 PM   #29606
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 83,733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Update on the side job screwing me for anyone who is interested, recap:

8/15: normal payment day for previous month's work, no payment

8/16: text CEO who has been very responsive but ultimately useless - he can't get a hold of boss or wife (who pays the bills)

8/24: CEO calls me personally, he finally talked to the boss, boss doesn't know what went wrong, promises to pay me from his personal acct if necessary. Will be taken care of in the next couple days. Optimism for payment rising.

8/29: CEO says Boss again nowhere to be found. Optimism crashed again.

9/2: I mention I'm going to start small claims. CEO says boss' wife wants to sign some kind of share buyback paperwork and sign checks then pay me blah blah meow chow. But should be done by DOTY Monday. I'm guessing DOTY was supposed to be EOTD.

9/5 - today: CEO asks for my address for share buyback checks (I technically own about 2% of the company assuming a normal Series A - although it's unclear to me if I worked the full year to even vest 1/4 of that - also the company is a dysfunctional basket case so I really don't expect them to go anywhere). I give address, ask about the shares - blah blah BS. Ok so when do I get the paycheck? "Boss wife is supposed to be doing it this week". Well that sounds encouraging.

So I fired off an email to the 6 employees left. There are some partner-types who do nothing so I'm guessing they don't get paid salary or hourly. Two of the employees are the boss' boys, so I know they'll get paid. But the other 4 might be very interested to know that they may not get paid for their last month of work.

A few hours later CEO texts me complaining that my email made it to boss' wife and now she's pissed. AND SHE WAS JUST ABOUT TO PAY ME! Bwahahaha right. I'm like dude - it's been 3 weeks and all I've gotten is the runaround. Do they think we're not going to tell each other if one of use doesn't get paid? It just shows how ****ing stupid and terrible at business they are.

It actually makes me feel good to know that I at least caused them some existential pain with that email. Hopefully everyone's even more demotivated, although that's hard to imagine possible. Also could mean that maybe they're not quite ready to shut the company down - which is good for me.

The dumbass project manager replied to me. He submitted invoices late so he's hoping to get paid for June, July and August on 9/15. LOLOLOL dip****. How could you let them get into you for that much? They may be just trying to string things out until 9/15 then stiff everyone.

Last edited by suzzer99; 09-06-2017 at 12:01 AM.
suzzer99 is offline   Reply With Quote
Old 09-06-2017, 12:30 AM   #29607
goofyballer
 
goofyballer's Avatar
 
Join Date: Jun 2005
Posts: 60,607
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Anyone know of a good crash course of how to get started with debugging performance in React? I noticed my site is starting to get slow. It's very possible (or rather, likely) that's a result of rendering ~300 items into a list and that's simply never going to be fast (next to-do is lazy loading, like, grab the first 20 items and don't bother rendering the rest unless you scroll to the bottom) - but, it's probably not good that I don't currently have the knowledge to verify that's the issue. How do I measure, like, what my code is doing/if I'm using React badly/stuff like that?

I messed with Chrome dev tools for the first time and got this output:



Seems like this is all React stuff?

One other question along the lines of "how do I make this not ****ty" - the way my page works at the moment is, I have an app state with a few lists of data, and a main display list; you click buttons that change which list is in the main display list. Through the magic of state setting, everything Just Works but I assume a source of slowness is that every time you switch, it's probably re-rendering every item in the list over again, even if that list has been rendered before. Is there a way to, like, render all list views and store them somewhere, then (instantly, I hope?) swap out which one is currently displayed when the button is clicked, as opposed to recursively re-rendering the entire world? (I may be/am likely misunderstanding basic things about the nature of the DOM in asking such a question)
goofyballer is offline   Reply With Quote
Old 09-06-2017, 12:40 AM   #29608
Grue
Pooh-Bah
 
Grue's Avatar
 
Join Date: Mar 2004
Location: It is pitch black.
Posts: 5,010
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

gb your post is pretty vague and thats fine but all I can say is I've never had problems with react like this that results in more than ~300ms delays. Its probably not react.
Grue is offline   Reply With Quote
Old 09-06-2017, 01:20 AM   #29609
Larry Legend
Celtic Pride
 
Larry Legend's Avatar
 
Join Date: Jul 2009
Location: Kyrie's earth
Posts: 41,396
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post
The dumbass project manager replied to me. He submitted invoices late so he's hoping to get paid for June, July and August on 9/15. LOLOLOL dip****. How could you let them get into you for that much? They may be just trying to string things out until 9/15 then stiff everyone.
Straight up thieves
Larry Legend is offline   Reply With Quote
Old 09-06-2017, 02:08 AM   #29610
goofyballer
 
goofyballer's Avatar
 
Join Date: Jun 2005
Posts: 60,607
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Grue View Post
gb your post is pretty vague and thats fine but all I can say is I've never had problems with react like this that results in more than ~300ms delays. Its probably not react.
How would I go about tracking it down, then?
goofyballer is offline   Reply With Quote
Old 09-06-2017, 02:39 AM   #29611
goofyballer
 
goofyballer's Avatar
 
Join Date: Jun 2005
Posts: 60,607
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Bleh, seconds after the edit window elapsed.

An article or two later, I found react-addons-perf:



Linkify is this, ItemDisp is my custom component rendered per list item...seems relatively fast compared to the overall render time.
goofyballer is offline   Reply With Quote
Old 09-06-2017, 07:41 AM   #29612
Victor
Carpal \'Tunnel
 
Victor's Avatar
 
Join Date: Jul 2003
Posts: 58,098
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post

A few hours later CEO texts me complaining that my email made it to boss' wife and now she's pissed. AND SHE WAS JUST ABOUT TO PAY ME! Bwahahaha right. I'm like dude - it's been 3 weeks and all I've gotten is the runaround. Do they think we're not going to tell each other if one of use doesn't get paid? It just shows how ****ing stupid and terrible at business they are.

It actually makes me feel good to know that I at least caused them some existential pain with that email. Hopefully everyone's even more demotivated, although that's hard to imagine possible. Also could mean that maybe they're not quite ready to shut the company down - which is good for me.

The dumbass project manager replied to me. He submitted invoices late so he's hoping to get paid for June, July and August on 9/15. LOLOLOL dip****. How could you let them get into you for that much? They may be just trying to string things out until 9/15 then stiff everyone.
ya they def dont intend on paying your. and that project manager is screwed. unreal that he hasnt been paid in 3 months.

I mean, I guess you coulda threatened the ceo and the wife with outing them to the company before dropping that email.

or mebbe negotiate for some lesser percentage of salary since they clearly are trying to avoid paying out.

pretty messed up situation and if I were you I wouldnt quit on trying to get that money, tho Im not sure of how to proceed.

Last edited by Victor; 09-06-2017 at 07:46 AM.
Victor is online now   Reply With Quote
Old 09-06-2017, 10:31 AM   #29613
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 83,733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I did mention to the CEO that I was going to let the other employees know - about two weeks before I actually did it. The boss and his wife (boss/owner is not CEO) are basically non-communicative over email or phone. Everything is going though the CEO.

Last night I got this from the project manager's personal email:

Quote:
Please don't email company account... causes us political problems. If you want to contact people best to email personal accounts.
Heh, **** is hitting the fan apparently. I love how the owners turn my unsolicited email around and use it to cause problems for the remaining employees. A-holes.

Heh, I just realized there are 5 remaining employees, not 6. I sent that email to my old company email as well - which may be how it got to the boss' wife. Although that would mean she's reviewing all spam. Hmmm. Probably for the best.
suzzer99 is offline   Reply With Quote
Old 09-06-2017, 10:35 AM   #29614
jjshabado
Carpal Tunnel
 
jjshabado's Avatar
 
Join Date: Jul 2006
Posts: 21,855
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Hah, I don't even really know what that means.

Like what kind of political problems can you cause these guys?
jjshabado is offline   Reply With Quote
Old 09-06-2017, 10:37 AM   #29615
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 83,733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Yeah who the hell knows. Maybe they're lying to the employees and saying they're having some kind of dispute with me over my invoice.
suzzer99 is offline   Reply With Quote
Old 09-06-2017, 11:49 AM   #29616
leavesofliberty
Carpal \'Tunnel
 
Join Date: Jul 2010
Location: probably busto
Posts: 6,146
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

If they don't expect to get their last check, then they might quit as soon as they get their check. That is a problem caused.
leavesofliberty is offline   Reply With Quote
Old 09-06-2017, 12:24 PM   #29617
Victor
Carpal \'Tunnel
 
Victor's Avatar
 
Join Date: Jul 2003
Posts: 58,098
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post
Yeah who the hell knows. Maybe they're lying to the employees and saying they're having some kind of dispute with me over my invoice.
there is no doubt that the owners are spreading doing everything to discredit you in the eyes of the remaining employees. for obv reasons.

it actually seems that you will likely make out much better than your coworkers by only losing one check. the rest are gonna get effed bad. esp that project manager.
Victor is online now   Reply With Quote
Old 09-06-2017, 02:13 PM   #29618
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 83,733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Yeah I'd feel worse for him if he wasn't an annoying dumbass. I know he was billing by the hour because he would try to drag out every meeting as long as possible.

Also the developers had this thing where the boss would ask for something ridiculous, so we'd just stall and ignore him until he forgot about it. That is until the freaking project manager would bring it up again out of the blue. STFU ARGH.

They might pay everyone else just to spite me now. heh
suzzer99 is offline   Reply With Quote
Old 09-06-2017, 02:15 PM   #29619
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 83,733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by leavesofliberty View Post
If they don't expect to get their last check, then they might quit as soon as they get their check. That is a problem caused.
Yep - I could have quit as soon as they paid me for June - and only been out 2 weeks pay. But then they'd have a legit excuse to be pissed at me and drag their feet paying me. Also I didn't know they wouldn't pay me, just suspected.

So I decided to do the above board thing and work hard the last month. Also the CEO told me he's never bounced a check. I have reminded him several times about that.

I know one thing - I will definitely say no the next time someone wants to pay me monthly with net 15 - and use this experience as the reason. Even though it worked out here where I got paid for about a year - they could have easily screwed me early on after a few paychecks. And every month I would get stressed right around paycheck time - when they owed me for 6 weeks of work. I never trusted them, and it turns out I was right.
suzzer99 is offline   Reply With Quote
Old 09-06-2017, 02:21 PM   #29620
jjshabado
Carpal Tunnel
 
jjshabado's Avatar
 
Join Date: Jul 2006
Posts: 21,855
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by leavesofliberty View Post
If they don't expect to get their last check, then they might quit as soon as they get their check. That is a problem caused.


But that's not a problem for the employees. That's the part I don't get.
jjshabado is offline   Reply With Quote
Old 09-06-2017, 02:29 PM   #29621
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 83,733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

"Well unfortunately due to the developing situation with suzzer, we need to make sure our legal liabilities are all buttoned down. So sadly, due to suzzer's hostile attack, we'll need to delay payment to everyone for a few weeks while we re-organize our financial structure and consult with our legal team."

is no more ridiculous than:

"suzzer the boss' wife was just about to pay you before that email, now she's pissed" after 3 weeks of runaround

Pure gaslighting.
suzzer99 is offline   Reply With Quote
Old 09-06-2017, 02:51 PM   #29622
leavesofliberty
Carpal \'Tunnel
 
Join Date: Jul 2010
Location: probably busto
Posts: 6,146
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by jjshabado View Post
But that's not a problem for the employees. That's the part I don't get.
Why should suzzer want to cause problems for anyone other than the management? It should lay at their doorstep, imo. Unless I'm missing something.
leavesofliberty is offline   Reply With Quote
Old 09-06-2017, 03:06 PM   #29623
Larry Legend
Celtic Pride
 
Larry Legend's Avatar
 
Join Date: Jul 2009
Location: Kyrie's earth
Posts: 41,396
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

What pieces of **** these guys are.
Larry Legend is offline   Reply With Quote
Old 09-06-2017, 03:21 PM   #29624
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 83,733
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by leavesofliberty View Post
Why should suzzer want to cause problems for anyone other than the management? It should lay at their doorstep, imo. Unless I'm missing something.
The project manager emailed me back on his personal account, said me emailing them on thier company accounts "causes us political problems". We're speculating on what those might be.
suzzer99 is offline   Reply With Quote
Old 09-06-2017, 03:54 PM   #29625
leavesofliberty
Carpal \'Tunnel
 
Join Date: Jul 2010
Location: probably busto
Posts: 6,146
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post
The project manager emailed me back on his personal account, said me emailing them on thier company accounts "causes us political problems". We're speculating on what those might be.
I doubt they want to confirm or deny anything that you say in an official email for legal reasons. If they deny it, then that's a legal problem. If they confirm it, then they can't discredit you.

There's only X$ for payroll. One of the employees is smart enough to quit when they get payed and grab it. The others aren't. It's a prisoner's dilemma if I'm not mistaken.

tbh, I would've done the same. By bringing it to the attention of the employees, management has to solve their payroll problem. You're essentially helping them in some respects by stopping them from kicking the can.
leavesofliberty is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Jump


All times are GMT -4. The time now is 12:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2008-2017, Two Plus Two Interactive
 
 
Poker Players - Streaming Live Online