A basic example of layering: FTP < TCP < IP < Ethernet
Benefis of layering:
- You can understand a layer without knowing much about the others.
- Minimize dependencies.
using System; | |
using System.ComponentModel; | |
using System.Runtime.InteropServices; | |
using System.Net; | |
public class NetworkConnection : IDisposable | |
{ | |
readonly string _networkName; | |
public NetworkConnection(string networkName, NetworkCredential credentials) |
@Html.DropDownListFor(Function(Model) Model.ProgramTypeId, New SelectList(Model.allPrograms, | |
"ProgramTypeId", "ProgramName"), "Select Program....", | |
New With {Key .class = "form-control", Key .required = "Required"}) |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
################### | |
# compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe |