SlideShare ist ein Scribd-Unternehmen logo
1 von 13
本週學習心得分享
Vic Chih
2015-11-27
本週主題
• 上週作業-override & new
• LINQ
– 作業四
– 作業五
– Select & SelectMany
• Javascript
– function
– Self invoking anonymous function
– Closures
上週作業-Override and new
•
{A} nemo = new {B};
{A} {B} move moveby
override
Animal Animal move by:run run
Fish Fish move by:swim swim
Animal Fish move by:swim swim
Fish Animal Error
new
Animal Animal move by:run run
Fish Fish move by:run swim
Animal Fish move by:run run
Fish Animal Error
當方法重複時C#會先使用父類別的方法
LINQ 作業四
• Union、Concat
• OrderBy、OrderByDescending
• where
LINQ 作業五
Select、SelectMany
• Select and SelectMany are projection operators. Select operator is
used to select value from a collection and SelectMany operator is
used to select values from a collection of collection i.e. nested
collection.
Javascript
• First-class function
– The language supports passing functions as arguments to other functions,
returning them as the values from other functions, and assigning them to
variables or storing them in data structures.
• Prototype-based programming
– Prototype-based programming is an OOP model that doesn't use classes, but
rather it first accomplishes the behavior of any class and then reuses it
(equivalent to inheritance in class-based languages) by decorating (or
expanding upon) existing prototype objects. (Also called classless, prototype-
oriented, or instance-based programming.)
Javascript-function
• 直接宣告:
– function declaration
• 匿名宣告:
– function expression
Javascript-Self invoking anonymous function
• Self invoking anonymous function
• 常用於一次性的呼叫
• Function內的變數或function都是區域性的無法在外使用
Javascript - Closures
• A closure is a special kind of object that combines two things: a
function, and the environment in which that function was created.
The environment consists of any local variables that were in-scope
at the time that the closure was created.
• Closures are functions that refer to independent (free) variables. In
other words, the function defined in the closure 'remembers' the
environment in which it was created.
Javascript - Closures
•
Reference
• http://www.dotnet-tricks.com/Tutorial/linq/N74N160714-Difference-between-Select-
and-SelectMany-in-LINQ.html
• https://en.wikipedia.org/wiki/Prototype-based_programming
• https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-
Oriented_JavaScript
• https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures
Thank you for your listening

Weitere ähnliche Inhalte

Andere mochten auch

Tecnología de grupos
Tecnología de gruposTecnología de grupos
Tecnología de gruposMoonRood
 
Elastic search custom chinese analyzer
Elastic search custom chinese analyzerElastic search custom chinese analyzer
Elastic search custom chinese analyzerLearningTech
 
LGFG FULL SHOE CATALOGUE 2017
LGFG FULL SHOE CATALOGUE 2017LGFG FULL SHOE CATALOGUE 2017
LGFG FULL SHOE CATALOGUE 2017Chenda Lin
 
Riavviare la crescita: il ruolo delle professioni nel terziario di mercato
Riavviare la crescita: il ruolo delle professioni nel terziario di mercatoRiavviare la crescita: il ruolo delle professioni nel terziario di mercato
Riavviare la crescita: il ruolo delle professioni nel terziario di mercatoCommerce Commercio
 
Risoluzione 1DF 2016 comodato imu tasi
Risoluzione 1DF 2016 comodato imu tasiRisoluzione 1DF 2016 comodato imu tasi
Risoluzione 1DF 2016 comodato imu tasiAntonio Palmieri
 
Finanza pubblica e tasse locali
Finanza pubblica e tasse localiFinanza pubblica e tasse locali
Finanza pubblica e tasse localiCommerce Commercio
 
Type script by Howard
Type script by HowardType script by Howard
Type script by HowardLearningTech
 
Final de prac
Final de pracFinal de prac
Final de pracLiz Lucas
 

Andere mochten auch (16)

Tecnología de grupos
Tecnología de gruposTecnología de grupos
Tecnología de grupos
 
GLEE Zambia: Low Emissions Development presentation by CCAFS March 2016
GLEE Zambia: Low Emissions Development presentation by CCAFS March 2016GLEE Zambia: Low Emissions Development presentation by CCAFS March 2016
GLEE Zambia: Low Emissions Development presentation by CCAFS March 2016
 
