I'm not a chemist, but can't one just run Coca Cola through a mass spectrometer to determine the relative amounts of, say, the top 15 molecules (by their masses), then do some further sleuthing (e.g. X-ray diffraction studies of the component molecules) to determine what those 15 molecules are?
Given the right amount of time looking at the assembly of firefox isn't an impossible way to find out what it is doing.
A good counter example is the assembly of old nes games. I have read through some of them and you can even find nice commented versions of the main games source like mario, mario3, super mario etc. Reading the source is really eye opening. Some features in the game are very hard coded and fundamental to the code base changing it would be extremely hard. Other times you find fantastically elegant code. If anyone is interested in a treat go read the level loading asm for smb1.
And if the browser industry were as big as the beverage industry, and if Firefox had the kind of advantage Coke has, I am sure people would be doing it.
The ingredients aren't a secret - they are published by the people that certify stuff as kosher for example, or by equivalents of FDA in some countries.
Of course the proportions and mixing might be secret - but really it's coke's brand and ubiquity that is their 'secret'.
Exactly. My dad is a chemist and he mentioned this to me: it's not hard to 'reverse engineer' the formula. You can iterate until the results of the spectrometer from the original coke and your invented formula are close enough.