The first modern computers was the massive code breaking machines of the Second World War ( such as Z3 , ENIAC and Colossus ) . The latter two of these machines was based on the theoretical foundation laid by Alan Turing and developed by John von Neumann .