|
redleader posted:This, but unironically. Even in the heyday of "Turn off Javascript for security you guys!" it was loving stupid. That was more than a decade ago. Give up and move on.
|
# ? Apr 1, 2017 05:02 |
|
|
# ? May 15, 2024 04:34 |
|
Hydronium posted:Found at work today: no code needed, the function name says it all. TrimAndAddSpaceAtEnd Wait, does that Trim and/or Add Space At the End, or does it Trim...something and then Add Space At the End?
|
# ? Apr 1, 2017 05:07 |
|
Hydronium posted:Found at work today: no code needed, the function name says it all. TrimAndAddSpaceAtEnd Does it remove all the whitespace from the end of a string, and then add a single space at the end? Cause that's what it sounds like and that's a pretty good name if that's what it does.
|
# ? Apr 1, 2017 05:15 |
|
Vanadium posted:Maybe people could just stop using cookies on sites that don't need them instead of annoying people with popups!! oh man that would be sweet law shouldve been like: - one cookie per site per visitor. - no third parties ever - if you sell any data, your company will be shut down, all your media destroyed, and the rest of your actives will be sold off to cover the expenses. at least
|
# ? Apr 1, 2017 05:18 |
|
https://twitter.com/jakevdp/status/847859811823767552
|
# ? Apr 1, 2017 05:20 |
|
So, my friend can be contracted to do job interviews for startups or whatever. He told me the other day he was interviewing someone for a Java job. It went like this: "Can you explain to me what a Set is?" "Uh... I never encountered one, but it's a type of List, isn't it?" "Okay... so what is a Map?" "Ah, I know that one! That's a List optimized for finding values by keys!" "Alright, let's do a coding example. What does the following code print?" Java code:
Needless to say, he wasn't hired.
|
# ? Apr 1, 2017 09:02 |
|
Carbon dioxide posted:So, my friend can be contracted to do job interviews for startups or whatever. It was a trick question; that code hasn't been compiled or run yet. The code isn't sentient, dummy!
|
# ? Apr 1, 2017 09:42 |
|
also is the coding interview bar really that low at most places?
|
# ? Apr 1, 2017 09:43 |
|
I'd lead with a question on the level of "Can you explain to me what a Set is?" to level my followup questions with a candidate. It's less the interview bar and more the variable quality of the average candidate.
|
# ? Apr 1, 2017 09:47 |
|
Do you know what a set is? Heh, yeah it's a classic ""interview question"", come here 20 year old male comp sci student, sit by me on the sofa but also do you know what an array is? *hand on thigh* Imagine 10 bottles of booze in a rack, and they're real bottles, and you're gonna take a shot for every mistake until we figure this poo poo out hehe
|
# ? Apr 1, 2017 09:58 |
|
QuarkJets posted:also is the coding interview bar really that low at most places? In my place, for PHP dev - 1) write a recursive function, 2) do a mysql select query that joins two tables 3) write a class, having method that adds two numbers and stores them within private attribute. I think there were 5 people so far that weren't able to do this - with a couple of years of experience btw. But I have a sneaky suspicion that salary might not be that great, so I'd rather attribute that, idk
|
# ? Apr 1, 2017 10:49 |
|
Powaqoatse posted:Do you know what a set is? Heh, yeah it's a classic ""interview question"", come here 20 year old male comp sci student, sit by me on the sofa but also do you know what an array is? *hand on thigh* Imagine 10 bottles of booze in a rack, and they're real bottles, and you're gonna take a shot for every mistake until we figure this poo poo out Dude, last week I had to explain y=mx+b in a meeting.
|
# ? Apr 1, 2017 12:24 |
|
Bruegels Fuckbooks posted:Dude, last week I had to explain y=mx+b in a meeting. but did you grab their thighs
|
# ? Apr 1, 2017 12:47 |
|
i wanna sexually harrass every dude in the silicon valley c-suites
|
# ? Apr 1, 2017 12:50 |
|
QuarkJets posted:also is the coding interview bar really that low at most places? Remember, as an interviewee, you're probably coming in nervous as hell, and being asked to code either in your head, on a whiteboard, or (best case) on a computer/setup that you aren't familiar with. My goal in designing interview questions was to find something that somebody should be able to start and finish, cold, in less than an hour. If the problem takes me, fully comfortable and caffeinated, a ton of time to think through, it's probably unfair to ask in an interview situation. If your company (not you specifically, QuarkJets) writes CRUD web apps and pays engineers average salaries, gently caress you for throwing algorithm questions at candidates that probably 90% of your own engineers couldn't pass. As Carbon dioxide's example showed, you'd be surprised how many "Sr. Software Engineers" can't code something at the level of Fizz Buzz when put in front of a keyboard.
|
# ? Apr 1, 2017 15:27 |
|
cuz i got code reviewers in low places where the sprints they grounds us & the jira blows my blues away
|
# ? Apr 1, 2017 16:43 |
|
QuarkJets posted:also is the coding interview bar really that low at most places? When one of my co-workers suggested we start our screen-share coding sessions off with Fizzbuzz, I scoffed. Who's going to gently caress that up?, I wondered to myself. Three weeks later, about 75% of our candidates have failed to write it in a language of their choosing, and most of them could not even explain the algorithm in pseudocode. I'm not asking you solve Project Euler matrix problems, just show me you can do a loop and a few if statements.
|
# ? Apr 1, 2017 18:36 |
|
chutwig posted:When one of my co-workers suggested we start our screen-share coding sessions off with Fizzbuzz, I scoffed. Who's going to gently caress that up?, I wondered to myself. When you say failed, what are we talking here? Their implementation prints the number as well as the appropriate string for multiples of 3 and 5, or they can't figure out for loop syntax, or what?
|
# ? Apr 1, 2017 18:56 |
|
Fergus Mac Roich posted:When you say failed, what are we talking here? Their implementation prints the number as well as the appropriate string for multiples of 3 and 5, or they can't figure out for loop syntax, or what? The failures usually fell into one of these categories (the default language is Python but they are explicitly told they can write it any language supported by the codepair system, so they can choose e.g. Ruby, Java, C++):
Many people could eventually stagger their way to the end, but it would frequently take 20-30 minutes instead of the <5 it should take.
|
# ? Apr 1, 2017 19:33 |
|
chutwig posted:When one of my co-workers suggested we start our screen-share coding sessions off with Fizzbuzz, I scoffed. Who's going to gently caress that up?, I wondered to myself. what if i can't? do you want your solution or a solution? code:
|
# ? Apr 1, 2017 21:22 |
|
I work with some professional programmers who I doubt could explain why you would use a Set instead of a List. Somehow they get by.
|
# ? Apr 1, 2017 21:48 |
|
Carbon dioxide posted:If you are very familiar with Java, you know that System.exit() overrides the finally block and only "Hello World" gets printed. Similar trick questions are anything involving the deprecated Thread.stop and friends methods, or the double-checked locking anti-pattern. I mean, they can still serve as good discussion points, particularly if you're trying to hire someone with deep systems experience. But I prefer to avoid asking trick questions as there's plenty of other straight-forward questions that do a good job of assessing someone's Java abilities. QuarkJets posted:also is the coding interview bar really that low at most places?
|
# ? Apr 1, 2017 21:49 |
|
Dex posted:what if i can't? do you want your solution or a solution? FizzBuzz is the kind of thing that any programmer worth their salt will be able to write up a pseudocode solution to with no real effort, and certainly no need to resort to Google. So yes, when you ask FizzBuzz you are looking for a solution, because the only point to that question is to determine if the actual hard part of the interview can begin.
|
# ? Apr 1, 2017 21:50 |
|
Dex posted:what if i can't? do you want your solution or a solution? Slow down there, Captain Confrontation. If they write something that passes the unit tests, that's good enough and we move on to other problems. If somebody provided that as a solution, I would view it as being pretty novel. That being said, nobody has supplied a novel solution, and if they don't have a pre-canned solution ready basically immediately, it is likely that they will fail all subsequent problems even if they eventually brute force a solution to Fizzbuzz.
|
# ? Apr 1, 2017 21:53 |
|
i'm not trying to be confrontational, i just threw out something that fits on your list of failures but solves the problem i'm sitting on my couch with a beer, though. ask me to do that in an interview i'm nervous about and god knows what'll happen. show me a project with a few failing tests and ask me how i'd go about investigating would be a lot more comfortable, and would give you a better insight into how i work than a popular puzzle somebody can learn by rote or get blindsided by if they're totally junior and panicking.
|
# ? Apr 1, 2017 22:11 |
|
Powaqoatse posted:Yeah, most of the time it seems like the intent of it comes from a good place. For instance, warn people that their personal info is being gathered, but the implementation is just so often completely destroyed by a combination of industry lobbyists and technically illiterate legislators. Considering the penalty is up to 4% of your yearly revenue maybe it's in their best interest to interpret it as broadly as possible regardless of the feeling of the end user.
|
# ? Apr 1, 2017 22:57 |
|
ExcessBLarg! posted:the double-checked locking anti-pattern. It's been a normal pattern since like Java 6, as long as you use volatile. An unfortunate consequence of the "write once, show up in Google forever" nature of blog posts.
|
# ? Apr 1, 2017 23:28 |
|
Dex posted:i'm not trying to be confrontational, i just threw out something that fits on your list of failures but solves the problem I was listing out things that people had done wrong. The function prototype is fizzbuzz(n), where n is the end of the range. A few people wrote if/elif/else stuff but didn't have any sort of loop construct or other way of processing a range of numbers, and then they'd stumble around for several minutes not seeing that that was why the unit tests kept failing. I was not trying to suggest that I'm just looking for a for loop and some ifs and will fail people if they don't have those things - I'm not trying to be prescriptive about their solutions. I do note if they're doing something unidiomatic for the language they're working in, but everyone has to learn somewhere, and the positions I'm interviewing for are not pure dev positions (more like SRE-type stuff), so there's more leeway than if I were interviewing somebody for a senior dev position. That being said, if you can't solve Fizzbuzz, I might be a little scared of the kind of Ansible playbooks you'd write.
|
# ? Apr 1, 2017 23:32 |
|
CPColin posted:It's been a normal pattern since like Java 6, as long as you use volatile. An unfortunate consequence of the "write once, show up in Google forever" nature of blog posts. It's a performance optimization for the perceived slowness of the synchronized block, but I doubt that it actually has a measurable performance impact in most applications where it's implemented, at least not sufficiently so to warrant the code complexity, potential for mistake, or future/alternative JVM bugs. I'm fine with its use internally to implement higher-level abstractions like singletons, but I'm generally suspicious of it in applications code.
|
# ? Apr 2, 2017 00:38 |
|
int main() { printf("1 \n 2 \n Fizz \n 4 \n Buzz \n Fizz 7 \n 8 \n Fizz \n Buzz \n " // and so on. } When do I start?
|
# ? Apr 2, 2017 01:38 |
|
Colonel J posted:int main() As soon as you finish writing out main().
|
# ? Apr 2, 2017 01:41 |
|
My favorite part of FizzBuzz is when people write a broken implementation then go off and write a lengthy blog post defending their mistakes and look for deeper meaning of it. Guys, it's FizzBuzz, it doesn't have to be fancy it just has to do the job correctly.
|
# ? Apr 2, 2017 02:02 |
|
ExcessBLarg! posted:Guys, it's software, it doesn't have to be fancy it just has to do the job correctly.
|
# ? Apr 2, 2017 02:09 |
|
The real question is, has anyone written FizzBuzz in Malbolge?
|
# ? Apr 2, 2017 02:10 |
|
I think you could use Fizzbuzz as a 'how well does this person know how to maintain code' test if you keep adding more requirements like 'bazz if it's divisible by 7, fizzbazz if it's divisible by 21, blarg if it's divisible by 35' and see how long it takes for them to stop using an if-else and come up with some kind of 'rule engine'.
|
# ? Apr 2, 2017 02:13 |
|
vOv posted:I think you could use Fizzbuzz as a 'how well does this person know how to maintain code' test if you keep adding more requirements I don't know how well that really scales down to FizzBuzz though. It's a toy problem with a trivial solution. Even if you have to completely start over on a slightly-different toy problem, there's no real consequence to it.
|
# ? Apr 2, 2017 02:23 |
|
Kazinsal posted:The real question is, has anyone written FizzBuzz in Malbolge? Apparently so. Not mine, I'm not crazy enough for Malbolge. Also not sure if it's actually iterative; it's hard to tell with Malbolge. E: Unbreaking tables... Xerophyte fucked around with this message at 02:53 on Apr 2, 2017 |
# ? Apr 2, 2017 02:51 |
|
ExcessBLarg! posted:My favorite part of FizzBuzz is when people write a broken implementation then go off and write a lengthy blog post defending their mistakes and look for deeper meaning of it. Dang this is a bad blog post. Nobody cares about your scalable fizzbuzz solution. Like, you're right that software should be written in a certain way, but if the requirements change on a three line function, it's less work for me to delete those lines and write new ones than to figure out how to modify the old code. Besides, this solution scales and performs terribly. Here's my much better solution that loads divisor/word pairs from a database and checks their divisibility via a compute shader.
|
# ? Apr 2, 2017 03:40 |
|
Dr. Stab posted:Dang this is a bad blog post. Nobody cares about your scalable fizzbuzz solution. Like, you're right that software should be written in a certain way, but if the requirements change on a three line function, it's less work for me to delete those lines and write new ones than to figure out how to modify the old code. I think this stuff stems from a fairly reasonable misundertanding of what FizzBuzz is about. Jeff Atwood popularized it ten years ago as "Write this trivial function, I want to see that you can code at all." But if the interviewers aren't crystal clear about that, it's not unreasonable to suspect that they're actually asking "Write this trivial function, I want to see your coding style" and are looking to see if and how you approach commenting, maintainability, testability, etc. Heck, I would bet there's more than a few companies out there who didn't get the meme and who do (mis)use FizzBuzz for that purpose.
|
# ? Apr 2, 2017 09:32 |
|
|
# ? May 15, 2024 04:34 |
|
ExcessBLarg! posted:Yeah, that works to some extent. Part of being an experienced programmer though is having enough intuition around the problem to anticipate where the requirements are likely to change (and thus, write that portion with sufficient flexibility that it doesn't require a major refactor every time a requirement comes in), but also to avoid over complicating the design. Plus, because it's a toy problem, it's difficult to anticipate the possible toy additional requirements which might be introduced later on.
|
# ? Apr 2, 2017 11:00 |