Hipaa guide 2010
Hipaa guide 2010Hipaa guide 2010
Hipaa guide 2010
 
Elastic search custom chinese analyzer
Elastic search custom chinese analyzerElastic search custom chinese analyzer
Elastic search custom chinese analyzer
 
Lsc
LscLsc
Lsc
 
Imu
ImuImu
Imu
 
LGFG FULL SHOE CATALOGUE 2017
LGFG FULL SHOE CATALOGUE 2017LGFG FULL SHOE CATALOGUE 2017
LGFG FULL SHOE CATALOGUE 2017
 
Riavviare la crescita: il ruolo delle professioni nel terziario di mercato
Riavviare la crescita: il ruolo delle professioni nel terziario di mercatoRiavviare la crescita: il ruolo delle professioni nel terziario di mercato
Riavviare la crescita: il ruolo delle professioni nel terziario di mercato
 
Mitigation from agriculture: What are fair, ambitious targets?
Mitigation from agriculture: What are fair, ambitious targets? Mitigation from agriculture: What are fair, ambitious targets?
Mitigation from agriculture: What are fair, ambitious targets?
 
Risoluzione 1DF 2016 comodato imu tasi
Risoluzione 1DF 2016 comodato imu tasiRisoluzione 1DF 2016 comodato imu tasi
Risoluzione 1DF 2016 comodato imu tasi
 
Finanza pubblica e tasse locali
Finanza pubblica e tasse localiFinanza pubblica e tasse locali
Finanza pubblica e tasse locali
 
Type script by Howard
Type script by HowardType script by Howard
Type script by Howard
 
Financing low emissions agriculture: Building the business case for alternate...
Financing low emissions agriculture: Building the business case for alternate...Financing low emissions agriculture: Building the business case for alternate...
Financing low emissions agriculture: Building the business case for alternate...
 
Improving data on greenhouse gas emissions—and mitigation potentials—from agr...
Improving data on greenhouse gas emissions—and mitigation potentials—from agr...Improving data on greenhouse gas emissions—and mitigation potentials—from agr...
Improving data on greenhouse gas emissions—and mitigation potentials—from agr...
 
Final de prac
Final de pracFinal de prac
Final de prac
 
Manual dhr 1
Manual dhr 1Manual dhr 1
Manual dhr 1
 

Mehr von LearningTech

Mehr von LearningTech (20)

vim
vimvim
vim
 
PostCss
PostCssPostCss
PostCss
 
ReactJs
ReactJsReactJs
ReactJs
 
Docker
DockerDocker
Docker
 
Semantic ui
Semantic uiSemantic ui
Semantic ui
 
node.js errors
node.js errorsnode.js errors
node.js errors
 
Process control nodejs
Process control nodejsProcess control nodejs
Process control nodejs
 
Expression tree
Expression treeExpression tree
Expression tree
 
SQL 效能調校
SQL 效能調校SQL 效能調校
SQL 效能調校
 
flexbox report
flexbox reportflexbox report
flexbox report
 
Vic weekly learning_20160504
Vic weekly learning_20160504Vic weekly learning_20160504
Vic weekly learning_20160504
 
Reflection & activator
Reflection & activatorReflection & activator
Reflection & activator
 
Peggy markdown
Peggy markdownPeggy markdown
Peggy markdown
 
Node child process
Node child processNode child process
Node child process
 
20160415ken.lee
20160415ken.lee20160415ken.lee
20160415ken.lee
 
Peggy elasticsearch應用
Peggy elasticsearch應用Peggy elasticsearch應用
Peggy elasticsearch應用
 
Expression tree
Expression treeExpression tree
Expression tree
 
Vic weekly learning_20160325
Vic weekly learning_20160325Vic weekly learning_20160325
Vic weekly learning_20160325
 
D3js learning tips
D3js learning tipsD3js learning tips
D3js learning tips
 
git command
git commandgit command
git command
 

Kürzlich hochgeladen

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 

Kürzlich hochgeladen (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

本週學習心得分享