|
Perl has an API for SQL databases that doesn't suck that's more than I can say for Python also these are literally bog standard CRUD operations, there's like twenty subcommands that all boil down to create prepared statement bind parameters execute and maybe check the affected row count to ensure the WHERE clause matched print out the result set if applicable
|
# ? Jul 8, 2014 20:37 |
|
|
# ? Jun 6, 2024 19:15 |
|
tef posted:i am pretty sure i got rejected by fb ~12 months ago, in london yeah, that sounds like a lovely experience. sorry. :-( implement-this-thing isn't generally motivated by the need to have you do that in the field. it's really a shibboleth for facility with CS principles. there are definitely false negatives from it, as with anything as crude as interview questions. the "can you do good engineering" interview is a different one ("pirate"!), but again it's a heuristic. when I interviewed for a director position, I had to rotate an image buffer -- not because I was likely to have to do that as part of my job, but because it was a way to measure a certain kind of technical depth. it's really not all about the quality of the result but about how people reason their way through it, react to feedback or changes, ask questions and state assumptions, can explain why they made the choices they did. you can do pretty badly on the result of a "ninja" and still get an offer, if the other signals are good. (that said, I did write threaded C code in bootcamp, so I guess I ended up using similar skills in the field.) "solve an actually complex problem" isn't really a tenable thing in 45-min engineering interviews, because it requires a really good match between domain experience and the problem (for both candidate and interviewer) and complex problems take a while to nail down in terms of assumptions and such. I'm interested in a longer-form systems interview model for experienced candidates, but it takes a long time to get that right and calibrate interviewers and so forth. (I think the silly names are as good a shorthand as anything else. it helps with people coming in from other environments and thinking "I know how to do a ds&a interview" before learning about how we do them and why they're that way) I doubt many of our interviewers are prepared for a candidate to be adversarial. Mostly people want to get along, and if they can't bring up "why do this?" in a pleasant way then that's honestly a pretty relevant signal for whether or not you'd want to work with that person.
|
# ? Jul 8, 2014 20:37 |
|
Mr Dog posted:Perl has an API for SQL databases that doesn't suck spring JdbcTemplate has like 3,500 methods and 3,450 are overloads. i like it that way tbh
|
# ? Jul 8, 2014 20:52 |
|
Gazpacho posted:well given that ruby doesn't have the "more than one way" philosophy behind it you have a better chance of coming into existing code and beginning to understand it without fighting the last guy's unique snowflake conventions i guess it's better than scala where everyone's unique snowflake dsl also uses unique snowflake operators, but i would sooner bite out my own kidneys than take a job maintaining someone else's ruby code, and i say this as someone who recently spent an enjoyable day fixing bugs in some perl that was apparently written before the invention of indentation.
|
# ? Jul 8, 2014 21:30 |
|
Mr Dog posted:Instead of writing full on web MVC and stored procs for a bunch of admin tools nobody other than me is ever going to use, I write some 500 line Perl scripts. Python is really good for data mining stuff but really bad at databases such that the ungodly hack known as JPype is better for manipulating large proprietary databases with java drivers using your own DB API implementation in Python
|
# ? Jul 8, 2014 21:39 |
|
can i assume that a = c - b implies a + b >= c always for floats?
|
# ? Jul 8, 2014 21:40 |
|
tractor fanatic posted:can i assume that a = c - b implies a + b >= c always for floats? I'm pretty sure not, due to overflow
|
# ? Jul 8, 2014 21:43 |
|
Malcolm XML posted:do u know what RoR does to ruby internals ruby 2.1 makes it possible to fix this because monkey patching can be scoped (of course, that will not stop every library in the world from requiring activesupport)
|
# ? Jul 8, 2014 21:51 |
|
Shinku ABOOKEN posted:how do you loop over a file line by line in perl? Perl code:
|
# ? Jul 8, 2014 21:54 |
|
use Awk code:
|
# ? Jul 8, 2014 21:58 |
|
Subjunctive posted:implement-this-thing isn't generally motivated by the need to have you do that in the field. it's really a shibboleth for facility with CS principles. there are definitely false negatives from it, as with anything as crude as interview questions. the "can you do good engineering" interview is a different one ("pirate"!), but again it's a heuristic. when I interviewed for a director position, I had to rotate an image buffer -- not because I was likely to have to do that as part of my job, but because it was a way to measure a certain kind of technical depth. it's really not all about the quality of the result but about how people reason their way through it, react to feedback or changes, ask questions and state assumptions, can explain why they made the choices they did. you can do pretty badly on the result of a "ninja" and still get an offer, if the other signals are good. (that said, I did write threaded C code in bootcamp, so I guess I ended up using similar skills in the field.) this is dumb as gently caress. just insufferably dumb. if you can flub the "ninja" interview and still get the job "if other signals are good," that means the SNR for your "ninja" interview is 0. it contributes nothing. also i'm really tired of being asked to solve some problem out of taocp at every programming interview ever. rotating an image buffer is not a meaningful problem that will indicate my performance under pressure traditional non-techy firms run by adults have worked around this with what they call "case" interviews, where you try to work through an actual business problem from the past, involving a business that actually existed. so you won't be rotating image buffers as a case study for writing web applications.
|
# ? Jul 8, 2014 22:00 |
|
Notorious b.s.d. posted:
what does <$FILE> mean?
|
# ? Jul 8, 2014 22:17 |
|
Shinku ABOOKEN posted:what does <$FILE> mean? "iterate over this file handle in scalar context", which means "give me each line of this file individually"
|
# ? Jul 8, 2014 22:20 |
|
Notorious b.s.d. posted:this is dumb as gently caress. just insufferably dumb. if you can flub the "ninja" interview and still get the job "if other signals are good," that means the SNR for your "ninja" interview is 0. it contributes nothing. the 'other signals' include the second "ninja" interview
|
# ? Jul 8, 2014 22:20 |
|
Shinku ABOOKEN posted:what does <$FILE> mean? shorthand for "readline($FILE)" it's used pervasively in the perl documentation so it's just one of those things you learn whether you like it or not. like ruby's dumbass block passing. or python whitespace.
|
# ? Jul 8, 2014 22:22 |
|
Otto Skorzeny posted:the 'other signals' include the second "ninja" interview not an excuse
|
# ? Jul 8, 2014 22:23 |
|
Notorious b.s.d. posted:this is dumb as gently caress. just insufferably dumb. if you can flub the "ninja" interview and still get the job "if other signals are good," that means the SNR for your "ninja" interview is 0. it contributes nothing. No it does not mean that.
|
# ? Jul 8, 2014 22:25 |
|
shrughes posted:No it does not mean that. it's unrelated to your job, and it doesn't matter if you pass or fail because "other signals" are more important. seems pretty g-d useless to me
|
# ? Jul 8, 2014 22:27 |
|
Shinku ABOOKEN posted:how do you loop over a file line by line in perl? -n or -p on the command line
|
# ? Jul 8, 2014 22:29 |
|
quote:also i'm really tired of being asked to solve some problem out of taocp at every programming interview ever. rotating an image buffer is not a meaningful problem that will indicate my performance under pressure Why the gently caress would anybody care about your "performance under pressure"? You feel pressure in the workplace? Do you just sit there all stressed out? Notorious b.s.d. posted:traditional non-techy firms run by adults have worked around this with what they call "case" interviews, where you try to work through an actual business problem from the past, involving a business that actually existed. so you won't be rotating image buffers as a case study for writing web applications. Uh... it's perfectly reasonable for you to be able to write code and solve algorithmic problems when you're going to work at a job writing code and facing algorithmic problems. If you want to be some scrub-tier shitlord web dev that can't solve extremely simple toy problems, Facebook is right not to hire you.
|
# ? Jul 8, 2014 22:30 |
|
Notorious b.s.d. posted:it's unrelated to your job, and it doesn't matter if you pass or fail because "other signals" are more important. seems pretty g-d useless to me Let's try to make an analogy you can understand. It's like this. If you make one dumb post, people might think, hey, look at all these other posts you made that aren't dumb! Probably you're not dumb. (Just being hypothetical here.) But if you make dumb post after dumb post after dumb post, and you can't even grasp the idea of making a judgement based on something other than the is-perfect/isn't-perfect bit, people are right to think, "This guy's pretty dumb," in reference to you. (Totally being completely hypothetical here.) It's as if the hypothetical you is of those people that just can't process an idea "the probability of X is [some number not equal to 0 or 1]" and can't build up piecewise probabalistic components when forming beliefs or making decisions, because their brain is just broken and every component of their belief about the world has to be an absolutistic 1 or 0.
|
# ? Jul 8, 2014 22:36 |
|
Notorious b.s.d. posted:this is dumb as gently caress. just insufferably dumb. if you can flub the "ninja" interview and still get the job "if other signals are good," that means the SNR for your "ninja" interview is 0. i dont follow, a signal doesn't have to be perfect to be informative
|
# ? Jul 8, 2014 22:44 |
|
shrughes posted:If you want to be some scrub-tier shitlord web dev that can't solve extremely simple toy problems, Facebook is right not to hire you. yeah screening out the people who can't solve extremely simple toy problems is probably valuable. assign one as homework before you waste any humans time on it. the problem is the other direction: when we take "toy" problems as indicative of job performance. that's loving stupid.
|
# ? Jul 8, 2014 22:48 |
|
tractor fanatic posted:can i assume that a = c - b implies a + b >= c always for floats? you can but i wouldn't be surprised if it bites you in the rear end
|
# ? Jul 8, 2014 23:03 |
|
Gazpacho posted:well given that ruby doesn't have the "more than one way" philosophy behind it you have a better chance of coming into existing code and beginning to understand it without fighting the last guy's unique snowflake conventions At my job we use RoR but the guys who started it were all a bunch of php devs who didn't need or understand any of the 'rails magic' so 8 years later there is very little rails remaining. Everything is just custom. There's very little of the rails routing system left, we have our own rendering thing. I'm sure it would be great but it's almost entirely undocumented and uncommented so it's like learning a dsl the size of rails without anything to guide you. Also it's much more confusing and poorly designed than rails because at the end of the day we are product driven and our code base is driven entirely by 'get it done fast so we can build the next thing' I'm guessing this is mostly normal
|
# ? Jul 8, 2014 23:03 |
|
USSMICHELLEBACHMAN posted:At my job we use RoR but the guys who started it were all a bunch of php devs who didn't need or understand any of the 'rails magic' so 8 years later there is very little rails remaining. O hey this is what I'm doing but with an 8 year old python web app.
|
# ? Jul 8, 2014 23:17 |
|
tractor fanatic posted:can i assume that a = c - b implies a + b >= c always for floats? I assume you mean a == c - b, rather than assignment. For if c or b were NaN and that was assignment, then of course the condition on the right would fail. Also, if c is a real number, and b is +infinity, and a is -infinity, then a + b will be NaN (I think) and the comparison will fail. Suppose (with single-precision floats, where the numbers 1 - 2^-24, 1, and 1 + 2^-23 are representable, but nothing in between) we have a = 1, b = 2^-24, and c = 1 + 2^-23. Then we have c - b rounding-to-even and evaluating to 1. Thus, a == c - b. But a + b also rounds to even, evaluating to 1. So a + b < c is true, and a + b >= c is false. Edit: Yeah, pretty much any time "c - b" would round down, look out! Maybe you'll get lucky and a + b will round up to c, but.. maybe not. Another example is if c = 0.5 - 2^-25 and b = -1. Then c - b evaluates to 1.5 and 1.5 + b evaluates to 0.5. shrughes fucked around with this message at 23:26 on Jul 8, 2014 |
# ? Jul 8, 2014 23:22 |
|
Notorious b.s.d. posted:the problem is the other direction: when we take "toy" problems as indicative of job performance. that's loving stupid. smdh if you think there is any way to test for "job performance", or that that is somehow the point of a technical interview
|
# ? Jul 8, 2014 23:31 |
|
Notorious b.s.d. posted:it's unrelated to your job, and it doesn't matter if you pass or fail because "other signals" are more important. seems pretty g-d useless to me i interviewed at fb first few interviews had some algo problems, totally uselss but the idea was that it revealed ur problem solving process then the rest were all job related with maybe a "do it in python on the board" my "out" for a bunch of coding cases is "do u mind if I reuse X from stdlib/basic poo poo?" if they refuse its usually a sign they are bad prob the nicest interview experience i ever did tbh, i liked everything about the place and people
|
# ? Jul 8, 2014 23:47 |
|
Malcolm XML posted:i interviewed at fb but for ~*reasons*~ i ended up elsewhere
|
# ? Jul 8, 2014 23:48 |
|
like usually i understand peeps complaining about algo problems b/c if a company uses that as its only measure its useless plus anything more than basic stuff is entirely pointless u have to tread the fine line of easy enough to work out in an 1hr interview with just a whiteboard but not too hard and not literally trivial like in current job we have peeps who can't make it past the "detect if a string is a palindrome" step, even in pseudocode, which i usually accept
|
# ? Jul 8, 2014 23:50 |
|
Malcolm XML posted:but for ~*reasons*~ i ended up elsewhere
|
# ? Jul 8, 2014 23:51 |
|
Malcolm XML posted:my "out" for a bunch of coding cases is "do u mind if I reuse X from stdlib/basic poo poo?" if they refuse its usually a sign they are bad i guess I'm bad then because when i ask you to implement string.replace i am obviously not expecting you to write "String.replace(...)" if you ask, i'll give you bonus points in my head, tho
|
# ? Jul 8, 2014 23:53 |
|
being adversarial with an interviewer is just a great way to waste evryones time honest;y if it's clear u wont wanna work with them just do the professional thing and end it there
|
# ? Jul 8, 2014 23:54 |
|
Dessert Rose posted:i guess I'm bad then because when i ask you to implement string.replace i am obviously not expecting you to write "String.replace(...)" well obvs but if it's like "implement this algo on stuff fed from a file" usually i just ask "can i have a file.readline function already defined?" "can i assume there's a file parser?" etc
|
# ? Jul 8, 2014 23:55 |
|
Star War Sex Parrot posted:ur too smart for that place nah threre were some insanely smart peeps there but the team i inteviewed was crazy smart but also very chill about things occasionaly i wonder what would have been if i accepted lots more sunshine
|
# ? Jul 8, 2014 23:56 |
|
Malcolm XML posted:lots more sunshine
|
# ? Jul 9, 2014 00:00 |
|
all i know is that you post good poo poo in the math thread in SAL
|
# ? Jul 9, 2014 00:00 |
|
also i have no idea what Xeom's doing in CoC's C++ thread
|
# ? Jul 9, 2014 00:01 |
|
|
# ? Jun 6, 2024 19:15 |
|
Notorious b.s.d. posted:shorthand for "readline($FILE)" oh yeah elusive shorthand syntax is just as bad as whitespace also you forgot to import IO::File and a semicolon MononcQc posted:use Awk awk is cheating, it's like using bc -l for quick trig calculations
|
# ? Jul 9, 2014 00:02 |