Unit2: Code Review & Testing

this unit will cover:

vocabulary - None Pharses 词汇: 名词短语

Testing 测试是软件开发中的重要短语, 用于检查软件是否达到特定的标准和用户需求.

使用这些名词语句来证明英语名词的专业性:

NoneDesciptionExample
time boxan allocated period of time for completing a task- allcate a 2-hour time box for regression testing
stress testa method to assess a system’s performance under heavy loads- simulate 1000 users accessing the login page at the same time
sanity check 健全性测试a quick check to verify that something is as expected- are the units of the output value correct?
ad hoc test 临时测试a test performed without predefined test cases or plans- input unexpected characters into a search bar
edge casea problem that only happens in extreme situations- upload an empty, 0-byte file

一些名词短语也可以当作动词使用:

BE CAREFUL: sanity check vs ad hoc test
sanity check: similar to performing a review
ad hoc test: exploring issues using the tester’s knowledge

Parallel Structure 平行结构

Parallel structure: Using the same grammatical structure for two or more clauses in a sentence.

Example:
“In our coding guidelines, we emphasise writing clear comments, to follow naming conventions, and maintain consistent indentation.”

注意到上面的动词了吗? (mixed verb forms)
writing = gerund form 动名词形式 to follow = infinitive form 不定式形式 maintain = base form

为了达到平行结构, 将动词修改为相同形式. 由于上面例子由 ’emphasise’ 开始, 将其改成 -ing 形式:
In our coding guidelines, we emphasise writing clear comments, following naming conventions, and maintaining consistent indentation.

平行结构的好处:

You can apply this technique when writing:

Connected Speech 连贯的语言

When we talk in everyday conversations, our words shouln’t stand alone.

Instead, some sound, words and phrases are merged together in what’s called connected speech. It’s a natural rhythm and flow taht make conversations sound more smooth.

Let’s take a closer look at three different techniques that your can use while asking questions:

Code Review

Tom: Hey Sophie!

Sophie: Hi! How are you?

Tom: All good, all good. So I’ve reviewed the changes that you made to the ETL pipeline. Overall, it looks great, but I’ve got a few points I’d like to go over.

Sophie: Sure ok, let me pull it up. Ok I’m ready, go ahead.

Tom: Fristly, in the data transformation phase, I noticed a nested loop structure that might impact performance when we go handle large datasets. Have you thought about optimising this bit?

Sophie: Yeah, I see what you mean. So, instead of a loop, what are you thinking?

Tom: I was thinking you could use a list comperhension for that part.

Sophie: Ok sure, let me go back and review it and I’ll give that a go.

Tom: In terms of error handing, I noticed some areas where execptions aren’t being caught properly. These are crucial since it means it’s not going to crash the entire system.

Sophie: Ok good point. I’ll have a go at adding some try-except blocks here and then I’ll go over the error logging to make sure we’ve got details if there are any exceptions.

Tom: Sound good. On a positive note, I really like how you refactored the data loading module. It’s much cleaner and easier to follow now.

Sophie: Oh yeah it was a bit of a mess to be honest so it did need a good tidy up. Any other points?

Tom: Nope I think that’s everything, overall, it’s looking really solid. I’ll leave some comments on the code with everything that I’ve mentioned for improvement, but great work overall. Well done.

Sophie: Perfect. Thank you. Thanks for the feedback. I’ll get started on those and then I’ll let you know when it’s good to go.

Tom: Alright. Thanks! Have a great day. Bye.

Sophie: Yep and you! Bye.

词汇解释

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut