These are chat archives for codefellows/sea-b15-javascript

11th
Aug 2014
Minh Quy
@MQuy
Aug 11 2014 01:56
@ZachBowman ah just about how can you get job in Bing :smile:
Nicholas Harberg
@harberg
Aug 11 2014 19:29

General question for the group. I have a checkout page that is built with Angular. there are four different controllers that handle different tasks; items, shipping info, credit card info, order submission. I would like to be able to trigger the functions inside the first three controllers from the submission controller.

If I put everything into one huge controller it all works fine, but I would like to keep the different actions separate. I have tried nesting the first three controllers inside the submission controller...but parent controllers don't have access to child scope.

Any thoughts on a good structure would be really helpful. Thanks.

Tyler Morgan
@toastynerd
Aug 11 2014 20:02
try abstracting the controller actions into a service
Nicholas Harberg
@harberg
Aug 11 2014 20:22
@toastynerd for example the shipping controller grabs all of the address info from input fields and adds them to the cart object. Would that go into the service? or what the submission controller be the service that then gets the info from the other controllers?
Zach
@ZachBowman
Aug 11 2014 20:25

@MQuy , My Bing experience:

A recruiter sent me the Bing job originally, and I was surprised when they requested the interview, because I didn't think anything would come of it, really. I only had about half the skills they were looking for, and I actually taught myself XML the day before, just to prep for it.

There were three interviewers in a row, mostly asking me about more technical stuff than chit-chat or things about myself.

The first interviewer wanted me to write an algorithm to put a list of operations in order based on a list of dependencies. He said I could use any language I wanted, and I honestly forget whether I did it in Javascript or C#. I followed everything we learned about whiteboarding, and told him I could solve it, but that it wouldn't be fast or efficient (it was exponentially long). Once he saw enough of what I was writing to get where I was going (and that I knew how to program), he started giving me hints about how we could do it faster. I saw where he was trying to take it, and we ended up putting all the data into a tree, traversing that to get the results.

The second guy went right into a programming challenge, and this one was more about logging errors and cloud services, and was more conceptual. He had a heavy Russian accent, and wasn't the best at conveying his ideas across. I asked for a lot of elaboration and kept asking questions. When I finally understood what he was looking for, I realized it wasn't that complicated. He really just wanted me to show him what a class definition in C# would look like for this specific situation.

The third guy had almost no programming questions. All he wanted me to do was to circle the errors in a mock XML document, and then asked a bunch of crazy questions like "If you were the CEO of Microsoft and had to make a speech..." and "If we built a time machine and went back 100 years..." It reminded me of when Google asks Vince Vaughn the blender question in the movie The Internship. I just worded my answers very carefully and thoughtfully, took everything as seriously as I could, didn't ramble on, and tried not to take a huge amount of time before answering.

They apparently must have liked what I said and wrote, because the recruiter emailed me an hour later (I wasn't even home yet) and said they wanted me to start as soon as possible.

Andy Ernst
@AndyCErnst
Aug 11 2014 20:33
Wow, impressive @ZachBowman. Thanks for sharing. That helps me visualize the process a lot.
Tyler Morgan
@toastynerd
Aug 11 2014 20:36
@harberg All kind of depends. I would probably make the part that saves it into the cart a service and either leave the part that pulls data from the forms in the controller or make that a service as well.
Zach
@ZachBowman
Aug 11 2014 20:56
@KuroFluff , Thanks, Andy. I felt like my search wasn't going anywhere very quickly, and then I had this insanely busy week all of a sudden.
Zach Bryan
@ZBryan
Aug 11 2014 21:05
@ZachBowman Congrats man that is awesome
Robert Talamantez
@Talamantez
Aug 11 2014 21:06
@ZachBowman Mission accomplished!
Zach
@ZachBowman
Aug 11 2014 23:15
Thanks guys!
Robert Talamantez
@Talamantez
Aug 11 2014 23:26
realtime video chat with node? https://bitbucket.org/webrtc/codelab