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
s344n2d4d5 [400]
3 years ago
13

What are some principles of Programming?​

Computers and Technology
1 answer:
adelina 88 [10]3 years ago
8 0

Answer:

1: Don't repeat yourself (DRY).

2: Keep it simple (KISS)

3. Minimize Coupling

4. Maximize Cohesion

5. Hide Implementation Details

6. Law of Demeter

7: Open/Closed Principle

Explanation:

1. Avoiding repetition is probably the single most fundamental tenet in programming.

2. Simplicity should always be a key goal. Simple code takes less time to write, has fewer bugs, and is easier to modify.

3. Any section of code (code block, function, class, etc.) should minimize the dependencies on other areas of code. This is achieved by using shared variables as little as possible.

4. Code that has similar functionality should be found within the same component.

5. Hiding implementation details allows change to the implementation of a code component while minimally affecting any other modules that use the component.

6. Code components should only communicate with their direct relations (e.g. classes that they inherit from, objects that they contain, objects passed by argument, etc.)

7. Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification. In other words, it is not recommended to write classes that people can modify, write classes that people can extend.

I hope this helps and I'm sorry if it doesn't.

Have a great day! :)

You might be interested in
What is the relationship between an object and a class? A. An object is an instance of a class. B. A class is an instance of an
trapecia [35]

Answer:

A. An object is an instance of a class.

Explanation:

ʕ•ᴥ•ʔ

3 0
3 years ago
Was LDAP version2 an internet standard in 1998? is it now?
mamaluj [8]

Answer Explanation:

LDAP stand for lightweight directory access protocol 389 is its port number it is an application layer protocol it was first invented in march 1998 and become very popular widespread  internet standard in august 1998 its authentication method is very simple the client send user name and password to LDAP server to access this.

4 0
3 years ago
2.Write an if /else if statement that carries out the following logic. If the value of variable quantityOnHand is equal to 0, di
Oliga [24]

Answer:

if(quantityOnHand == 0) { cout<<"Out of stock"; }

else if(quantityOnHand > 0 && quantityOnHand <10) { cout<<"Reorder "; }

else if(quantityOnHand >= 10){ }

See Explanation for comments

Explanation:

//This program segment is written in C++

//Only required segment is written

// Comments are used for explanatory purpose

// Program Segment starts here

/*

The following condition tests if quantityOnHand equals 0

If this condition is true, the program prints "Out of stock" without the quotes

*/

if(quantityOnHand == 0) { cout<<"Out of stock"; }

/*

The following condition tests if quantityOnHand  is greater than 0, but less than 10

If this condition is true, the program prints "Reorder " without the quotes

*/

else if(quantityOnHand > 0 && quantityOnHand <10) { cout<<"Reorder "; }

/*

The following condition tests if quantityOnHand  is greater than o equal to 10

If this condition is true, nothing is done

*/

else if(quantityOnHand >= 10){ }

// End of program segment

Assumption: <em>The program assumes that variable </em>quantityOnHand has already been declared

5 0
4 years ago
A Java main method uses the parameter (String[ ] variable) so that a user can run the program and supply "command-line" paramete
xxTIMURxx [149]

Answer:

True

Explanation:

Java and some other object oriented programs makes use of the command line arguments. This enables one to pass additional information to a program when it is run. whatever information that is passed to the program at the command line argument will accompany the program when is it run and java stores this information as an array of strings.

4 0
3 years ago
How can presentation software be used in a business or professional setting? Choose all that apply.​
ahrayia [7]

Answer:

Presentations are commonly projected onto a whiteboard a large screen.

Slides can also be printed out onto clear acetate and used with a overhead projector (0HP) to project the contact onto a screen. If this method is used each acetate side usually has to be replaced my newly.

Presentations can also be set up to play through a large did you go display in reception areas of the hotels, schools, businesses etc.

3 0
4 years ago
Other questions:
  • Why is it useful to have host-based firewalls?
    5·1 answer
  • If you have cable internet service, what protocol is used between the head end connection and the cable company's network
    8·1 answer
  • Which tab is used to edit objects on the slide master and layouts
    10·1 answer
  • Computer is created by aliens?!
    14·1 answer
  • In a folder hierarchy, the top level is referred to as which of the following?
    7·1 answer
  • What is an entity? An attribute?
    13·1 answer
  • Sarah is a busy real estate agent with a growing clientele. She is looking to purchase a new computer and software so that she c
    15·1 answer
  • Which characteristic of a relational database distinguishes it from a flat file?
    5·1 answer
  • How do you give brianliest
    13·1 answer
  • What dictionary operation can you use to remove all the keys within the dictionary-named contacts?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!