lesson 007argue 英['ɑːgjuː] 美['ɑrgjʊ]vi. 爭論,辯論;提出理由vt. 辯論,爭論;證明;說服Just do what you are told, don't argue with me.照我說的去做,別跟我爭。argument英['ɑːgjʊm(ə)nt] 美['ɑrɡjumənt]n. 論證;論據;爭吵;內容提要They are always having argument about money.他們總是為錢而爭吵。debate英[dɪ'beɪt] 美[
-- Example 1 -- First Program.-- Classic hello program.print("hello")-------- Output ------hello -- Example 2 -- Comments.-- Single line comments in Lua start with double hyphen.--[[ Multiple line comments startwith double hyphen and two square
-- Example 6 -- Case Sensitive.-- Lua is case sensitive so all variable names & keywords-- must be in correct case.ab=1Ab=2AB=3print(ab,Ab,AB) -------- Output ------1 2 3-- Example 7 -- Keywords.-- Lua reserved words are: and, break, do, else,
前面的博文:WPF拖動總結 中DebugLZQ遇到的問題是:DebugLZQ給容器中所有UI控制項註冊一個MouseLeftButton事件,Button控制項無法捕獲這兒事件的問題,加個斷點看下,程式根本不到達這個地方。當時只是簡短的提了一下,覺得不夠,因此決定再發一篇博文來說一下。foreach (UIElement uiEle in LayoutRoot.Children){ uiEle.MouseMove += new
-- Example 11 -- Numbers.-- Multiple assignment showing different number formats.-- Two dots (..) are used to concatenate strings (or a-- string and a number).a,b,c,d,e = 1, 1.123, 1E9, -123, .0008print("a="..a, "b="..b, "c="..c, "d="..d, "e="..e) --
-- Example 16 -- if statement.-- Simple if.a=1if a==1 thenprint ("a is one")end-------- Output ------a is one-- Example 17 -- if else statement.b="happy"if b=="sad" thenprint("b is sad")elseprint("b is not sad")end-------- Output ------b is not sad--
今天發現了一個小陷阱,emacs中的eshell和其他shell在解釋backticks(“`”)符號上完全不同。上網搜了一下,終於發現了答案。http://www.emacswiki.org/emacs/EshellBackticksThere are no `backticks` per se in eshell. Here is how backticks work in other shells: The commands enclosed in backticks are
-- Example 21 -- repeat until statement.a=0repeata=a+1print(a)until a==5-------- Output ------12345-- Example 22 -- for statement.-- Numeric iteration form.-- Count from 1 to 4 by 1.for a=1,4 do io.write(a) endprint()-- Count from 1 to 6 by 3.for a=1
-- Example 26 -- Functions.-- Define a function without parameters or return value.function myFirstLuaFunction()print("My first lua function was called")end-- Call myFirstLuaFunction.myFirstLuaFunction()-------- Output ------My first lua function
-- Example 31 --[[Standard LibrariesLua has standard built-in libraries for common operations inmath, string, table, input/output & operating system facilities.External LibrariesNumerous other libraries have been created: sockets, XML, profiling,
本文是從 What is Domain Driven Design?這篇文章翻譯而來。 ”…在很多領域,專家的作用體現在他們的專業知識上而不是智力上。“ -- Don Reinertsen 領域驅動設計(Domain Driven Design)是一種軟體開發方法,目的是讓軟體系統在實現時準確的基於對真實業務過程的建模並根據真實業務過程的調整而調整。 傳統的開發工作趨向於一種以技術為先導的過程,需求從業務方傳遞到Team