Κωνσταντίνος Σιδέρης 7254

download Κωνσταντίνος Σιδέρης 7254

of 21

  • date post

    11-Apr-2017
  • Category

    Software

  • view

    87
  • download

    0

Embed Size (px)

Transcript of Κωνσταντίνος Σιδέρης 7254

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    2016

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (1/3)

    , .

    def foo ( a , b ) :while b ! = 0 :

    i f a > b :a = a b

    else :b = b a

    return a

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (2/3)

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (3/3)

    . .

    .

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    JavaScript & npm (1/3)

    . type system .

    [ ] + [ ] = ' '

    browser (Node.js). (250.000).

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    JavaScript & npm (2/3)

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    JavaScript & npm (3/3){

    "name " : "npm" ," version " : " 3 . 9 . 6 " ," descr ipt ion " : "a package manager for JavaScr ip t " ," keywords " : [

    " i n s t a l l " ,"modules " ," package manager " ," package . json "

    ] ,"homepage " : " https :// docs . npmjs . com/" ," author " : " Isaac Z . Schlueter < i@izs .me> ( http :// blog . i z s .me) " ," repos i tory " : {

    " type " : " g i t " ," u r l " : " https :// github . com/npm/npm"

    } ," dependencies " : {

    " abbrev " : " ~ 1 . 0 . 7 " ," ans ico lors " : " ~ 0 . 3 . 2 " ," columnify " : " ~ 1 . 5 . 4 " ,

    . . .} ," devDependencies " : {

    "deepequal " : " ~ 1 . 0 . 1 " ,"marked " : " ~ 0 . 3 . 5 " ,"npmreg i s t r ycouchapp " : " ~ 2 . 6 . 1 2 " ,

    . . .} ," l i cense " : " A r t i s t i c 2.0"

    }

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    npm. .

    npm.

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (1/2)

    Web server

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (2/2)

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (1/4)

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (2/4)

    escomplex .

    Cyclomatic complexity: .

    Halstead Volume: . .

    Maintainability: .

    Change cost: modules module.

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (3/4)eslint , .

    === ==.[ ] == fa l se[ ] == ! [ ]3 == "03"

    .

    funct ion fn ( ) {x = 1 ;return x ;x = 3 ;

    }

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (4/4)

    jsinspect .

    def findAManager :for each employee in employees :

    i f employee . isManager :return employee

    return n i l

    def f indASupervisor :for each employee in employees :

    i f employee . i sSuperv isor :return employee

    return n i l

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (1/6)

    15% 2% in degree 100.

    . 5. 53% 100 .

    40% .

    1.000 2.500.

    .

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (2/6)

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (3/6)

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (4/6)

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (5/6)Type PercentageDevelopment dependency 60.79%Dependency 39.21%

    Keyword Valuetest 237gruntplugin 192css 178gulpplugin 152string 151browser 147cli 141file 140stream 138testing 129

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    (6/6)

  • ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    ...

    .

    Demo