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 02-13-2018, 04:02 AM   #31876
Larry Legend
Celtic Pride
 
Larry Legend's Avatar
 
Join Date: Jul 2009
Location: Kyrie's earth
Posts: 42,294
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by gaming_mouse View Post
No. If they were syntactic sugar for ordinary function wrapping
Will this not come in the future?
Larry Legend is offline   Reply With Quote
Old 02-13-2018, 04:29 AM   #31877
Barrin6
Carpal \'Tunnel
 
Barrin6's Avatar
 
Join Date: Dec 2005
Location: beyond legal blindness
Posts: 6,805
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Larry Legend View Post
I think it depends on the manager, but I tend towards iversonian. Nothing wrong with being direct that you want more money or you'll look elsewhere if you are an A player.
Will probably end up looking elsewhere anyway. Maybe stick around until August, since then I'll pick up my bonus and it will be around 1.25 years.

Would like to consider New York, albeit tech opportunities aren't as great there.
Barrin6 is offline   Reply With Quote
Old 02-13-2018, 05:03 AM   #31878
Larry Legend
Celtic Pride
 
Larry Legend's Avatar
 
Join Date: Jul 2009
Location: Kyrie's earth
Posts: 42,294
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

If you mean NYC, there is plenty. Even the burbs are starting to boom there.
Larry Legend is offline   Reply With Quote
Old 02-13-2018, 08:55 PM   #31879
jmakin
 
jmakin's Avatar
 
Join Date: Jan 2008
Location: Streaming
Posts: 28,050
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Wow, I got invited to an on site interview with the company where I thought I bombed the take home.

It's 5 hours long, wtf? What should I brush up on? Gonna review every sorting algorithm and data structure but those are all pretty fresh in my head. Gonna review some C++ basics and java I'm so familiar with I don't even think I need to go over that.
jmakin is offline   Reply With Quote
Old 02-13-2018, 10:55 PM   #31880
Sholar
Carpal \'Tunnel
 
Sholar's Avatar
 
Join Date: Jul 2007
Posts: 6,347
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by just_grindin View Post
Right but that just shows your familiarity with python, right? It doesn't really show how well you either reason about unknown problems or demonstrate your exposure/familiarity with well known problems.
Right, was more my feeling that there is a whole family of contrived string manipulation questions that don't really exist outside of interview contexts.
Sholar is offline   Reply With Quote
Old 02-13-2018, 11:37 PM   #31881
RustyBrooks
Carpal \'Tunnel
 
RustyBrooks's Avatar
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 23,652
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by jmakin View Post
Wow, I got invited to an on site interview with the company where I thought I bombed the take home.

It's 5 hours long, wtf? What should I brush up on? Gonna review every sorting algorithm and data structure but those are all pretty fresh in my head. Gonna review some C++ basics and java I'm so familiar with I don't even think I need to go over that.
This has basically been the standard interview for me for the last 10 years at least. 5 hours would be short - I've had 8-9 hour interview days.

There will probably be at least one cultural fit interview, probably some whiteboard algorithm stuff, maybe some broader concept stuff. Usually there's a "design this high level system while I make the parameters narrower and narrower" Maybe trivia about programming languages, or maybe sort of design principles etc. Very rarely a long interview like this will be *all* algorithm type stuff but it happens.

I usually find these to be harder than an actual day of work.
RustyBrooks is offline   Reply With Quote
Old 02-13-2018, 11:52 PM   #31882
jmakin
 
jmakin's Avatar
 
Join Date: Jan 2008
Location: Streaming
Posts: 28,050
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

They’re gonna tear me apart

5 ****ing hours jesus.

if i do well, there better be a job offer on the other side of it and not a second interview. 5 hours is crazy.

Last edited by jmakin; 02-13-2018 at 11:58 PM.
jmakin is offline   Reply With Quote
Old 02-14-2018, 12:01 AM   #31883
PJo336
THRILLHOUSE!
 
PJo336's Avatar
 
Join Date: Mar 2007
Posts: 21,542
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by jmakin View Post
They’re gonna tear me apart

5 ****ing hours jesus.

