1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lisa [10]
3 years ago
5

What do you think is the most effective way to ensure that code adheres to good coding standards? (1 correct answer)

Computers and Technology
2 answers:
Stella [2.4K]3 years ago
7 0

Answer:

The code should pass all the unit test cases.

Explanation:

Unit testing is an important step in the development process, because if done correctly, it can help detect early flaws in code which may be more difficult to find in later testing stages.

When there is a development of a software, at that moment there are many small programs, which are developed by coders and, after they are created, those programs are attached together to make a full working system.

The correct option is the code should pass all the unit test cases....

Nikitich [7]3 years ago
4 0

The most effective way to ensure that code adheres to good coding standards is that the code should pass all the unit test cases. Coding standards are a validated rules’ set and practices that developers can follow when composing code which confirms that the code is readable, extensible, and maintainable as well as decreases the risk of presenting bugs.

 

EXPLANATION:

Here are some generally used coding standards in the financial industry and other industry sectors:

• Consistent case of methods and properties

This is decently a technical thing and it does not matter precisely which case you use. Java and .Net both endorse different cases. The approach is to use the C# suggested case for C# and Java for Java. Moreover, instruments like Resharper is able to auto-correct occasion sensitivity as the developer is coding.

• Descriptive method and class names

Making code readable part is to utilize good descriptive names for a method and class. For instance, the method of saying DoSomething() is completely unusable as it is hard to tell that it does deprived of going into the code. A method that says CreateConnectionToDatabase() and tosses back an object of connection is apparent in its goal.

• Keeping methods to a reasonable length

If the methods are very long, they turned out to be difficult to maintain and unreadable. If a method is very long, you can utilize the pattern of extract method to capture several of the functionality into another method.

• Ensuring code standards are adhered to

It is hard to evoke and irritating to return and correct standards in the code to write. Therefore, it is important to use some sort of computerized tool both at checking in time and design time that tests for particular elements of quality in the code.

• Tools

There are several tools in the marketplace that can be utilized for this and it recommended to use the following tools.

• For the development environment:

• For C# – Resharper from Jetbrains

• For Java – The IntelliJ environment owns the same functionality like Resharper

Analyzers

For .net, there is also FXCop which is a code standard static analyzer and NDepend that gives a large amount of configuration as well as the capability to write code to query the code!

• For the automated build environment

• NDepend also owns a server component that can examine the code upon check-in and generate reports.

• Configuration

Many tools used to generate a large amount of data when testing for coding standards. They usually examine hundreds of metrics out of the box and it is less than valuable when attempting to take incremental stages to advance code quality. Therefore, it is essential to organize these tools to just examine the metrics.

LEARN MORE

If you’re interested in learning more about this topic, we recommend you to also take a look at the following questions:

• What do you think is the most effective way to ensure that code adheres to good coding standards? https://brainly.in/question/9493794

Keywords : Coding Standards, code

Subject  : Computers & Technology

Class  : 7-9

Sub-Chapter : Coding

You might be interested in
It is used to show the program and files that are open.
Ilia_Sergeevich [38]
A
Indeed that’s what it is
5 0
3 years ago
You begin your first day of responsibilities by examining the recent IS security breach at GearUp to get ideas for safeguards yo
pentagon [3]

Answer:

Sniffing is the correct answer to the given question .

Explanation:

The main objective of Sniffing is to leads and stealing the information interception by detecting the network activity this activity is done by the Sniffing process .When the information is sent through the networks, the information inside the data packet can be detected  by using a sniffer .The sniffer is used in sniffing process.Information is accessed  by the sniffer because the information packets that are sent in the network  are not secured.

By using the Sniffing technique the hackers hacked the company's improperly-secured wireless network and stole customers ' credit card details as well as employee social security numbers.

6 0
4 years ago
WHAT BIRD IS SHOWN ON THE ARM OF BLOODHOUND?
ruslelena [56]

Answer:

Looks like a raven to me

Explanation:

4 0
4 years ago
Read 2 more answers
How many frequencies does a full-duplex qam-64 modem use?
Vsevolod [243]

The answer is 2 frequencies.

A Full-Duplex QAM 64 K Modem uses two frequencies. One frequency is used for upstream and the other for downstream. A variety of common QAM forms are available and include, 16 QAM, 32 QAM, 64 QAM, and 256 QAM. For example, for domestic broadcast use, 64 and 256 QAM are used for cable modem and digital cable TV. The modulation scheme for this modem uses both amplitude and phase.

8 0
4 years ago
Read 2 more answers
You will include code that will validate all user input. If the user inputs an invalid value, the program will respond with an e
alukav5142 [94]

Answer:

See explanation (Program written in C++)

Explanation:

The question is incomplete as the invalid values were not included in the question.

However, to make the sense of it, I'll answer your question using the following conditions.

1. Invalid values include: Numbers less than 0 (See comments for explanations)

#include <iostream>

using namespace std;

int main() {

//This line declares num (for user input)

int num;

//The following iteration keeps repeating itself until a number greater than 0 is entered using do while loop

do{

//This line prompts user for input

cout<<"Numbers greater than 0: ";

//This line gets input from the user

cin>>num;}

while(num<1);//This condition checks for valid user input

cout<<"You entered: "<<num; //This line prints out the user input

}

2. Invalid values include: Odd Numbers

I'll make use of the above code (in 1)

Start by replacing:

cout<<"Numbers greater than 0: ";

with

cout<<"Even Numbers: "; //This prompts user for even numbers

Replace

while(num<1);

with

while(num%2==1); //This checks if input is odd. If yes, the loop is repeated

3. Invalid values include: Even Numbers

I'll make use of the above code (in 1)

Start by replacing:

cout<<"Numbers greater than 0: ";

with

cout<<"Odd Numbers: "; //This prompts user for Odd numbers

Replace

while(num<1);

with

while(num%2==0); //This checks if input is even. If yes, the loop is repeated

8 0
3 years ago
Other questions:
  • In addition to talking to other doctors remotely, telegraphy technology?
    5·1 answer
  • _____ refers to the physical components used to collect, store, organize, and process data and to distribute information
    7·1 answer
  • Mary needs to choose the _____ menu in order to place the text in a desirable fashion around the image
    12·2 answers
  • Describe three perimeter intrusion detection systems and give an example of one that you have seen deployed either at work or an
    8·1 answer
  • Write a calculator program using a switch statement that: a) Prompts the user to enter two numbers b) Prompts the user to select
    6·1 answer
  • Explain the relevancy of computers in today's global society​
    11·1 answer
  • Which statement is true for rapid prototyping? (A. It creates a two-dimensional model of a part or a product, from the original
    8·2 answers
  • The term __________ denotes data that is being stored on devices like a universal serial bus (USB) thumb drive, laptop, server,
    6·1 answer
  • The four differences between binary and denary​
    13·1 answer
  • Explain the role of ANY TWO components of the CPU
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!