Redundancy is the duplication of critical components or functions of a system with the intention of increasing reliability of the system, usually in the case of a backup or fail-safe.
Questions tagged [redundancy]
461 questions
-2
votes
1 answer
IntelliJ - redundancy of variables
I'm working on a lesson to create a vacation plan. When I write code like
double money1 = money / days;
money1 = money*100;
money1 = (int) money1/ 100.0;
IntelliJ underlines money / days and notifies me that it's redundant.
Why does it happen?…

Lokian
- 93
- 11
-2
votes
2 answers
How can I create a zfs container docker data, I have also created multiple container for my developer environment
I want to create a zfs docker I need a little help, I work on ubuntu, I create 3 containers for my environment in docker. Need to use this file system with data redundancy.
-3
votes
1 answer
Need help in reducing the complexity or duplication in the function mentioned
Hi can someone please help me in reducing the complexity of the below mentioned code as I am new to this I need it to reduce the amount of code and improve the code and to improve simplicity and reduce duplications in the overall coding any any help…

Murthy P
- 15
- 1
- 3
- 8
-3
votes
5 answers
A sql query to get all the records where 5 columns are same but only one column is different
I have this table:
A B C D
1 Cat XYZ 12
1 Cat XYZ 13
1 Dog XYZ 14
2 Dog ABC 15
2 Dog ABC 16
3 Cat XYZ 17
Result set:
A B C D
1 Cat XYZ 12
1 Cat XYZ 13
2 Dog ABC 15
2 Dog ABC 16
I need all such records in my table where A, B,…

Jini
- 11
- 3
-3
votes
1 answer
Cleaning unnecessary variable in big data by using R
I have a data set which contains 163 columns(variable) and 199566 rows(data).
So How can i eleminate redundant data ?
Can i do this by using normal distribution?

tarık bost
- 1
- 1
-3
votes
2 answers
What's wrong with how I'm using Inheritance in Java?
Sorry, I know that this code can be shortened significantly here and there, I just haven't really gotten how inheritance really works.
My question is, how do I make it so that the methods within my machoke and machop class don't print out those…
-4
votes
1 answer
A same code that will be used multiple times
I'm making a system and i notice something on my codes
My code is not optimized but it's working
i want to lessen the redundancy of my codes
here an example
this is how i load
private void frmCategory_Load(object sender, EventArgs e)
{
…

Copenhagen Llagas
- 69
- 1
- 8
-4
votes
1 answer
Do you need both primary key AND autoincrement for creating table in SQLite?
Or can you just use one or the other? I'd like to avoid redundancy while ensuring uniqueness by just using PRIMARY KEY but am wondering whether the added rows will AUTOINCREMENT by default.

Ben Lewis
- 213
- 1
- 9
-6
votes
3 answers
Avoid data redundancy in a friends table
I am trying to design a very simple table that stores the data of friends in a community.
Therefor I store the userId of 2 friends respectively.
Goal
User wants to load his/her friends list.
t_friends Option 1:
Query
SELECT * FROM t_friend WHRE…

B001ᛦ
- 2,036
- 6
- 23
- 31
-6
votes
3 answers
Python redundancy
If I have the code
i = 0
while i < N:
print("Hello")
i += 1
how many times will Hello be printed out? (assume that N is a defined integer)
Answers:
0
N
N-1
N+1
more than N+1
and why? I never get this so I would appreciate of somebody…

Eri.
- 465
- 2
- 6
- 14