自我介绍

1.桌面系统
  对OSX,WINDOWS,LINUX都有相当了解。目前使用Archlinux,如图:




2.Javascript代码样本

window.addEvent('domready', function() {

    var Ships = new Class({

        initialize:function() {//ships is a hash,<shipName,companyName>

            this.ships = new Hash();

        },

        addShip:function(ship)

        {

            var info = new Array();

            info[0] = ship.company;

            info[1] = ship.capacity;

            this.ships.set(ship.name, info);

        },

        getCompanyName:function(shipName) {

            var value = this.ships.get(shipName)[0];

            return value == null ? '' : value;

        },

        getKeys:function() {

            return this.ships.getKeys();

        },

        getCapacity:function(shipName) {

            var value = this.ships.get(shipName)[1];

            return value == null ? '' : value;

        },

        getShips:function() {

            return this.ships;

        }

    });

    var TmpShips = new Class({

        initialize:function() {//ships is a hash,<shipName,companyName>

            this.tmpShips = new Array();

        },

        addShip:function(ship)

        {

            this.tmpShips.push(ship.name);

        },

        getShips:function() {

            return this.tmpShips;

        }



    });


    var _HashValue = 0;

    //store the info of curvoyages,<voyageId,voyageinfo>

    var _Voyages = new Hash();

    var _Ships = new Ships();

    var _TmpShips = new TmpShips();

    var _curVoyages;

    var _ZjKinds = new Hash();

    var _index = 0;

    var _SelectedVoyageId = 0;

    var _Nations = new Hash();

    var _Customers = new Hash();

    var _PortName;

    var _NULL = 'NULL';

    var _ERROR = 'ERROR';

    var _FAILURE = 'FAILURE';

    var _EXCEPTION = 'EXCEPTION';


    var _excludeChar = ['enter','up','down','left','right','backspace','delete']//,'0','1','2','3','4','5','6','7','8','9'];

    //var 


    var Voyage = new Class({

        initialize:function(voyage) {

            this.id = voyage.id;

            this.shipName = voyage.shipName;

            this.capacity = voyage.capacity;

            this.count = voyage.count;

            this.portName = voyage.portName;

            this.leaveH = voyage.leaveH;

            this.leaveM = voyage.leaveM;

            this.arrivalH = voyage.arrivalH;

            this.arrivalM = voyage.arrivalM;

            this.date = voyage.date;

            this.status = voyage.started;

            this.isTmp = voyage.isTMP;

        },

        setCount:function(newCount) {

            this.count = newCount;

        },

        setStatus:function(newStatus) {

            this.status = newStatus;

        },

        setShipName:function(newShipName) {

            this.shipName = newShipName;

        },

        getId:function() {

            return this.id;

        },

        getShipName:function() {

            return this.shipName;

        },

        getCapacity:function() {

            return this.capacity;

        },

        getCount:function() {

            return this.count;

        },

        getPortName:function() {

            return this.portName;

        },

        getLeaveH:function() {

            return this.leaveH;

        },

        getLeaveM:function() {

            return this.leaveM;

        },

        getArrivalH:function() {

            return this.arrivalH;

        },

        getArrivalM:function() {

            return this.arrivalM;

        },

        getDate:function() {

            return this.date;

        },

        getStatus:function() {

            return this.status;

        },

        getIsTmp:function() {

            return this.isTmp;

        },

        increaseCount:function() {

            var getFreshCount = this.getFreshCount.bind(this);

            var newCount = getFreshCount();

            //console.log(newCount);

            return this.count = (newCount + 1);

        },

        isOverLoad:function() {

            var count = this.getFreshCount() + 1;

            var capacity = this.capacity.toInt();

            return (count >= capacity + 10 || count >= 1.05 * capacity) ? true : false;

        },

        getFreshCount:function() {

            var newCount = RequestUtils.curVoyages.freshCountOfVoyage(this.id);

            if (newCount == false) {

                return this.count;

            } else {

                return newCount.toInt();

            }

        },

        getIntervalCount:function() {

            var newCount;

            var getFreshCount = this.getFreshCount.bind(this);

            (function() {

                newCount = getFreshCount();

            })

        }



    });




更多


3.java代码样本
http://github.com/weejulius/voyages/tree/master


这是一个demo,也就是实践所写。使用Maven,涉及TDD/BDD/DDD,使用Guice,jpa,AspectJ等,实现了声明式事务(propagation还未完成),MVC等,并使用Jmeter测试。

4.专业书籍
待续。。。

5.职业发展

待续。。。

你可能感兴趣的:(JavaScript,maven,jpa,osx,mootools)