In Programming Logic and Design, 8th edition by Joyce Farrell, she states that
When you use the IDE to create and save a program, you occupy much more disk space than when using a plain text editor.
She uses an example of a number doubling program made in C#. When saved with a simple text editor(Notepad to be specific), the program (is said to) only takes up 314 bytes of storage, whereas it takes up over 49,000 bytes when compiled with Microsoft Visual Studio IDE.
The only difference between the two programs is that the one compiled in Visual Studio is shown to have imported three additional things:
using System.Collections.Generic;
using System.Text;
using System.Linq;
The rest of the program for the notepad version:
using System;
public class NumberDoublingProgram
{
public static void Main()
{
int myNumber;
int myAnswer;
Console.write("Please enter a number >> ");
myNumber = Convert.ToInt32(Console.ReadLine());
myAnswer = myNumber * 2;
Console.WriteLine(myAnswer);
}
}
My final question is, is her statement that compiled programs take up more space true for every language/compiler as a blanket statement? Is it acceptable to use this as a generalization for every programming language out there, or is this false information/debunkable?
Thank you for your time.