If you find a bug, the first thing to do is write a test that fails because of the bug. Then fix the code to get the test to pass. (🤫—that’s TDD. Don’t tell anybody, though, or they’ll argue with you about it.)
https://t.co/dM0yTiNys1
1. Change the code as usual
2. Write a test that only passes after the change
3. Revert to before 1
4. Type the test again (copy/paste is cheating & invalidates the warranty of the exercise)
5. Make it compile by changing the code
6. See it fail
7. Change the code to make it pass
@ahu_kemenkumham saya sedang legalisir dokumen melalui ahu online, tetapi sudah 3 hari verifikasi perbaikan tidak ada progress, dan call center tidak bisa dihubungi. Bisa minta tolong solusinya?
In longer switch statements, I occasionally do:
switch (value) {
case 1: {
···
break;
}
case 2: {
···
break;
}
}
Benefit: each case can declare its own variables, without having to worry about name clashes.
Here's the Teaser Trailer for #FinalFantasy VII Remake that was introduced just now at #StateofPlay.
Most of the plans are already in place in the run up to launch, so please bear with us a little longer until we can release more information next month – Tetsuya Nomura #FF7R
"I want to share a small guide that will help you give structure to your tests, to help you build new features faster and to know where to look when you have to modify existing features."
{ author: @bhserna }
https://t.co/Eauo4CU0UF
"Just like writing your very first `for` loop, understanding time complexity is an integral milestone to learning how to write efficient complex programs. "
{ author: @hivickylai }
https://t.co/t5WGD3DGHo