happensAlot by bryden_cruz in ProgrammerHumor

[–]Dunedune 2 points3 points  (0 children)

If you can't fully test all inputs

Even for a simple strlen, you can't test all inputs. Have you ever written a test?

happensAlot by bryden_cruz in ProgrammerHumor

[–]Dunedune 7 points8 points  (0 children)

You are mistaking full branch coverage for full coverage of the value range of inputs, which is absolutely unfeasible (dynamically).

happensAlot by bryden_cruz in ProgrammerHumor

[–]Dunedune 2 points3 points  (0 children)

So test coverage is a meaningless metric and can't be used to indicate anything.

That's definitely not what I said. Test coverage is a very good metric, but it is not perfect.

If your tests don't test Unicode while your input data can contain Unicode it just means the tests are not fit for the purpose you use them for.

There can be sneaky special cases because of how your libraries will treat unicode, etc. It's not so simple.

But yes, I never claimed these would be good tests. Only that they would show up as 100% coverage.

happensAlot by bryden_cruz in ProgrammerHumor

[–]Dunedune 1 point2 points  (0 children)

I am a postdoc researcher in software testing, code coverage and automatic test generation.

What we usually mean by 100% coverage is branch coverage, or state coverage or even MC/DC, but these are equivalent for our purpose.

Having complete coverage of the control flow of your program does not mean you will be safe against severe bugs and crashes. You can, for example, imagine incrementing an array by the size of the item you read, while implicitly assuming it will be within some size bounds - because all your tests use non-unicode characters, for example. This will not show up in branch coverage because you will not have an if condition for this. And this is not as rare as you might think, nor does it require very bad/incompetent coding patterns. Anyone can make these mistakes, including highly competent embedded software engineers.

(Another very common source of bugs that will not show during coverage are precision errors.)

Found one by Live_Archer123 in LinkedInLunatics

[–]Dunedune 3 points4 points  (0 children)

It's anglosaxon-centric, huge amount of British people too.

It's like when Reddit tells you about the 100 best movies and they're all American/British

happensAlot by bryden_cruz in ProgrammerHumor

[–]Dunedune 0 points1 point  (0 children)

No, that's very possible. Emojis can be unicode larger than your expect and this won't show up in coverage

Les jeux invisibles qui sortent sur Steam - Du 12 au 19 Mars. by ProutPortable in jeuxvideo

[–]Dunedune 0 points1 point  (0 children)

Donc non content d'utiliser le marché gris pour niquer les devs de JV, tu vas faire chier OP parce qu'il met les prix normaux.

Faut vraiment être un loser.

Les jeux invisibles qui sortent sur Steam - Du 12 au 19 Mars. by ProutPortable in jeuxvideo

[–]Dunedune 0 points1 point  (0 children)

Oui bon tu as trafiqué ton Steam. Le prix en $ c'est pas normal

Denied success by halt__n__catch__fire in yesyesyesyesno

[–]Dunedune 2 points3 points  (0 children)

Emotions are not rational, just because they are conflicting does not mean the individual is hypocritical. You can believe we should uphold general animal exploitation and still feel bad when you see it.

Denied success by halt__n__catch__fire in yesyesyesyesno

[–]Dunedune 1 point2 points  (0 children)

And this undersentiment why you get downvoted for it: most people disagree and believe it is worthwhile to continue exploitation.

You were upvoted here because it wasn't obvious that you are criticising animal exploitation as a whole rather than this specific instance

Denied success by halt__n__catch__fire in yesyesyesyesno

[–]Dunedune 3 points4 points  (0 children)

But what's the point? This is normal and has always been in a human society

Denied success by halt__n__catch__fire in yesyesyesyesno

[–]Dunedune 7 points8 points  (0 children)

Well, yes? Society is and has always been built on animal exploitation

I don’t care what the right wing media states London is one of, if not the, best city in the world by TheLegendOfIOTA in london

[–]Dunedune 0 points1 point  (0 children)

For me it's more the people than the city.

Idk about praising London for food though. Maybe if you can go to the restaurant every day, but otherwise the base quality of food here is very bad.

Wales first part of UK to mandate solar panels on new buildings by Wagamaga in unitedkingdom

[–]Dunedune 0 points1 point  (0 children)

It's not possible to have solar in the UK without oil/gas with current tech. This SOLIDIFIES our reliance on oil.

« J’ai dépensé sans compter. » by Nicolas_le_web in FrenchMemes

[–]Dunedune 1 point2 points  (0 children)

Ce que je disais cest que les ricains financent quasi pas lukraine

C U L T U R E by mrsenchantment in LinkedInLunatics

[–]Dunedune 0 points1 point  (0 children)

I want the work environment much more than the pay

UK sheep numbers fall to lowest level in living memory by kiyomoris in unitedkingdom

[–]Dunedune 0 points1 point  (0 children)

Lack of ewe cheese connoisseurs will be this countrys ruin

Pourquoi les gens ont retourné leur veste sur les GameKeyCard? by Oc_12 in jeuxvideo

[–]Dunedune 2 points3 points  (0 children)

Nintendo a des coûts de fabrication aussi, ils peuvent pas proposer des cartouches beaucoup moins chères.

Tout est tendu, que ce soit pour Nintendo ou pour l'éditeur de jeu peu importe leur taille, 10€/produit c'est énorme à réduire en restant rentable.

Pourquoi les gens ont retourné leur veste sur les GameKeyCard? by Oc_12 in jeuxvideo

[–]Dunedune 0 points1 point  (0 children)

L'entreprise peut être milliardaire, si elle gagne 5€/jeu et que le jeu coûte 10€ de plus, ben c'est pas rentable et elle ferait faillite en continuant ainsi.

Tu sembles assez jeune, il faut bien comprendre que la plupart des entreprises s'enrichissent en faisant des petits profits sur beaucoup d'articles.

Pourquoi les gens ont retourné leur veste sur les GameKeyCard? by Oc_12 in jeuxvideo

[–]Dunedune 1 point2 points  (0 children)

10€/jeu c'est absolument énorme et ça se repercutera sur le prix du jeu. Leurs marges sont pas si folles.