quiz with explainations - telemark university...

35
Software Implementation Hans-Petter Halvorsen, M.Sc. Quiz with Explainations

Upload: vunguyet

Post on 06-May-2018

215 views

Category:

Documents


2 download

TRANSCRIPT

SoftwareImplementation

Hans-PetterHalvorsen,M.Sc.

QuizwithExplainations

Questions1. List10differentProgrammingLanguages2. WhatisanIDE?- GivesomeExamples3. Whatis.NET?4. WhatisASP.NET?5. WhatisthemainprogramminglanguageusedintheXcodeIDE?6. Tocreateanembeddedsystem– whatlanguage(s)wouldyouuse?7. WhatdoyounormallyuseJavaScriptfor?8. WhatistypicallyMATLABusedfor?9. Whatkindofprogramminglanguage(s)/Framework(s)wouldyou

choosetocreateawebsite/webpage?10. WhatisOOP?- GivesomeExamplesofOOPLanguages

List10differentProgrammingLanguages

C/C++

C#

Python

VisualBasic

Java

Objective-C

PHP

Ruby

Perl

MATLAB LabVIEW

ProgrammingLanguages

Swift

ThousandsofdifferentProgrammingLanguagesexisttoday

http://redmonk.com/sogrady/2015/01/14/language-rankings-1-15/

PopularProgrammingLanguages1JavaScript2Java3PHP4Python5C#5C++5Ruby8CSS9C10Objective-C

11Perl11Shell13R14Scala15Haskell16MATLAB17Go17VisualBasic19Clojure19Groovy

http://redmonk.com/sogrady/2015/01/14/language-rankings-1-15/

WhatisanIDE?GivesomeExamples

IntegratedDevelopmentEnvironment(IDE)

• ProgrammmingLanguagesvs.IDE• OneIDEcanhandlemultipleLanguages

• C#• Java• Objective-C/Swift• LabVIEW(“G”)

• VisualStudio• Eclipse• Xcode• LabVIEW

C#VisualBasicC++...

Whatis.NET?

.NETFramework

10

• AProgrammingFrameworkfromMicrosoft

• C#,VB.NET,VisualStudio• CLR(CommonLanguageRuntime)

• Released2002

.NETFramework• The.NETFramework(pronounced“dotnet”)isasoftwareframeworkthat

runsprimarilyonMicrosoftWindows.• Itincludesalargelibraryandsupportsseveralprogramminglanguageswhich

allowlanguageinteroperability(eachlanguagecanusecodewritteninotherlanguages).

• The.NETlibraryisavailabletoalltheprogramminglanguagesthat.NETsupports.

• Programswrittenforthe.NETFrameworkexecuteinasoftwareenvironment,knownastheCommonLanguageRuntime(CLR),anapplicationvirtualmachinethatprovidesimportantservicessuchassecurity,memorymanagement,andexceptionhandling.

• TheclasslibraryandtheCLRtogetherconstitutethe.NETFramework.• Thelatestversionof.NETFrameworkis.NETFramework4.5.1(includedwith

VisualStudio2013)11

.NET

Fram

ework

12Wikipedia.(2013)..NETFramework.Available:http://en.wikipedia.org/wiki/.NET_Framework

WhatisASP.NET?

ASP.NET• ASP.NETisaserver-sideWebapplicationframeworkdesigned

forWebdevelopmenttoproducedynamicWebpages.• ItwasdevelopedbyMicrosofttoallowprogrammerstobuild

dynamicwebsites,webapplicationsandwebservices.• ItwasfirstreleasedinJanuary2002withversion1.0ofthe

.NETFramework,andisthesuccessortoMicrosoft'sActiveServerPages(ASP)technology.

• ASP.NETisbuiltontheCommonLanguageRuntime(CLR),allowingprogrammerstowriteASP.NETcodeusinganysupported.NETlanguage.

Wikipedia. (2013).ASP.NET.Available:http://en.wikipedia.org/wiki/ASP.NET

WebServer

ASP.NETC#/VB.NET

.NETFramework

WebBrowser

HTML JavaScriptServer-side

Client

ASP.NET

CSS

Theserver-sideASP.NETpagesareconvertedontheservertoHTMLpagesbeforeitissenttotheclient

ASP.NETisusedtocreatedynamicwebpages

16

WebSites

ASP.NETC#/VB.NET

.NETFramework

ASP.NETWebPages

ASP.NETWebForms

ASP.NETMVC

ASP.NET– DifferentwaysofcreatingWebSiteswithASP.NET

http://www.asp.net

Youcanuse(atleast)3differentapproacheswhencreatingWebSiteswithASP.NET