if i do well, there better be a job offer on the other side of it and not a second interview. 5 hours is crazy.
My last one was four hours and it was a different crew every hour and we pretty much always ran out of time. A lot of it is standard talking about what you like, look for, what you wanna ask them etc. It's not just white boarding horrible **** 5 hours straight. Don't sweat it
PJo336 is offline   Reply With Quote
Old 02-14-2018, 12:01 AM   #31884
kerowo
lolcat
 
kerowo's Avatar
 
Join Date: Nov 2005
Posts: 34,601
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Just remember what your background is. If you Bork a question don’t be afraid to say you didn’t know that or you misremembered it. Show them you aren’t terrified of making a mistake but want to learn from them. It’s your first time for one of these, let yourself have fun with it, the worst thing that happens is you’re in the same place you are today.
kerowo is offline   Reply With Quote
Old 02-14-2018, 12:07 AM   #31885
jmakin
 
jmakin's Avatar
 
Join Date: Jan 2008
Location: Streaming
Posts: 28,050
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I dont think they expect me to know a whole lot - it’s a 30-ish person company owned by my professor and from my research it seems like he pretty much just hires fresh grads from his classes. Almost everyone there is a UCI alum. I can’t find any job openings on any sites for this company so I think he’s pretty much just asking people in his classes for resumes.

Everyone’s pretty young and they do pretty cool work so it’d be a neat place to work. Honestly amazed i got an invite, i thought i flubbed the takehome.

Still my anxiety was pretty bad in the white board i had the other week so my goal is just to not embarrass myself.
jmakin is offline   Reply With Quote
Old 02-14-2018, 12:23 AM   #31886
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 85,779
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

My job of the last 7 years started as contract, and with exactly one technical question: "What is a factory?". I gave close enough to a satisfactory answer apparently.
suzzer99 is offline   Reply With Quote
Old 02-14-2018, 12:26 AM   #31887
gaming_mouse
Carpal \'Tunnel
 
gaming_mouse's Avatar
 
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 13,782
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Larry Legend View Post
Will this not come in the future?
I can't recall if it's on the roadmap or not.
gaming_mouse is offline   Reply With Quote
Old 02-14-2018, 02:37 AM   #31888
Barrin6
Carpal \'Tunnel
 
Barrin6's Avatar
 
Join Date: Dec 2005
Location: beyond legal blindness
Posts: 6,805
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

5 hours interview sounds about right. As a new grad, I expect a lot of it will be white-boarding and/or system design questions revolving standard concurrency stuff that you learned in Operating System class.

My job that I'm currently at was the shortest. It was pretty straightforward 2 1-hour interviews focused mainly on technical white-boarding followed with resume background. The 3rd hour was talk with the director for company fit which was really awkward since we both are kind of introverts.

But you'll do fine, just have fun and be yourself.
Barrin6 is offline   Reply With Quote
Old 02-14-2018, 12:06 PM   #31889
RustyBrooks
Carpal \'Tunnel
 
RustyBrooks's Avatar
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 23,652
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post
My job of the last 7 years started as contract, and with exactly one technical question: "What is a factory?". I gave close enough to a satisfactory answer apparently.
Like, a factory that makes air conditioners or something, or a factory that produces like programming language objects?
RustyBrooks is offline   Reply With Quote
Old 02-14-2018, 01:43 PM   #31890
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 85,779
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Well you know I worked at a programming job the last 7 years. So...
suzzer99 is offline   Reply With Quote
Old 02-14-2018, 01:51 PM   #31891
RustyBrooks
Carpal \'Tunnel
 
RustyBrooks's Avatar
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 23,652
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post
Well you know I worked at a programming job the last 7 years. So...
You would not believe the dumb ass questions I have been asked about things that are not about programming, for a programming job.
RustyBrooks is offline   Reply With Quote
Old 02-14-2018, 02:01 PM   #31892
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 85,779
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Well he asked me - what is a factory. So I assumed he meant the programming construct. I got the job so I'm guessing he wasn't looking for "a place where they build air conditioners".

I think I said something like "it's a way to pick different implementations of an interface at run time". Which wasn't the answer he was looking for but close enough.

