What is McCarthy's Revenge Rule in Computer Programming?

  • Thread starter unscientific
  • Start date
In summary, McCarthy's Revenge Rule is a concept put forth by scientist John McCarthy which states that the difficulty of a problem is related to the square of the amount of code required to solve it. It is called "Revenge Rule" because McCarthy believed that as technology advanced and allowed for more code to be written, problems would become more complex and difficult to solve, leading to programmers seeking revenge on the technology. This rule is still relevant in modern computer science as technology continues to advance and code becomes more complex. However, there are exceptions, such as advancements in programming languages and unique problem nature. McCarthy's Revenge Rule can be applied in practical situations by reminding programmers to write efficient and concise code and considering the complexity of a problem before attempting to solve
  • #1
unscientific
1,734
13
Anyone here can explain to us what McCarthy's revenge rule is about or any sites linking to it about an introduction to it?
 
Mathematics news on Phys.org
  • #2
I'm not sure what you're talking about. Is this a Prisoner's dilemma strategy?
 
  • #3


McCarthy's Revenge Rule, also known as the "McCarthy Rule," is a principle developed by computer scientist John McCarthy in the 1960s. It states that when designing a computer program, the programmer should always consider the possibility of the program being used against them.

This rule was developed during the Cold War era, when there was a fear of computers being used for malicious purposes, such as hacking or espionage. McCarthy believed that by considering the potential negative uses of a program, programmers could design more secure and ethical systems.

There are several websites that discuss McCarthy's Revenge Rule, including an article on the Association for Computing Machinery (ACM) website and a blog post on the Institute of Electrical and Electronics Engineers (IEEE) website. These resources provide a more in-depth explanation of the rule and its implications for computer programming.

In today's world, where cyber attacks and data breaches are a constant threat, McCarthy's Revenge Rule remains relevant. It serves as a reminder for programmers to consider the potential consequences of their code and to prioritize security and ethical considerations in their designs.
 

What is McCarthy's Revenge Rule?

McCarthy's Revenge Rule refers to the concept put forth by scientist John McCarthy in the 1960s, which states that "the difficulty of a problem is related to the square of the amount of code required to solve it." In other words, the more complex a problem is, the more code is needed to solve it.

Why is it called "Revenge Rule"?

McCarthy named this concept the "Revenge Rule" because he believed that as technology advanced and allowed for more code to be written, problems would become more complex and difficult to solve. This would result in programmers seeking revenge on the technology for making their jobs more challenging.

Is McCarthy's Revenge Rule still relevant in modern computer science?

Yes, McCarthy's Revenge Rule is still relevant in modern computer science. As technology continues to advance and code becomes more complex, this rule serves as a reminder for programmers to keep their code concise and efficient in order to solve problems more effectively.

Are there any exceptions to McCarthy's Revenge Rule?

While McCarthy's Revenge Rule generally holds true, there are certain exceptions. For example, advancements in programming languages and algorithms have allowed for more efficient and compact code, which can sometimes solve complex problems with less code than before. Additionally, some problems may not follow this rule due to their unique nature.

How can McCarthy's Revenge Rule be applied in practical situations?

McCarthy's Revenge Rule can be applied in practical situations by reminding programmers to write efficient and concise code, and to consider the complexity of a problem before attempting to solve it. It can also be used as a guideline for estimating the difficulty of a problem based on the amount of code required to solve it.

Similar threads

Replies
4
Views
139
  • General Math
Replies
1
Views
2K
  • General Math
Replies
31
Views
380
  • General Math
Replies
4
Views
2K
Replies
5
Views
2K
Replies
2
Views
629
Replies
7
Views
569
Replies
3
Views
2K
Replies
2
Views
991
Replies
1
Views
764
Back
Top