4 ms·
> You were obviously qualified Not so sure about that. I looked at parent's code submission. In particular, his game logic looks like this - https://github.com
by dxbydt 13y ago
> You were obviously qualified
Not so sure about that. I looked at parent's code submission. In particular, his game logic looks like this -
https://github.com/jyothepro/tictactoe/blob/master/TicTacToe/TicTacToeGameModel.m https://github.com/jyothepro/tictactoe/blob/master/TicTacToe...
This is unduly verbose & has newbie programmer written all over it.
Here, I just wrote up the same tictactoe over lunch in the repl - https://gist.github.com/krishnanraman/7591435 https://gist.github.com/krishnanraman/7591435
Without much thought into optimiziation, refactoring etc., its about 20 lines of actual code. Random TicTacToe is a very simple game. Even if you take that Scala & translate line by line into Objective-C, you shouldn't see an exponential explosion from 20 lines to 400+ lines for game logic alone.
- deleted 13y ago[deleted]
- jyothepro 13y agoWhen you say "unduly verbose" I am not sure what exactly the interviewer/you are looking here. I purposefully made it verbose so that anyone who calls himself a programmer should understand what I am doing. Even I dint spend any time in refactoring or optimization as this is just a hack to get past a job interview. When an interviewer gives you tasks like this do they expect optimized and refactored code?