Open Side Menu Go to the Top

07-16-2013 , 06:41 PM
Quote:
Originally Posted by clowntable
Warning very open ended and noobish question (I know very little about infrastructure building) ahead!

Say I wanted to develop a simple "web framework" for some language (using existing networking code). What's the base functionality I should provide? I was thinking
- Capability to handle HTTP and the general "server stuff" (already exists not too worried about that)
- Some way to connect to a database (ODBC) and transform data into something that feels natural in said language i.e. ORM for OOP languages
- Render said data in a browser in some way (e.g. create views for data)
- REST interaction with the data
Just follow what Express does,
https://github.com/visionmedia/express

There's a reason it has over 10,000+ stars. It gives you ultimate flexibility while providing all of the core functionality you would expect from a low but not bare metal web framework.

You'll noticeable quickly it has no ORM or any notion of a "model". That should be up to the user to decide on a per project basis and they should plugin any type of mapper they want based on the db tech they chose.
** 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 **
07-16-2013 , 10:20 PM
Arch: Aside from the initial installation, it is probably more beginner friendly than you may think. Yes, pacman is the total nuts.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-16-2013 , 10:26 PM
I took a one month contract at literally the most hipsterish place I've ever seen. Not sure what to make of that. "Sadly", all of these people seem really nice and really good at their jobs.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 12:10 AM
Clowntable, I look forward to your feedback on LightTable. Oddly, I haven't been too excited about it. I get the vision, but its not something I want to be an early adapter for.

I guess LightTable doesn't have paredit mode, which would probably make LT terrible for Lisp development. I just learned about this, and I'm quite surprised considering the history of Granger and LightTable.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 12:48 PM
Just had my first programming related phone interview.

The three OOP questions she asked me where:
1. Name all of the different types of loops.
2. What is the difference between call-by-value and call-by-reference
3. Explain inheritance without using programming jargon

Seemed a little too easy. Is this standard?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 12:49 PM
would rather hear your answers to these questions.

Last edited by tyler_cracker; 07-17-2013 at 12:50 PM. Reason: froot, loop-de-, jeweler's, ...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 12:50 PM
Quote:
Originally Posted by derada4
Just had my first programming related phone interview.

The three OOP questions she asked me where:
1. Name all of the different types of loops.
2. What is the difference between call-by-value and call-by-reference
3. Explain inheritance without using programming jargon

Seemed a little too easy. Is this standard?
only 1 of those things is about OOP
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 12:51 PM
Phone screenings are not meant to be overly technical (especially if you are new grad). They are meant to screen for basic technical competency because most new grads are frauds and embellish the resume.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 12:52 PM
Quote:
Originally Posted by gaming_mouse
only 1 of those things is about OOP
at most!

Last edited by tyler_cracker; 07-17-2013 at 12:52 PM. Reason: aspects, types, ...
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 12:52 PM
@tyler, in all seriousness, your answers indicate more intelligence than aswering that question earnestly would

EDIT: about types of loops

Last edited by gaming_mouse; 07-17-2013 at 12:53 PM. Reason: tyler ninja post
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 12:53 PM
lol, but only true if this screen is administered by a technician and not (as is more likely) an hr drone with a written script.

Last edited by tyler_cracker; 07-17-2013 at 12:54 PM. Reason: also one of the reasons to ask for op's answers ;)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:12 PM
yeah she introduced it as "I'm going to ask you a few OOP questions" and after the first two I was sort of like 'lolwut?'
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:14 PM
Answers to the first 2 are silly to type out.

The last one I used as an analogy that a BRANCH of Bank of America is an instance of the more general, Bank of America.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:23 PM
less silly that you think, i expect.

that is not an example of inheritance.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:24 PM
srsly?

I explained it in that the branch has all the properties that the main bank does, has all the functions and abilities, but also can/does have additional properties and functions.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:29 PM
based on your explanation, i'll upgrade that to a poor example of inheritance. your mental model is flawed here as you are conflating an instance with a subclass.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:30 PM
Quote:
Originally Posted by tyler_cracker
less silly that you think, i expect.

that is not an example of inheritance.
yeah i was about to type the same. his desciption sounds more like an object vs class
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:35 PM
Quote:
Originally Posted by tyler_cracker
based on your explanation, i'll upgrade that to a poor example of inheritance. your mental model is flawed here as you are conflating an instance with a subclass.
Quote:
Originally Posted by gaming_mouse
yeah i was about to type the same. his desciption sounds more like an object vs class
yeahhhhhhh, I see. It's been a while since I've done any OOP stuff. Woops. Thanks for clarifying that. And here I am saying "ohh that **** was so easy," lol.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:40 PM
Makes me nervous about my other answers:

1. For, while, do while

2. Call by value: You pass a copy of the value into the function. Any and all changes are kept local. Call by reference: you pass the memory location of the value. Changes made inside of the function affect the value outside of the function
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:45 PM
those are correct. 1 is just a totally bizarre question. it would make me suspect of the company hiring you more than anything else.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:48 PM
Yeah I did pick up a slightly suspicious vibe. Either way, I'm not going to accept the position because it involves relocating every 2-5 years. Of course that wasn't mentioned until the end of the interview.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:48 PM
My old company asked "Does Java do variable passing by reference or by value?"

Hilarious arguments came out of that. It's actually a great meta-interviewing question. Before someone should be allowed to interview they should be asked what a good answer to the above is. Anyone that feels strongly about one or the other answer - without listening to the explanation given - shouldn't be an interviewer.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:49 PM
Quote:
Originally Posted by derada4
Yeah I did pick up a slightly suspicious vibe. Either way, I'm not going to accept the position because it involves relocating every 2-5 years. Of course that wasn't mentioned until the end of the interview.
How does that work? They just move offices or rotate staff around?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:51 PM
Quote:
Originally Posted by gaming_mouse
those are correct. 1 is just a totally bizarre question. it would make me suspect of the company hiring you more than anything else.
agreed on all this. refactor it as "name some loop constructs and give an example of what they're good for" and it's a fine question.

you (potentially/arguably) left off foreach, goto, and duff's device.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
07-17-2013 , 01:54 PM
Quote:
Originally Posted by jjshabado
How does that work? They just move offices or rotate staff around?
The way it was explained to me was that they have their software and when a new client is going to start using it, you get moved to that location and do a lot of discussing about what their specific needs are and work on customizing/tailoring the software for that purpose. Rinse and repeat.
** 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