Friday, 10 January 2014

namespace

In general namespace is a container for a set of identifiers.

System namespace

System namespace contain:
- fundamental classes
- base classes

fundamental classes and base classes contain:
- value datatypes
- reference datatypes
- events
- event handlers
- interfaces
- attributes
- processing exceptions

System.collections
System.componentmodel
System.Composition
System.diagnostics
System.dynamic
System.globalization
System.IO
System.linq
System.net
System.Numerics
System.Reflection
System.Resources
System.Runtime
System.Security
System.Servicemodel
System.text
System.threading
System.Windows.Input
System.XML
Windows namespace
Language and Compiler
 

Thursday, 9 January 2014

Yakin

Yakin karena diyakinkan atau karena diri sendiri?

Apa yang membuat seseorang yakin?
Karena sering mendengarkan

TCP vs UDP

TCP
is analogous to telephone
- connection oriented

UDP
is analogous to passing a note from one computer to another computer.
- connectionless protocol
- maximum data size of individual sends is determined by the network

Question to choose between TCP or UDP
1. Require acknowledgement?
2. Sending big file(Such as image or sound file?)
3. Intermittent?





C / visual basic / COM and windows

Many the low-level function created using C.
All of the DLL in win32 API were implemented in C code

Visual basic tend to be windows only programming language.
Visual basic use different data types and differently store then C.

 Visual basic uses stdcall convention for implementing function call.

COM
Com takes object-oriented programming paradigm to the next level by using standard class.

Com client can be written in any language that support object oriented programming.


Tasks controlling hardware of PC

1. Sending beep to speaker
2. Ejecting CD/DVD-ROM