language-agnostic

Should I worry about unused variables?

我是研究僧i 提交于 2021-01-19 16:35:46
问题 I am working in large code base in C++, totaling approximately 8 million lines of code. In my application I have seen thousands of unused variables, which were reported by g++ but were ignored by my team. I want to take initiative for cleaning these variables but I need some info before working this issue. Will there be any issues or disadvantages of having thousands of unused variables? The compiler by default treats this as an ignored warning, but I believe we should treat warnings as

Should I worry about unused variables?

耗尽温柔 提交于 2021-01-19 16:33:36
问题 I am working in large code base in C++, totaling approximately 8 million lines of code. In my application I have seen thousands of unused variables, which were reported by g++ but were ignored by my team. I want to take initiative for cleaning these variables but I need some info before working this issue. Will there be any issues or disadvantages of having thousands of unused variables? The compiler by default treats this as an ignored warning, but I believe we should treat warnings as

Should I worry about unused variables?

谁都会走 提交于 2021-01-19 16:31:31
问题 I am working in large code base in C++, totaling approximately 8 million lines of code. In my application I have seen thousands of unused variables, which were reported by g++ but were ignored by my team. I want to take initiative for cleaning these variables but I need some info before working this issue. Will there be any issues or disadvantages of having thousands of unused variables? The compiler by default treats this as an ignored warning, but I believe we should treat warnings as

What is the difference between introspection and reflection?

亡梦爱人 提交于 2020-12-27 07:38:32
问题 Can anyone explain from a language/environment agnostic perspective the difference between these two notions? Also is there a set of conditions that programming languages need to satisfy in order to be reflective and/or introspective? And if there is, what are these conditions? 回答1: The Wikipedia article has a pretty decent summary: In computing, type introspection is the ability of a program to examine the type or properties of an object at runtime. Some programming languages possess this

What ever happened to Aspect Oriented Programming? [closed]

六月ゝ 毕业季﹏ 提交于 2020-11-30 07:58:24
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . Improve this question I remember that in the late 1990s and early 2000s Aspect Oriented Programming (AOP) was supposed to be the "Next Big Thing". Nowadays I see some AOP still around, but it seems to have faded into the background. 回答1: There has maybe been a lot of hype in