Notice how it’s suggested to cut instead of to copy the file.
kamen
- 0 Posts
- 288 Comments
kamen@lemmy.worldto Programmer Humor@programming.dev•Production breaking driven developerEnglish3·5 days agoImagine you’re writing a front end and that the backend that will be serving the data is not ready yet, or it’s down for whatever reason, but you know how the data will look like. In that case you can write a test with hardcoded data as if it’s coming from the actual backend, and test several possible cases of the front end logic.
Another example is this: say you have some functionality that’s behind some UI that you have to click through; you make a change, the page refreshes and you have to click a bunch of stuff again - until the next change when the page refreshes again. If you have to do this over and over again, things get inefficient. Instead, you can write a test to make sure the functionality handles the data properly and only then go through the UI to maybe test this or that edge case.
Plenty of other examples, but yeah, depending on what you’re doing, you might not need tests at all.
kamen@lemmy.worldto Programmer Humor@programming.dev•Production breaking driven developer3·5 days agoThat’s overly broad.
The carpet has wear on one side, and it doesn’t make sense for the wear to be on the front of each stair, so most likely we’re looking down from the top of the flight of stairs.
Is “off boobs” the opposite of “on boobs”? Asking for a friend, obviously.
Also, 20 minute “trailers” before the actual movie.
kamen@lemmy.worldto Technology@lemmy.world•Elon Musk wants to rewrite "the entire corpus of human knowledge" with GrokEnglish131·20 days agoDon’t feed the trolls.
kamen@lemmy.worldto Programmer Humor@programming.dev•Fox news trying to explain github.272·1 month agoWhy is the headline in quotes?
kamen@lemmy.worldto Mildly Infuriating@lemmy.world•All this produce is going to spoil at the food bank where I volunteerEnglish5·1 month agoYou’re doing your part, but someone else isn’t. Everyone should learn as part of their upbringing that wasting food is bad - just like littering and thousands of other things. Unfortunately we live in a world where someone has to be fined for them to realise they’re doing something wrong.
kamen@lemmy.worldto Lemmy Shitpost@lemmy.world•Happy anniversary of the day absolutely nothing happened at nowhere square!English8·1 month agoWhy don’t you ask the kids at Tiananmen square?
Was
fashionnothing the reason why they were there?
kamen@lemmy.worldto Technology@lemmy.world•Samsung teams up with Glance to use your face in AI-generated lock screen adsEnglish4·1 month agoNot even useful IMO, just idiots.
If you’re consciously and intentionally using JavaScript like that, I don’t want to be friends with you.
kamen@lemmy.worldto Lemmy Shitpost@lemmy.world•Kid gave a reasonable answer without all the math bullshit5·1 month agoOh, yes, you’re right! I read the question again.
P.S. And if really is a fake/made up test like some other folks claim in the comments, just look at how much of a discussion it throws us into.
kamen@lemmy.worldto Lemmy Shitpost@lemmy.world•Kid gave a reasonable answer without all the math bullshit232·1 month agoCommendable for the kid to be thinking outside of the box, and a bit shitty of the teacher for not giving them maybe half a point (because it’s a correct answer, but not the correct/expected answer). The test maker is also to blame - they should’ve taken care to eliminate all ambiguity - it’s a math test after all.
kamen@lemmy.worldto Technology@lemmy.world•In North Korea, your phone secretly takes screenshots every 5 minutes for government surveillanceEnglish3·1 month agoI’d be interested in how this documenting could be done. If you’re a manufacturer, you’d probably want to keep everything secret - except what’s needed for a patent for example - otherwise the competition might get an idea of the proprietary things you make in house.
I mean I’m all for it, I just don’t see it happening unless under very strict regulations.
I feel like this should’ve been discussed before moving in together. Still not too late to talk though - if he’s even a little bit considerate, he’ll agree to only smoke outside.
Design something sensible, then go over it again and redesign it with stupid and stubborn users in mind. Probably this is how things should go.
Version control should take care of it either way, but I’m talking about principles.