r/ProgrammerAnimemes • • Mar 12 '20

When you spend a whole day coding without testing a single time

Post image
1.1k Upvotes

18 comments sorted by

View all comments

71

u/maxinfet Mar 12 '20

You should be more concerned when you see 0 errors

49

u/[deleted] Mar 12 '20 edited Mar 12 '20

0 compiler errors, but then some external dependency crashes with an obscure error at runtime.

20

u/maxinfet Mar 12 '20

That uses a service locator pattern to choose which IoC container should be used to load your plugins. This just got a little to real for me.

12

u/[deleted] Mar 12 '20

Also it's not actually a direct dependency, but only a dependency of another dependency and you're never interacting with the crashing library directly.

15

u/maxinfet Mar 12 '20

I am sorry, you and I seem to have seen the same hell scape

11

u/[deleted] Mar 12 '20

Hello, fellow coworkers!

1

u/UltraCarnivore May 25 '20

SegFaults. SegFaults everywhere.

8

u/CaptainSchmid Mar 12 '20

I forgot about this rule going from a python project to a c++ one. It compiled first time, I got super excited only for a seg fault on the first function call.

3

u/maxinfet Mar 12 '20 edited Mar 12 '20

Gotta love managed/interpreted to native transitions I see the same fun stuff in .NET with managed COM wrappers and people messing up merges and removing a native dll from the build that will be deployed. Worst part no one notices till it gets to our trunk a QA gets a build and by then it had been merged into a ton of branches and then everyone is fighting to add/remove it again from trunk lol. This is fine.

EDIT: Fixed some grammar and wanted to clarify that we have unit tests that most teams don't run, that we are not allowed to be used for gating check-ins and our build infrastructure isn't robust enough to run them per build even if we were allowed :(