Mads introduces today’s code sample with this line: ” this was before they used git to track changes”.
Note, this is not to say that they were using SVN, or Mercurial, or even Visual Source Safe. They were not using anything. How do I know?
public void fromHtmlToPdfOld(PrintlogEntry printlogEntry, byte[] inBytes, final OutputStream outPDF) throws IOException, ParseException
{...}
public void fromHtmlToPdfNew(PrintlogEntry printlogEntry, byte[] inBytes, final OutputStream outPDF) throws IOException, ParseException
{...}
Originally, the function was just called fromHtmlToPdf
. Instead of updating the implementation, or using it as a wrapper to call the correct implementation, they renamed it to Old
, added one named New
, then let the compiler tell them where they needed to update the code to use the new implementation.
Mads adds: “And this is just one example in this code. This far, I have found 5 of these.”
ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.