Diesel & Gas Engines?
D, your analagy using computer languages is great. You are exactly on the right track. Once you learn about gasoline fueled internal combustion engines you will easily adapt to diesel fueled internal combustion engines. All the parts are basically the same except for the fuel system which is totally different. But what you will learn will be easily transferrable to the diesel. Any knowledge you will gain, like all knowledge, will be welcome to you as you proceed to learn more about diesel engines. Good success to you, Peter