Razor

5.WhatisthemainprogramminglanguageusedintheXcode IDE?

Objective-C• Objective-Cisageneral-purpose,high-level,object-oriented

programminglanguagethatisbasedontheCprogramminglanguage.

• ItisthemainprogramminglanguageusedbyApplefortheOSXandiOSandtheirrespectiveAPIs,CocoaandCocoaTouch.

• Originallydevelopedintheearly1980s,itwasselectedasthemainlanguageusedbyNeXTforitsNeXTSTEPoperatingsystem,fromwhichOSXandiOSarederived.

• ApplehavenowreleasedanewProgramminglanguagecalledSwift thatisthenewrecommendedlanguageforiOS/OSXDevelopment

Swift

Tocreateanembedded system– whatlanguage(s)wouldyouuse?

EmbeddedSystem

• TypicallyC/C++orotherlow-levelprogramminglanguages.

• Highperformanceisneeded• Memory andstorage isusuallyverycriticalinEmbeddedsystems.

WhatdoyounormallyuseJavaScript for?

JavaScript• JavaScriptistheprogramminglanguageoftheWeb.• AllmodernHTMLpagesareusingJavaScript.• JavaScriptisthedefaultscriptinglanguageinallmodernbrowsers,andinHTML5.

• JavaScriptisprobablythemostpopularprogramminglanguageintheworld.

• ItisthelanguageforHTML,fortheWeb,forcomputers,servers,laptops,tablets,smartphones,andmore.

• JavaScriptcanChangeHTMLElements!– whichmakesitverypowerful!

WhyJavaScript?

JavaScriptisoneof3languages allwebdevelopersmust learn:• 1.HTML todefinethecontentofwebpages• 2.CSS tospecifythelayoutofwebpages• 3.JavaScript toprogramthebehaviorofwebpages

WhatistypicallyMATLABusedfor?

MATLAB• UsedforSimulations,ControlDesign,NumericalCalculations,etc.

• PopularinUniversitiesandResearch• MATLABisaScriptLanguage• CreatedbyMathworks

Whatkindofprogramminglanguage(s)/Framework(s)would

youchoosetocreateawebsite/webpage?

WebProgrammingLanguages• ASP.NETusingC#orVB.NET• PHP• JavaScript• etc.– lotsofotherpossibilities…

Server-sidevs.ClientSide

HTML

JavaScriptCSS

WebProgramming

UseHTML todefinethecontentofwebpages

UseCSS tospecifythelayoutofwebpages

TheWebProgrammingTriangle

UseJavaScript toprogramthebehaviorofwebpages

CSS

JavaScriptWeb

Server

WhatisOOP?GivesomeExamplesofOOP

Languages

OOP• OOP– ObjectOrientedProgramming• Object-orientedprogramming(OOP)isaprogramming

languagemodelorganizedaround"objects"ratherthan"actions"anddataratherthanlogic.

• ThefirststepinOOPistoidentifyalltheobjectsyouwanttomanipulateandhowtheyrelatetoeachother,anexerciseoftenknownasdatamodeling(UML,ClassDiagrams,etc.)

• Onceyou'veidentifiedanobject,yougeneralizeitasaClass• Arealinstanceofaclassiscalledan“object”oran“instance

ofaclass”.

OOP• ImportantfeatureswithOOPare:

– ClassesandObjects– Inheritance– Polymorphism– Encapsulation

• Java,Python,C++,VisualBasic.NETandC#arepopularOOPlanguagestoday.

• Simula wasthefirstobject-orientedprogramminglanguage.– Simulawasdevelopedinthe1960sbyKristenNygaardfromNorway

(UniversityofOslo).– SinceSimula-typeobjectsarereimplementedinC++,JavaandC#the

influenceofSimulaisoftenunderstated.ThecreatorofC++(1979),BjarneStroustrup(fromDenmark),hasacknowledgedthatSimulawasthegreatestinfluenceonhimtodevelopC++.

References• SoftwareDevelopment- APracticalApproach

Halvorsen,Hans-Petter,2015• EssentialsofSoftwareEngineering

FrankTsui;OrlandoKaram;BarbaraBernal,3ed.,Jones&BartlettLearning

• SoftwareEngineeringI.Sommerville,10ed.:Pearson,2015

• SoftwareEngineering.ModernApproachesE.J.Braude andM.E.Bernstein,2ed.:Wiley,2011.

Hans-PetterHalvorsen,M.Sc.

UniversityCollegeofSoutheastNorwaywww.usn.no

E-mail:[email protected]:http://home.hit.no/~hansha/