Embedded Systems Engineer Remembers Younger Coder
161 views9/21/2018
An experienced embedded systems engineer remembers a time interacting with a less experienced programmer
0 Comments
Be the first to leave a comment.
▸Show captions (47)
| 00:00 - 00:05 | So I was working on this project with some n00b programmer |
| 00:05 - 00:07 | And I'm like, "C'mon let's get this build out the door" |
| 00:07 - 00:10 | It's 10 at night and we all want to go home |
| 00:11 - 00:16 | And he came to me with this runtime compilation problem |
| 00:17 - 00:21 | He's trying to use dynamic_cast on an object |
| 00:21 - 00:24 | With no RTTI |
| 00:29 - 00:31 | No RTTI |
| 00:31 - 00:34 | How the hell is the compiler supposed to know what to do with that... |
| 00:38 - 00:40 | ...with no RTTI |
| 00:41 - 00:47 | This kid has no idea what I'm talking about when I tell him, "You need to enable RTTI" |
| 00:47 - 00:50 | And he says, "How do I do that?" |
| 00:50 - 00:56 | And I'm like, "This is an embedded system on a game console, RTTI is useless to us" |
| 00:58 - 00:59 | So he says, "What should I do then?" |
| 00:59 - 01:01 | "What should I do?" |
| 01:04 - 01:06 | "Get your n00b ass outta here!" Is what I should tell him |
| 01:06 - 01:08 | "Go write some batch scripts in the corner over there" |
| 01:13 - 01:14 | No RTTI |
| 01:14 - 01:16 | I can't believe this kid |
| 01:16 - 01:20 | Right out of college |
| 01:21 - 01:27 | And he thinks we can just dynamic_cast all day |
| 01:35 - 01:36 | What's next? Enable exceptions?!?! |
| 01:36 - 01:39 | "Oh yeah every function call we need to wrap in try{}catch(){}" |
| 01:41 - 01:44 | No, but really we uh |
| 01:44 - 01:47 | had to let him go |
| 01:47 - 01:49 | I see him in line at the homeless shelter |
| 01:50 - 01:53 | His life is a mess now but... |
| 01:54 - 01:56 | ...we all had a good laugh... |
| 01:56 - 01:58 | ...looking at his code after he left |
| 01:58 - 02:02 | His use of our coding standard, out the window |
| 02:05 - 02:07 | Tabs and spaces everywhere |
| 02:10 - 02:11 | Miles of trailing whitespace |
| 02:11 - 02:13 | Multiple semicolons used for member declarations |
| 02:15 - 02:17 | We counted 5 on one line once |
| 02:17 - 02:20 | It was like, "int x;;;;;" |
| 02:21 - 02:28 | His code brings me smiles every time I look at it. Whenever I have a rough day I open up "francis_code_shit.cpp" |
| 02:29 - 02:30 | His name was Francis? |
| 02:30 - 02:32 | Yeah that's his name |
| 02:36 - 02:39 | Every time I look I find something new |
| 02:40 - 02:42 | Such a n00b |
| 02:50 - 02:55 | I wonder where he is now |
| 02:56 - 02:58 | Maybe he turned his life around? |
| 02:58 - 03:04 | It was so long ago, I don't think programming was for him |
| 03:04 - 03:09 | He got hooked on drugs...I shouldn't laugh...but really, who uses RTTI |
| 03:09 - 03:11 | He might be dead... |
| 03:16 - 03:20 | ...so he's no longer around to write shitty code |
| 03:23 - 03:26 | It took us 3 months to undo his crap |
| 03:31 - 03:36 | And I got a raise...my boss said, "Nice work. You made the right call on that kid" |