Skip to main content

Home/ InfokeyDEV/ Group items matching "java" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
涼鞋

Android Developers - 0 views

  •  
    Chinese new year animals horoscope2016 Happy Chinese new year 2016 messages & quotes Happy new year 2016 greetings for Chinese Chinese new year 2016 funny poems
  •  
    Chinese new year animals horoscope2016
    Happy Chinese new year 2016 messages & quotes
    Happy new year 2016 greetings for Chinese
    Chinese new year 2016 funny poems
Ching Yi Chan

Java SOCKS Proxy Server - 1 views

  •  
    Chinese new year animals horoscope2016 Happy Chinese new year 2016 messages & quotes Happy new year 2016 greetings for Chinese Chinese new year 2016 funny poems
  •  
    Chinese new year animals horoscope2016
    Happy Chinese new year 2016 messages & quotes
    Happy new year 2016 greetings for Chinese
    Chinese new year 2016 funny poems
Ching Yi Chan

CodeProject: C# method calls within Java Program. Free source code and programming help - 0 views

  •  
    Chinese new year animals horoscope2016
    Happy Chinese new year 2016 messages & quotes
    Happy new year 2016 greetings for Chinese
    Chinese new year 2016 funny poems
Benx Shen

A re-introduction to JavaScript - MDC - 1 views

  • var name = o && o.getName();
  • var name = otherName || "default";
  • The first argument to apply() is the object that should be treated as 'this'.
  • ...9 more annotations...
  • apply() has a sister function named call, which again lets you set 'this' but takes an expanded argument list as opposed to an array.
  • Closures
  • A closure is the combination of a function and the scope object in which it was created. Closures let you save state - as such, they can often be used in place of objects.
  • An unfortunate side effect of closures is that they make it trivially easy to leak memory in Internet Explorer.
  • The above code sets up the element to turn red when it is clicked. It also creates a memory leak. Why? Because the reference to el is inadvertently caught in the closure created for the anonymous inner function. This creates a circular reference between a JavaScript object (the function) and a native object (el).
  • delete el;
  • var clickHandler = function() { this.style.backgroundColor = 'red'; } (function() { var el = document.getElementById('el'); el.onclick = clickHandler; })();
  • Surprisingly, one trick for breaking circular references introduced by a closure is to add another closure:
  • It's useful to start with an idea of the language's history. JavaScript was created in 1995 by Brendan Eich, an engineer at Netscape, and first released with Netscape 2 early in 1996. It was originally going to be called LiveScript, but was renamed in an ill-fated marketing decision to try to capitalise on the popularity of Sun Microsystem's Java language — despite the two having very little in common. This has been a source of confusion ever since.
  •  
    Chinese new year animals horoscope2016 Happy Chinese new year 2016 messages & quotes Happy new year 2016 greetings for Chinese Chinese new year 2016 funny poems
  •  
    Chinese new year animals horoscope2016
    Happy Chinese new year 2016 messages & quotes
    Happy new year 2016 greetings for Chinese
    Chinese new year 2016 funny poems
Benx Shen

從分佈式系統的角度看REST-企業應用-Java -JavaEye做最棒的軟件開發交流社區 - 0 views

  • 從REST具備的內在特徵來說,它包括了這些特徵: 1、基於HTTP的資源 2、以HTTP協議去操作 3、數據和表象分離
Benx Shen

嵌入式Tomcat怎麼能讓Context自動reload-Tomcat-Java - 0 views

Ching Yi Chan

rEneX: Multicast and JGroups(未完待续) - 0 views

  •  
    Chinese new year animals horoscope2016
    Happy Chinese new year 2016 messages & quotes
    Happy new year 2016 greetings for Chinese
    Chinese new year 2016 funny poems
Benx Shen

ThreadLocal與synchronized - 0 views

  •  
    對於 java synchronized 的機制多所討論,並且發文者 klyuan 提出了不少測試代碼嘗試讓讀者更能夠跟著學習測試,我覺得真的很棒。雖然,他對於 synchronized 和 threadlocal 的見解的確是有些小錯誤,threadlocal 確實不是在解決多執行緒中資源共享的問題,但我想 klyuan 其實是想使用 threadlocal 來解決「多執行緒中非共享資源的保護」問題。
Benx Shen

SQL Tag Library - 0 views

Benx Shen

CruiseControl发布2.7正式版 - [Matrix - 与 Java 共舞] - 0 views

Benx Shen

mock框架搞什麼搞? - 0 views

  •  
    發文者 taowen 提出了一個對於 mock 框架(jMock, EasyMock)的使用經驗,認為這樣的框架並沒有帶給他測試上的方便性,反而似乎使得測試程式碼更多更亂,因此,他提出了對於 mock 框架技術的質疑。

    不過,taowen 並不是單純地從情緒上發揮論述,而是舉出了一些簡單的程式馬來進行測試,試圖寫 mock 測試程式並非那麼簡易。另外,他自己另外展示了如何不用 mock 框架來進行單元測試。從這一點來看,taowen 很棒地說明了該如何進行單元測試,無論使用哪一種方法。

    值得我學習的是,taowen 提出了自己對於 mock 框架的觀點,他的經驗告訴他:mock 到底在搞什麼東西!?於是勇敢地提出質疑。這樣的質疑,我認為比學習技術本身更有價值。從結果來看,這引發了相當多的迴響與討論,有人認為這樣,卻有人不以為然。(我相信 taowen 心臟必須要夠強,才能夠接受不同的意見而不感到生氣。我覺得我還需要學習這樣的質疑態度與接受批評的雅量。)總的來說,我發現我看到了更多元的資訊,作為一個學習者,比起單純地從一篇文章學習技術還要能夠學得更多。

    雖然我使用 mock 技術有一小段時間,而我也懂得 mock 真正的意圖以及單元測試所帶來的價值,這並不會使得我一開始就認為 taowen 是錯誤的,即便看完他的發表之後,我仍然不認為他不應該提出這樣的質疑(我想我已經在上面一段表達我的「推崇」之意,以及我所認為背後的價值)。和一些參與討論的網友一樣,認為這不是一個完全適當的例子,但 taowen 也的確指出了 mock 技術會讓開發者詬病之處。然而,這並不足以說明 mock 真是非常難用,或造成了單元測試的困擾。實際的狀況是,我們得再從 mock 技術所帶來的好處出發,瞭解了之
Benx Shen

框架為我所用,勿為框架所困 - 0 views

  • 我們已經被框架所包圍,我們已陷入了學習之苦。
  • 由於長期接受中國式教育,所以我們已經習慣了學習,學習幾個框架,對於國人來說也不是什麼大不了的事情,然而我們也發現,相對於我們的學習能力而言,我們的創造性顯得有些不足,我們有了繼承他人的能力,我們也缺乏一種顛覆他人的精神。
Benx Shen

Jevopi's Developer Blog: String.format vs. MessageFormat.format vs. String.+ vs. StringBuilder.append - 1 views

  •  
    Chinese new year animals horoscope2016 Happy Chinese new year 2016 messages & quotes Happy new year 2016 greetings for Chinese Chinese new year 2016 funny poems
Benx Shen

Seasar - DI Container with AOP - - 1 views

  • Seasar2, the most popular open source framework in Japan, frees you from such annoyance and brings you comfortable DI Life.
Benx Shen

Tomcat 實用小技巧-Tomcat-Java - 3 views

« First ‹ Previous 121 - 136 of 136
Showing 20 items per page