You want to have an environment with Docker for development and testing without interfering your stable machine.
You have enabled Hyper-V, created a virtual machine and install Windows 10 to the virtual machine.
When installing Docker in the virtual machine, Docker requires that the Nested Virtualization feature must be enabled for the virtual machine.
You open PowerShell, execute below command in the virtual machine:
Get-ComputerInfo -property "HyperV*"
You find that find that the HyperVRequirementVirtualizationFirmwareEnabled feature is not available.
1. Download this PowerShell script. The main interesting command in this script is the command below that enables Nested Virtualization for a virtual machine.
On the host machine execute below command:
Set-VMProcessor -VMName $vmName -ExposeVirtualizationExtensions $true
2. Open PowerShell as Administrator and execute 2 commands below.
Set-ExecutionPolicy -ExecutionPolicy "Unrestricted"
.\Enable-NestedVm.ps1 "Windows 10 Dev"
"Windows 10 Dev" is the virtual machine name without quotes.
3. Install Docker. Restart the virtual machine.
4. Install any additional software if needed, restart the virtual machine again.
5. Open a Command Prompt and test Docker installation.
docker pull hello-world && docker run hello-world
Rerun the command if you get an issue in the first run.
Why do I need to learn about software construction?
Knowing how to write code does not mean that you know how to create real-world software.
In real world, you will need to know how to manage your code, how to read the existing code, how to write code following standard styles, how to ensure that your code is working, how to automate your the process of building, testing and deploying your code, how to handle errors in your application, how to optimize your code for better speed, how to write secure code, how to avoid code duplication, how to create readable code, how to create code faster.
That's why you need to learn about software construction.
What can I do after finishing learning software construction?
You will know how to create software in a real world team and environment.
Hmm! Is it really useful?
If you doubt its usefulness then you can delay learning it until you are tasked to create a software system and you complete a half of it and are stuck there because when you add one more feature you will get tons of bugs due to the new code. After you finish fixing 1 bug, you get 3 other bugs due to the modified code that fixes the bug.
Another scenario is that when it takes another person 6 months to read and understand the code that you wrote in 3 months in order to fix a bug or to add a new feature.
Alright! What should I do now?
Software construction requires a lot of reading. In order to get familiar with software construction you will need to read at least below books.
Please read this Steve McConnell (2004). Code Complete. Microsoft Press book first.
After that please read this Jon Loeliger and Matthew McCullough (2012). Version Control with Git: Powerful Tools and Techniques for Collaborative Software Development. O'Reilly Media book.
Alternatively, you can read this Ben Collins-Sussman et al. (2011). Version Control with Subversion book.
After that please read this Paul M. Duvall et al. (2007). Continuous Integration Improving Software Quality and Reducing Risk. Addison-Wesley book.
After that please read this Robert C. Martin (2009). Clean Code: A Handbook of Agile Software Craftsmanship. Pearson Education book.
After that please read
- this Andy Hunt, Dave Thomas and Matt Hargett (2007). Pragmatic Unit Testing in C# with NUnit. Pragmatic Bookshelf book, and
- this Kent Beck (2002). Test Driven Development: By Example. Addison Wesley book.
After that please read
- this Martin Fowler et al. (1999). Refactoring Improving The Design Of Existing Code. Addison Wesley book, and
- its newer version Martin Fowler (2019). Refactoring. Improving the Design of Existing Code. 2nd Edition. Addison-Wesley Professional also.
After that please read this Elton Stoneman (2020). Learn Docker in a Month of Lunches. Manning Publications book.
If you have to work with legacy code then please read
- this Michael Feathers (2004). Working Effectively with Legacy Code. Prentice Hall PTR book, and
- this Diomidis Spinellis et al. (2003). Code Reading: The Open Source Perspective. Addison-Wesley Professional book.
After that please read
- this Brian L. Gorman (2020). Practical Entity Framework. Apress book, and
- this Suhas Chatekar (2015). Learning NHibernate 4. Packt Publishing book, and
- this Brian Larson (2017). Microsoft SQL Server 2016 Reporting Services. McGraw-Hill Education book.
After that please read this Matt Perdeck (2010). ASP.NET Site Performance Secrets. Packt Publishing book.
After finishing the books please click Topic 11 - Software Testing to continue.