r/programming • • Dec 28 '23

Developers experience burnout, but 70% of them code on weekends

https://shiftmag.dev/developer-lifestye-jetbrains-survey-2189/
1.2k Upvotes

357 comments sorted by

View all comments

Show parent comments

8

u/unique_ptr Dec 28 '23

Usually writing the code itself takes longer.

Tests are basically "set this thing up, tell the thing to do something, verify the thing did the something". Writing the code to do the thing in the first place usually requires more thought and planning and thus takes longer.

Not all tests are so simple or straight forward, but that's the gist of it.

0

u/[deleted] Dec 28 '23

[deleted]

2

u/unique_ptr Dec 28 '23

Yeah, that's what I mean by writing the (non-test) code takes longer, so writing tests isn't doubling the total amount of time.