What is the definition of “legacy code”? [duplicate]
Channeling Michael Feathers: Code without tests.
Channeling Michael Feathers: Code without tests.
By using hardware, software, APIs, languages, technologies or features that are either no longer supported or have been superceded, typically combined with little to no possibility of ever replacing that code, instead using it til it or the system dies.
Here’s a workaround for installing the 64-bit version of the Microsoft Access Database Engine 2010 redistributable on a system with a 32-bit MS Office version installed: Check the 64-bit registry key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\FilesPaths” before installing the 64-bit version of the Microsoft Access Database Engine 2010 redistributable. If it does not contain the “mso.dll” registry value, then … Read more
ListView – replaced with RecyclerView TabHost – replaced with TabLayout RelativeLayout – replaced with ConstraintLayout GridView – replaced with ConstraintLayout Mostly due to the new ones having better performance. RecyclerView.Adapter has implemented the popular and recommended holder pattern and supports modern layout transitions. It also accepts a layout manager allowing you to easily implement a … Read more
What you need to do is go ahead and edit this file: /Applications/IntelliJ IDEA 13.app/Contents/Info.plist Replacing this: <key>JVMVersion</key> <string>1.6*</string> with this: <key>JVMVersion</key> <string>1.7*</string> Edit: As said by intellij member @crazycoder, the recomended way to total fix this is to install the latest jdk 1.6
How many bugs have been introduced because of incorrectly written GOTOs? How much money did they cost the company? Turn the issue into something concrete, rather than “this feels bad”. Once you can get it recognized as a problem by the people in charge, turn it into a policy like, “no new GOTOs for anything … Read more
You’ll want to use a static analysis tool StackOverflow: What open source C++ static analysis tools are available? Wikipedia: List of tools for static code analysis The main gotcha I’ve run into is that you have to be careful that any libraries aren’t used from somewhere that you don’t control/have. If you delete a function … Read more
Start with some small task if possible, debug the code around your problem. Stepping through code in debug mode is the easiest way to learn how something works.
we have not found anything to ease the transition from “hairball of code with no unit tests” to “unit-testable code”. How sad — no miraculous solution — just a lot of hard work correcting years of accumulated technical debt. There is no easy transition. You have a large, complex, serious problem. You can only solve … Read more