Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Pertemuan 1

232 views

Published on

  • Be the first to comment

  • Be the first to like this

Pertemuan 1

  1. 1. KI091326 PengenalanFramework .NETPertemuan ke-1 | 13 Februari 2012
  2. 2. Agenda Pengenalan Framework .NET Pengenalan Visual Studio Managing Project Structure Debugging
  3. 3. PENGENALANFRAMEWORK .NET
  4. 4. Platform .NET
  5. 5. Arsitektur Windows 8
  6. 6. Platform .NETInteroperability  Dapat mengakses fungsionalitas program/library lain yang dijalankan di luar .NET environmentCommon Language Runtime Engine (CLR)  Execution engine pada .NET framework  Menjamin keseragaman dalam hal memory management, security dan exception handling
  7. 7. Common LanguageInfrastructure (CLI)
  8. 8. Platform .NETLanguage Independence  Support Common Type System (CTS)  Common Language Infrastructure (CLI)
  9. 9. Platform .NET Base Class Library (BCL)  Berisi kelas-kelas untuk fungsi umum (I/O file, graphic rendering, database interaction, XML manipulation, dll.) Simplified Deployment  Checking previous installation & security requirements Security  Common security model (e.g. buffer overflows avoidance) Portability  Open standard
  10. 10. Class Library System System. CodeDom System. Collections System. Diagnostics System. Globalization System. IO System. Resources System. Text System. Text.RegularExpressions …
  11. 11. Memory management Non-deterministic Compacting memory Using generational  Generation 0  frequently collected  Generation 1  less frequently collected  Generation 2  least frequently collected
  12. 12. Alternatif .NET Framework Microsoft .NET Micro Framework : embedded device Mono : Windows, iOS, Android, Linux OS, PS3, Wii, Xbox, dll Portable.NET : Windows, Linux, Mac OS, dll Rotor : Mac OS Microsoft’s Shared Source CLI  tidak update sejak 2006 CrossNet  tidak aktif sejak 2007
  13. 13. Alternatif IDE untuk C# MonoDevelop SharpDevelop Notepad++ (???)
  14. 14. PENGENALANVISUAL STUDIO IDE
  15. 15. Fitur-fitur Visual Studio WPF UI Improved Intellisense  powerful autocomplete Improved searching Improved debugger  pinned datatips Managed Extensibility Framework  supports add-in, contoh: http://nuget.org/ Support Windows Azure development
  16. 16. PROJECT STRUCTUREMANAGEMENT
  17. 17. PROJECT and SOLUTION PROJECT SOLUTION Container yang mengatur  Container yang mengatur source code, data banyak project yang connections, dan interdependent menjadi references satu
  18. 18. 1. Creating a new Project (&Solutions)
  19. 19. 2. Examine Project Structure
  20. 20. 3. Looking for main code
  21. 21. 4. Running Main Program
  22. 22. 5. Adding New Project to ASolution
  23. 23.  New solution structure
  24. 24. 6. Adding References
  25. 25.  Select Projects Reference
  26. 26. 7. Using the projectreference
  27. 27. Catatan Namespace  Sebuah container untuk mengatur source code dalam sebuah project  Analoginya sama dengan folder di dalam komputer  Jika ada bagian source code yang membutuhkan referensi dari source code di namespace lain, dapat menggunakan keyword “using” untuk menyertakannya.
  28. 28. 8. Setting Startup Project
  29. 29. 9. Running main project
  30. 30. DEBUGGING
  31. 31. Mengapa harus melakukandebugging? Mengurangi bug atau cacat pada program • Salah penulisan syntaxSyntax Error • IDE modern secara otomatis mendeteksi • Kesalahan pada proses logika programLogic Error • Output tidak sesuai dengan yang diharapkan Runtime • Terjadi ketika program berjalan • Terkait masalah referensi variabel (index, Error object, pointer, dsb.)
  32. 32. Mekanisme Debugging padaVisual Studio WatchBreakpoints Data Tip Window Immediate Call Stack … Windowhttp://www.codeproject.com/Articles/79508/Mastering-Debugging-in-Visual-Studio-2010-A-Beginn
  33. 33. Tugas Instalasi Visual Studio 2010/2012 Express Mencoba mekanisme Debugging pada Visual Studio

×