There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmerhumor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

AdamEatsAss , in Average GitHub PR

If QA cared about us they wouldn’t make it so hard.

TootSweet , in Average GitHub PR

Mo’ unit tests, mo’ problems.

edinbruh , in Average GitHub PR

I’m about to do this to this kernel driver. Certainly broken before, possibly broken after, what’s the worst that could happen

ExtraMedicated , in Average GitHub PR

Also me at work.

_____ , in Average GitHub PR

When the CI takes longer than 10 minutes

ByteOnBikes ,

Envious. It averages 15-30 mins

residentmarchant ,

Are you like building a mobile app or have 100k tests or is it just super slow?

ByteOnBikes ,

Still waiting on approval for more resources. It’s not a priority in the company.

I swear we have like 4 runners on a raspberry pi.

thebestaquaman ,

My test suite takes quite a bit of time, not because the code base is huge, but because it consists of a variety of mathematical models that should work under a range of conditions.

This makes it very quick to write a test that’s basically “check that every pair of models gives the same output for the same conditions” or “check that re-ordering the inputs in a certain way does not change the output”.

If you have 10 models, with three inputs that can be ordered 6 ways, you now suddenly have 60 tests that take maybe 2-3 sec each.

Scaling up: It becomes very easy to write automated testing for a lot of stuff, so even if each individual test is relatively quick, they suddenly take 10-15 min to run total.

The test suite now is ≈2000 unit/integration tests, and I have experienced uncovering an obscure bug because a single one of them failed.

spacecadet ,

I used to have to use a CI pipeline at work that had over 40 jobs and 8 stages for checking some sql syntax and formatting and also a custom python ETL library that utilized pandas and constantly got OOM errors.

They didn’t write any unit tests because “we can just do that in the CI pipeline” and if you didn’t constantly pull breaking changes into your branch you would guarantee the pipeline would fail, but if you were lucky you only had to restart 30% of your jobs.

It was the most awful thing and killed developer productivity to the point people were leaving the team because it sucks to spend 40% of your time waiting for CI scripts to fail while you are being yelled at to deliver faster.

some_guy , in Average GitHub PR

This is my favorite commit comment of all time.

SwordInStone ,

it’s not a commit comment

ikidd , in Average GitHub PR
@ikidd@lemmy.world avatar

“YOLO” - more than 1 merge comment I’ve seen.

Aceticon , in Average GitHub PR

Who needs integration testing when we have users who will do it for us?!

gencha , in It's good when the price of a cup of coffee increases - cuz it helps foss coders whose donation msg is 'Buy me a cup of coffee' 🙃️

I wasn’t actively aware of this for most of my life until I recently visited a clients office. Buying someone a cup of coffee is an entire thing. There’s no free coffee. You have to purchase every single cup. And you first have to walk several minutes to the place where they sell the coffee. It blew my mind. I’m used to drinking one cup after the other without even giving it any thought. Coffee machine right next to me or around the corner. There, coffee incurs friction and cost.

So when you invite someone for a cup of free coffee, this can open doors for you. I’m not kidding. People get all excited when you offer them a coffee break on your dime. And there’s levels to it too. There’s the regular coffee, and there’s the premium one. For the premium you have to walk longer and wait in line until the barista serves you.

It’s a key component in office politics when coffee access is regulated.

Why anyone would restrict access to legal stimulants in the office is unclear to me though. Put espresso machines on every desk!

xilliah OP ,

But… That’s communism!

lowleveldata , in Average GitHub PR

ya man fuck those losers

Blackout , in Average GitHub PR
@Blackout@fedia.io avatar

Lol. I run an open-saas ecom and everything is done live. No one but me handling it. The customers must think they are tripping sometimes. Updates are rarely perfect the first push.

madcaesar ,

FUCK IT!!! WE’LL DO IT LIVE!!!

0ops ,
SuperFola , in Average GitHub PR
@SuperFola@programming.dev avatar

Who needs tests when you have users?

The testing environment is production!

KillerTofu ,

I work in state government and we insist on building our own systems. This is too fucking true and why it’s funny.

bamboo ,

What do you mean building our own systems?

KillerTofu ,

We build systems to manage day care licenses in the state instead of buying someone else’s product.

Australis13 ,

We work in protoduction.

goferking0 ,

Been microsofts strategy for how long?

SuperFola ,
@SuperFola@programming.dev avatar

Probably too long. That was a philosophy I had at school and iirc the founders never finished school and started MS in a garage.

HootinNHollerin ,

-Crowdstrike

ipkpjersi ,

Technically there’s no substitute for testing in production lol

Although ideally you’d want to test it beforehand…

_stranger_ ,

There are so many more, and better!, options than testing in prod, but they take time, money, and talent and ain’t no company got time for that (for a business segment that “doesn’t generate revenue”)

tetris11 , in It's good when the price of a cup of coffee increases - cuz it helps foss coders whose donation msg is 'Buy me a cup of coffee' 🙃️
@tetris11@lemmy.ml avatar

I feel like I’m the only one here eloquent enough to attack this preposterous stance, so allow me to gather my wits to plead my convincing rebuttal when I say:

boooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo! (that was hard to type on a smartphone)

xilliah OP ,

catches it in a bottle and corks it

I’m saving this one for later!

Shameless , in Average GitHub PR

Was this taken from the Crowdstrike repo?

CrypticCoffee ,

Was there even tests?

phorq ,

Yup, and they’re run on an estimated 8.5 million test machines

GissaMittJobb ,

Testing in prod is a power move honestly. Rock star-level

lobut ,

Yeah, but I think apparently the tests that “could” have caught it relied on mocks which basically rendered it useless in those cases.

teejay ,

Ah yes. The unintended consequences of mandated code coverage without reviewing the tests. If you can mock the shit out of the test conditions to always give you exactly the answer you want, what’s the point of the test?

It’s like being allowed to write your own final exam, and all you need to pass the exam is 90% correct on the questions you wrote for yourself.

marlowe221 ,

And this is why mocks are bad…

CrypticCoffee ,

Unit tests, yes, but you don’t only do unit tests. Integration and e2e tests still exist.

Sweetpeaches69 , in spreading misinformation online (javascript??)

Javalina 🐗

Fades ,

☕️🐗

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • [email protected]
  • lifeLocal
  • goranko
  • All magazines