I really suck at verbalizing design patterns. Either turning words into understanding or turning my understanding into words. It's all visual and tactile for me. I have to work through a few of them as a solution to an actual problem I'm facing. Then once I get it they just feel like common sense. But until that light-bulb goes on I'm baffled.
suzzer99 is offline   Reply With Quote
Old 02-14-2018, 02:50 PM   #31893
jmakin
 
jmakin's Avatar
 
Join Date: Jan 2008
Location: Streaming
Posts: 28,050
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Hah i hate the factory design pattern.
jmakin is offline   Reply With Quote
Old 02-14-2018, 03:26 PM   #31894
Victor
Carpal \'Tunnel
 
Victor's Avatar
 
Join Date: Jul 2003
Posts: 59,719
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Javascript and algorithm gurus...

Say I have 2 lists with a matching field and I want to use one list to get all the objects in the other list that match.

List1[
{
number: 1,
other stuff we dont care about
},
{
number: 2,
stuff
},
{
number: 3,
stuff
}
]

List2[
{
number: 1
},
{
number :2
}
]

so I want to feed in both lists and return a List3 that has the first 2 objects of List1 (since the number field matches the number fields of List2)

I can do it with a for loop like this, but theres gotta be a way to do it with javascript methods.


Code:
  let matchedThings: Thing[] = [];
  let matchedThing: Thing;
  for (let i = 0; i < list2.length; i++) {
    matchedThing= list1.find(list1thing=> list1thing.number===list2[i].number);
    matchedThings.push(matchedThing);
}
  return matchedThings;
  }
Any idea how to do this with javascript methods? I tried combing filter, find and forEach but couldnt get it.
Victor is online now   Reply With Quote
Old 02-14-2018, 03:26 PM   #31895
Barrin6
Carpal \'Tunnel
 
Barrin6's Avatar
 
Join Date: Dec 2005
Location: beyond legal blindness
Posts: 6,805
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

So finally got my comp numbers and bonus. Got a bigger raise (22%) than I originally expected which landed me in the middle of the range of the next level. Along with that got a fat bonus.

Going to be hard to find reasons to leave this company now
Barrin6 is offline   Reply With Quote
Old 02-14-2018, 04:03 PM   #31896
Grue
Pooh-Bah
 
Grue's Avatar
 
Join Date: Mar 2004
Location: It is pitch black.
Posts: 5,219
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Victor View Post
stuff
concat + filter?
Grue is offline   Reply With Quote
Old 02-14-2018, 04:29 PM   #31897
fredd-bird
Carpal \'Tunnel
 
fredd-bird's Avatar
 
Join Date: Aug 2007
Location: KG
Posts: 19,174
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

First we pull out all of those values we want to match against and they are stored in an array. Then filter list1 if the `number`'s value is inside that array.

Probably better, more efficient ways but it seems clean and understandable to me.

Code:
const l2Nums = list2.map(t => t.number) //#=> [1, 2]

list1.filter(t => l2Nums.includes(t.number))
https://repl.it/repls/JubilantTechnologicalAccounting
fredd-bird is offline   Reply With Quote
Old 02-14-2018, 05:16 PM   #31898
Victor
Carpal \'Tunnel
 
Victor's Avatar
 
Join Date: Jul 2003
Posts: 59,719
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

ya that works. tyty.

I kept trying to use a .foreach and couldnt get it.
Victor is online now   Reply With Quote
Old 02-14-2018, 05:44 PM   #31899
Larry Legend
Celtic Pride
 
Larry Legend's Avatar
 
Join Date: Jul 2009
Location: Kyrie's earth
Posts: 42,294
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

So this SourceForge database migration is ruining our java builds. I spent an hour trying to hack a workaround for a single dependency before realizing tons of them are failing in the chain.

14 hrs since they last updated that it should be back shortly, fun.
Larry Legend is offline   Reply With Quote
Old 02-14-2018, 06:24 PM   #31900
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 85,779
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by jmakin View Post
Hah i hate the factory design pattern.
Yeah I’ve never once felt the need to use it out of the blue. I go trough these 3rd party things that have factory factories and I want to strangle someone.

But each class is only a few lines of code! Yes but you have to create 8 classes to create a simple component.

Composition ftw.
suzzer99 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 09:43 AM.


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