ProgrammerHumor

onlyFewHundredErrors

onlyFewHundredErrors
https://i.redd.it/u36ielzotfef1.jpeg
Reddit

Discussion

reflection-_
:cs::ts:

Why write tests if they will be ignored?

11 hours ago
Sw429
:rust:

Great point, I should stop writing tests.

11 hours ago
Mayion

11 hours ago
blackcomb-pc

Yes. I mean - you wrote the code, why write even more code that will check “yes the code you wrote is still there”. Lol, lmao even.

10 hours ago
-Kerrigan-
:j::kt:

Not sure if sarcasm or not tbh

9 hours ago
fiskfisk

No, the tests would be passing on the right.

But coverage would be for the important parts, and would actually test shit, and not just run code lines. 

No experienced developer has tests that doesn't pass, since everything is automated based on the tests passing. But a senior also knows when prioritize testing, instead of just chasing a metric for the percentage of lines ran. 

11 hours ago
Sw429
:rust:

Often times I'll see formatting or linting checks combined in with tests, and those often fail even when tests pass. I usually see it when a project uses standard library items that are later deprecated.

11 hours ago
fiskfisk

Those would usually be done on PRs by themselves and not as regular tests, but sure, PRs would require them to pass as well.

They'll usually be part of a pre-commit hook to format the code to the project's standard. 

10 hours ago
LucasRuby
:ru:

If lint fails you don't let it merge, and it can be fixed with one click.

10 hours ago
bwrca

I've also seen huge projects with tests flakier than grandma's pastry

6 hours ago
-LeopardShark-
:py::rust::hsk::js:

The Not Rocket Science Rule Of Software Engineering:

Automatically maintain a repository of code that always passes all the tests.

6 hours ago
s0ulbrother

Yeah what crack is the person smoking putting on the right? It’s not hard to get high coverage though. It’s hard to get it set up for high coverage but that’s about it

4 hours ago
8BitAce

I took this meme to be in the context of FOSS projects. 1.2k users is like the sweet spot for those projects where it's just one dude maintaining it in his limited free time and can't be assed to keep all the tests and linting up to date but the project is still 100x better than the proprietary alternative.

37 minutes ago
Areshian
:cp: :j: :py:

Broken window syndrome. If some of your tests always fail, the rest that work are not really useful

EDIT: I mean to say I agree with you. Better to have fewer, relevant tests that pass and check important stuff that many low quality tests with some always failing. Even if you have the good tests, if you add bad tests, the good tests lose value

5 minutes ago
kluy18

Classic misuse of this meme where the right side is still intermediate

10 hours ago
gcampos

This sub is the champion of misusing the meme

10 hours ago
araujoms
:jla::m::c:

Plenty of people that are in the left side believe they are in the right side.

8 hours ago
RiceBroad4552
:s:

It's even worse.

Being on the left side makes it actually more likely to believe to be on the right side.

6 hours ago
babyburger357

Yes. The phenomenon is called Cunningham's Law I believe.

4 hours ago
turtle4499
:py::c:

This comment is just the best kind of bait.

2 hours ago
Kasiux
:j: :cs: :ts:

That's not how the meme works

11 hours ago
clauEB

Reminds me of this friend's startup that was built to be scalable to 10's of millions of users and hundreds of developers for months and months and months. They have about 100 users and running out of $.

10 hours ago
Maskdask
:rust:

Coverage says basically nothing about how well tested the software is

10 hours ago
Byzaboo_565

OK but deploying with failed tests tells me a lot

9 hours ago
Maskdask
:rust:

Definitely

8 hours ago
AyrA_ch
:redditgold: x ∞

It tells me you're not using volkswagen

6 hours ago
Byzaboo_565

Don't show my PM, he'll get cursor to add it

5 hours ago
dim13
:g::c::terraform:

Obligatory: https://xkcd.com/844/

9 hours ago
ImSuperSerialGuys

Alright, whose project manager wrote this?

10 hours ago
USJackal

considering how normal it is to test your code and how pretty much every developer hates it - it’s weird there isn’t a bigger demand for software testers with an engineering background to help creating more valuable unit test suites so we don’t have to give a shit about coverage anymore.

5 hours ago
Awes12
:cs::js::j:

Windows be like:

2 hours ago
0lafe

after fighting all day with tests I can proudly say we have gone from 56% to 57% test coverage. We are no longer in the last group

2 hours ago
aVarangian

noob here, what the heck are tests?

46 minutes ago
Sw429
:rust:

The badges help you get users. The users help you realize the badges mean nothing.

11 hours ago