Notice how it’s suggested to cut instead of to copy the file.
Notice how it’s suggested to cut instead of to copy the file.
Imagine 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.
That’s overly broad.
I’ll send over my butler to let her know we’re no longer a thing. /s
As if breaking up over text isn’t bad enough by itself.
Also, 20 minute “trailers” before the actual movie.
Don’t feed the trolls.
Can’t believe it’s been 10 years. I’m getting old, and I’m not even 40.
… because you want to or because breakfast ends before you normally get up?
I admit I exaggerated a bit. It hasn’t happened to me, but I’ve had some teachers that strongly suggested buying their textbooks and frowned if you didn’t.
Why is the headline in quotes?
Mathematics teacher: That textbook was written thousands of years ago, and it is still as useful and relevant as ever, but I want you to buy this one I co-authored instead for the mere sum of $120, otherwise you won’t pass.
I don’t know why you expected me to expect it to look like Terminator. I never said that.
AI has its merits, but in this instance I’m commenting on the fact that it would sometimes trample over the silliest little things.
AI will take over the world /s
No, same thing here.
Not even useful IMO, just idiots.
If you’re consciously and intentionally using JavaScript like that, I don’t want to be friends with you.
Why, would anyone at all think about something else?
/s
Version control should take care of it either way, but I’m talking about principles.