Monday, July 2, 2007

UML Sequence Basics




The vertical dashed lines coming down from the "instance : Object" boxes are called in UML lifelines they depicts the instance scope of existance.

The solid arrow with the caption "sum ( 2 , 5 )" depicts a function call. This kind of arrow is know in UML as Message Call.

The dashed arrow with the caption "7" is the return value from the function. This kind of arrow is know in UML as Message Return.

The vertical box is the body of the function sum.

Saturday, May 12, 2007

C++ Programming with vim

  • indenting:
    < >
    indents to the left and right repectivly. >2 will shift to the right two lines.

    >> indent line to the right.

  • iw

  • iB

  • ib

  • i"

  • % - Move to the closing ) } ] of the closest ( { [
    example:
    void f( array[i] )
    then if the cursor is on 'a' of array you can do 'd%' and that will cut array[i] into the register.

  • Auto completion: in insert mode, Ctrl-n and Ctrl-p

  • Goto local Declaration: gd
    When the cursor is on a local variable, this command will jump to its declaration.

  • Goto file under cursor: gf

  • find word under cursor: *