|
In a uni programming contest, where you can use any language you like, one student writes in C, and writes like this.code:
|
# ? May 6, 2013 04:01 |
|
|
# ? May 17, 2024 14:18 |
|
My favourite part is how he tries to reuse main as his comparison function, but it breaks whenever sizeof(int) != sizeof(int *) so he has to write a separate comparison function anyway. But then keeps on reusing main when he can get away with it, just because.
|
# ? May 6, 2013 04:20 |
|
Since its for a contest I'm assuming hes having fun and golfing or something. I hope so anyways.
|
# ? May 6, 2013 04:50 |
|
QuarkJets posted:How do these people manage to get programming jobs without the skills that the jobs require? Don Music posted:In a uni programming contest, where you can use any language you like, one student writes in C, and writes like this.
|
# ? May 6, 2013 08:35 |
|
Don Music posted:In a uni programming contest, where you can use any language you like, one student writes in C, and writes like this. Yaayy keeping IOCCC alive What's this supposed to do anyways?
|
# ? May 6, 2013 08:37 |
|
Pilsner posted:Easy - those who manage and lead programmers rarely know how to even write a Hello World application. It's so lame when you look at most other businesses and skills in the world. I'm pretty sure you have to work your way up to lead in almost every other industry. To be fair writing good code and effectively managing/leading people are very different skill-sets, and proficiency in the first does not imply proficiency in the second. The problem is really more that technical people are often assessed and hired by non-technical people, or even by technical people who don't know how to assess someone in an interview situation.
|
# ? May 6, 2013 09:05 |
|
The problem is also that programmers often climb up to managing positions and they have no idea how to manage people.
|
# ? May 6, 2013 11:20 |
|
To be fair, many programmers stay in programming and they don't know how to write code either.
|
# ? May 6, 2013 11:28 |
|
Don Music posted:In a uni programming contest, where you can use any language you like, one student writes in C, and writes like this. I started reading this until I realized that life is too short for this kind of horseshit unless someone is paying me.
|
# ? May 6, 2013 13:47 |
|
Volmarias posted:I started reading this until I realized that life is too short for this kind of horseshit unless someone is paying me. Next thing you know you'll stop reading this thread.
|
# ? May 6, 2013 16:21 |
|
QuarkJets posted:How do these people manage to get programming jobs without the skills that the jobs require? Have you ever tried interviewing people for a programming position? I wouldn't wish that on my enemies.
|
# ? May 6, 2013 16:49 |
|
Zaphod42 posted:Have you ever tried interviewing people for a programming position? I wouldn't wish that on my enemies. Is it the process that is terrible, or the candidates that typically apply for programming positions? I have seen some very bizarre behavioral interviews with technical candidates.
|
# ? May 6, 2013 16:57 |
|
Zaphod42 posted:Have you ever tried interviewing people for a programming position? I wouldn't wish that on my enemies. Have you ever tried interviewing intra-company candidates who you wouldn't be interviewing if it weren't for the fact that you were doing HR a solid?
|
# ? May 6, 2013 17:26 |
|
I'm convinced this is how!!'s alt account.
|
# ? May 6, 2013 17:29 |
|
Dirk Pitt posted:I have seen some very bizarre behavioral interviews with technical candidates. There was a place that a coworker of mine interviewed at that had everyone take a two hour personality test during the interview, and all the employees cubicles had color-coded signs with their Myers-Briggs type and a blurb on how to interact with them based on their being an INTJ or whatever He tried to leave the interview early, and they wouldn't let him. Two weeks later he declined a second round of interview, and they tried for weeks to convince him to come back, and also to send them his W2 and two pay stubs because they didn't believe his salary history
|
# ? May 6, 2013 18:07 |
|
Otto Skorzeny posted:There was a place that a coworker of mine interviewed at that had everyone take a two hour personality test during the interview, and all the employees cubicles had color-coded signs with their Myers-Briggs type and a blurb on how to interact with them based on their being an INTJ or whatever This sounds like the plot of a horror movie.
|
# ? May 6, 2013 18:25 |
|
Otto Skorzeny posted:He tried to leave the interview early, and they wouldn't let him. Two weeks later he declined a second round of interview, and they tried for weeks to convince him to come back, and also to send them his W2 and two pay stubs because they didn't believe his salary history Did they tell him what they were offering? This makes it sound like his previous/current salary was higher than his prospective manager's.
|
# ? May 6, 2013 18:39 |
|
Otto Skorzeny posted:There was a place that a coworker of mine interviewed at that had everyone take a two hour personality test during the interview, and all the employees cubicles had color-coded signs with their Myers-Briggs type and a blurb on how to interact with them based on their being an INTJ or whatever I had to do that once. They had me take a personality test and an IQ test before I sat down with the department head who was doing my interview. It took so long that my wife called me thinking I had been abducted or something. In my defense, we had just moved cross-country and were scrambling to get jobs otherwise we'd have to pack up and head home. That W2/paystub business is wacky though. Off topic: That job interview was for a full-time front-end web developer, and after all the tests and the 3 hour interview, the department head told me that I "aced the tests." The IT department head happened to sit in for the interview and told me that if I didn't get the web developer job, he'd hire me for IT. In the end I was offered a freelance web design position. Total kick in the nuts. Thinking about it, I even spent a few hours of personal time building a simple template with image slices out of a .psd they gave me, and some PHP to handle email forms before they would even give me an interview. Some lessons are hard learned...
|
# ? May 6, 2013 18:39 |
|
Every time I look at this code from the boss...php:<? $myhex = hex2bin($mybin); $myhexarray = array($myhex); foreach($myhexarray as $myvalue){ // yes, this iterates only once // boss code // // no control structures like break/continue are used here // ?> This is just another bit of nonsense from him that makes this thing impossible to follow. I've been trying to rewrite this thing and it's been hard; every time I start we get dumped onto some new Super Important Project that some C-level pulled out of their rear. (I did at least manage to rewrite half of it, but the other half is much worse)
|
# ? May 6, 2013 18:43 |
|
Goat Bastard posted:To be fair writing good code and effectively managing/leading people are very different skill-sets, and proficiency in the first does not imply proficiency in the second.
|
# ? May 6, 2013 18:48 |
|
DaTroof posted:Did they tell him what they were offering? This makes it sound like his previous/current salary was higher than his prospective manager's. They didn't say what they were offering. I've heard from other sources that the place pays slightly above average and has a sort of personality cult with the founder, who is an active (micro-)manager. They're an LLC that makes freaking fryer controllers, no idea how they subsist being as weird as they are.
|
# ? May 6, 2013 18:52 |
|
Pilsner posted:I know, but it's just curious when you look at so many other businesses where the managers have started at the bottom. I'm pretty sure every head of accounting has been a basic accountant, every owner of an auto repair shop started as a mechanic, and every captain started as a mundane seaman. In IT and software dev, I basically never see people who have worked their way up. Maybe it's because it can actually be fun at the "bottom", or perhaps the large nerd percentage in IT just never wants/is suitable to move on to management. Plus the industry/field grew so fast in the 90s that there probably aren't enough people with enough experience* to fill all of the potential leadership slots that have opened up. I'm hoping it stays fun at/near the bottom because I'm doing some leadership/management stuff now and it's, well, less fun than coding. * as defined by people who were doing their job for years and assume you need a crapton of management experience to manage people because they had a crapton and their predecessors had a crapton and so on
|
# ? May 6, 2013 19:03 |
|
Munkeymon posted:Plus the industry/field grew so fast in the 90s
|
# ? May 6, 2013 19:31 |
|
Mogomra posted:I had to do that once. They had me take a personality test and an IQ test I have to imagine that a bona fide IQ test administered by a licensed psychologist is prohibitively expensive to use as a general employment screening tool.
|
# ? May 6, 2013 21:37 |
|
Good: My job provides "reading lists", and you can get books on the list and have work pay for them. Most are general programming books for people looking to learn in their free time, and some are "Recommended" for certain teams or projects. Horror: This showed up on the "Recommended" list for a new project I'm joining
|
# ? May 6, 2013 22:06 |
|
Dren posted:Have you ever tried interviewing intra-company candidates who you wouldn't be interviewing if it weren't for the fact that you were doing HR a solid? Oh, this wasn't a joke about how they were probably just as competent. For all the guff that Atwood gives/gets, I'm really getting tempted to actually ask fizzbuzz and see what happens.
|
# ? May 7, 2013 00:01 |
|
Volmarias posted:Oh, this wasn't a joke about how they were probably just as competent. You will lose your faith in humanity. It will start small, with you wondering how people with 10+ years of experience don't know what the modulus operator is. Then it will grow, with you wondering how people with 10+ years of experience don't know what a for loop is. Then will come the day when someone writes 100 println statements on the whiteboard and still have a bug in the implementation.
|
# ? May 7, 2013 00:18 |
|
Volmarias posted:Oh, this wasn't a joke about how they were probably just as competent. Be careful with fizzbuzz, because it doesn't really help with screening out the degree mill graduates who study those "interview questions" and can regurgitate an answer, but still don't actually know how to program. You probably want a similarly-trivial programming problem that no-one else uses as an interview question.
|
# ? May 7, 2013 00:19 |
|
Ask them how to write a generalized fizzbuzz given a map from divisors to strings, where the original problem is {3: "fizz", 5: "buzz"}.
|
# ? May 7, 2013 00:32 |
|
Unless you want "buzzfizz" to be an acceptable answer for 15, you should probably specify some ordering of the map too.
|
# ? May 7, 2013 00:38 |
|
ymgve posted:Unless you want "buzzfizz" to be an acceptable answer for 15, you should probably specify some ordering of the map too. Give them the original problem, then ask them to generalise it given the map, then ask them if the generalised version of the original problem is the same as the original problem as a lesson in the perils of requirements elicitation and integration with existing systems.
|
# ? May 7, 2013 00:51 |
|
Jabor posted:Be careful with fizzbuzz, because it doesn't really help with screening out the degree mill graduates who study those "interview questions" and can regurgitate an answer, but still don't actually know how to program. My "go to" question is asking them to remove an element from a linked list, where they give the linked list structure beforehand as a convenience. Is this really so much to ask? I want "can give the correct answer" to be the bare minimum but so many can't even handle that
|
# ? May 7, 2013 01:13 |
|
I like "swap two variables" because you flag the people that don't know anything and the people that think stuff like xor swap belong in modern C++.
|
# ? May 7, 2013 01:24 |
|
What would you want? The naïve solution?C++ code:
Sinestro fucked around with this message at 01:59 on May 7, 2013 |
# ? May 7, 2013 01:31 |
|
The naive (and correct) solution is std::swap(a, b);
|
# ? May 7, 2013 01:32 |
|
Volte posted:The naive (and correct) solution is std::swap(a, b); Actually it's: using namespace std; swap(a, b);
|
# ? May 7, 2013 01:44 |
|
Sinestro posted:What would you want? The naïve solution? 1. Its std::swap - always use the build in library functions in real code ffs. 2. You're wrong.
|
# ? May 7, 2013 01:55 |
|
I haven't written C++ in forever. Let's just imagine those ampersands have always been there.
|
# ? May 7, 2013 01:58 |
|
Captain Cappy posted:Actually it's: The actually correct answer is C++ code:
|
# ? May 7, 2013 02:46 |
|
|
# ? May 17, 2024 14:18 |
|
Plorkyeran posted:The actually correct answer is boost::swap(a,b);
|
# ? May 7, 2013 02:49 |