FPOTD

scudsucker

Well-Known Member
Joined
Jun 16, 2020
Messages
1,541
Had to wake up to do a poo, so I thought I would post here too.


Shit. Beaten by a few seconds.
 

scudsucker

Well-Known Member
Joined
Jun 16, 2020
Messages
1,541
Sunday morning. Can't sleep.

Have to complete a code review tomorrow that is overdue.

Have no booze or drugs to help me sleep. Tomorrow is going to be tough.
 

scudsucker

Well-Known Member
Joined
Jun 16, 2020
Messages
1,541
Got it done, 14 hour marathon today. And was a code test, for an interview, not a review.

I fucked up a bit due to exhaustion.... I had a very long if/else chain that called a different function in each "if" clause.

I realised too late I should have used a rules engine, but I was concentrated on lots and lots of other stuff.

I did refactor it and improve it, but it is still quite shit. I just commented my thoughts on it, checked in, went to bed.
 
Top