|
besides fuzz buzz
|
# ? Oct 22, 2012 00:24 |
|
|
# ? Jun 11, 2024 04:50 |
|
Meiwaku posted:I think normally you'd learn his stuff from a senior guy on the job, but there are some resources online. Unless you're ridiculously bad, it sounds like you have trouble managing complexity and abstraction. i'm just in a lovely spot right now. given a solo project in a satellite office, with technology that's not very visible within the company. it's like some terrible obstacle course but there's a promotion at the end for me, in theory thanks for the talk, gonna give it a listen tonight
|
# ? Oct 22, 2012 00:24 |
|
wasn't this one of those joke foods that the simpsons invented
|
# ? Oct 22, 2012 00:27 |
|
AWWNAW posted:I have to interview a developer tomorrow what sort of coding test should I give them i guess the appropriateness of this depends on what sort of place you are but ask him to reverse a string of space-separated tokens in place so "ab cde fg" -> "ef cd ab" it's quite difficult and subtle and requires a lot of thought. alternatively select a project euler problem in the 300s at random and watch them cry
|
# ? Oct 22, 2012 00:30 |
|
project euler problems are ag reat way to ensure you only hire spergs that you will hate working with
|
# ? Oct 22, 2012 00:34 |
|
Jerry SanDisky posted:project euler problems are ag reat way to ensure you only hire spergs that you will hate working with precisely
|
# ? Oct 22, 2012 00:36 |
|
AWWNAW posted:besides fuzz buzz i heard one company asks people to write a boolean evaluator of the form expr = 0 ; 1 ; (expr) ; expr & expr ; expr | expr ie (0|1)&0 (1&0&1) from left to right with no precedence. seemed like a neat question
|
# ? Oct 22, 2012 00:40 |
|
WHOIS John Galt posted:i keep feeling like i'm at this crossroads step 1: use java step 2: use soa step 3: be cool ftw
|
# ? Oct 22, 2012 00:43 |
|
that's not the place that used to be the hawke & hunter is it?
|
# ? Oct 22, 2012 00:44 |
tef posted:i heard one company asks people to write a boolean evaluator this seems either easy or kinda difficult depending on the language
|
|
# ? Oct 22, 2012 00:59 |
|
tef posted:i heard one company asks people to write a boolean evaluator precedence seems like more fun
|
# ? Oct 22, 2012 01:02 |
|
yeah, but it's more effortcode:
|
# ? Oct 22, 2012 01:18 |
|
OBAMA BIN LOADIN posted:this seems either easy or kinda difficult depending on the language it's not too hard in most languages? it's just 'use a stack/recurse you butt' edit: i might get bored and golf it. tef fucked around with this message at 01:23 on Oct 22, 2012 |
# ? Oct 22, 2012 01:19 |
|
tef posted:yeah, but it's more effort pfff, just add and if and a stack and you've got shunting yard.
|
# ? Oct 22, 2012 01:27 |
|
Zombywuf posted:pfff, just add and if and a stack and you've got shunting yard. yep. for some reason (i'm a nutter), I tend to use a stack for ops, and recurse for parenthesis
|
# ? Oct 22, 2012 01:31 |
|
tef posted:yeah, but it's more effort wouldnt a shift reduce be slightly neater code:
Rufus Ping fucked around with this message at 01:41 on Oct 22, 2012 |
# ? Oct 22, 2012 01:32 |
|
you're all hired the bad news is you have to move to mississippi
|
# ? Oct 22, 2012 01:39 |
|
also i'm pretty sure 99.99999999999999999% o the candidates i will interview won't even be able to fizzbuz much less euler
|
# ? Oct 22, 2012 01:39 |
|
i'm a top down parser weenie
|
# ? Oct 22, 2012 01:40 |
|
Have them write a csv parser or maybe supply an XML parser and some malformed XML, then they do the needful w/o patching the parser
|
# ? Oct 22, 2012 02:00 |
|
I like the csv parser one, I'm gonna use that
|
# ? Oct 22, 2012 02:04 |
|
how about this. it's probably poo poo and very specific to the problem but whatevs.Python code:
|
# ? Oct 22, 2012 02:05 |
|
gently caress itPython code:
|
# ? Oct 22, 2012 02:20 |
|
regexes
|
# ? Oct 22, 2012 02:30 |
|
Milkie Galore posted:regexes Perl code:
|
# ? Oct 22, 2012 02:33 |
|
homercles posted:
nice!
|
# ? Oct 22, 2012 02:41 |
|
homercles posted:
poetry
|
# ? Oct 22, 2012 03:34 |
|
i miss perl sometimes.
|
# ? Oct 22, 2012 04:19 |
|
i mentioned offhand to a friend that i found mutation testing an interesting concept. so naturally he starts condescending about how in a "perfect world" it would be wonderful to have everything 100% tested and that's /just not the way it is!/ and you learn that once you start working in a "fast paced environment" gee thanks
|
# ? Oct 22, 2012 04:24 |
|
AWWNAW posted:besides fuzz buzz Gazpacho fucked around with this message at 04:35 on Oct 22, 2012 |
# ? Oct 22, 2012 04:33 |
|
oh look it's a rec descent regex with left recursion removed (and it probably even works)code:
|
# ? Oct 22, 2012 05:11 |
|
perl good, perl programmrs bad
|
# ? Oct 22, 2012 05:33 |
|
tef posted:i just like flaming people, taking what they said and exaggerating it until it as obviously stupid to others, as it is to me.
|
# ? Oct 22, 2012 05:37 |
|
homercles posted:oh look it's a rec descent regex with left recursion removed (and it probably even works)
|
# ? Oct 22, 2012 06:24 |
|
Gazpacho posted:perl good, perl programmrs bad the people left writing perl are pretty awesome. the annoying people have moved onto php, ruby , or python. it's just people using old versions of perl, new versions of perl, getting poo poo done and not being zealots or shitlords about it. tef fucked around with this message at 08:26 on Oct 22, 2012 |
# ? Oct 22, 2012 06:26 |
|
tef posted:the people left writing perl are pretty awesome.
|
# ? Oct 22, 2012 07:46 |
|
it's 8am. I should go to bed. I meant ruby.
|
# ? Oct 22, 2012 08:27 |
|
although, here is a fun question let's assume you have to use json for a format. (on the basis that for some reason, people love json, even though it is poo poo for what i'm about to ask, cos no-one ever got fired for using json). how do you smuggle new data types into json? one approach seems to be reserved attributes, '_links' for example, using leading underscores to mean 'hey, i'm being nasty'. another is to use \/, as some library smuggles dates inside json by using "\/Date(.....)\/", relying that most encoders don't escape /. personally, i'm tempted to use ascii control codes as the magic 'i am a terrible person' indicator, rather than relying on escaping magic, or underscores being sacred so, if people want to do this terrible thing. what should they do?
|
# ? Oct 22, 2012 08:33 |
|
tef posted:although, here is a fun question if it was ~~java~~ i would just serialize the object no probs
|
# ? Oct 22, 2012 09:08 |
|
|
# ? Jun 11, 2024 04:50 |
|
also 8am bro? it's 1am here just gettin started
|
# ? Oct 22, 2012 09:09 |