Top Banner
Hans-Petter Halvorsen, M.Sc. Programming Languages & Frameworks O. Widder. (2013). geek&poke. Available: http://geek-and-poke.com
35

Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Aug 30, 2018

Download

Documents

vanliem
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Hans-PetterHalvorsen,M.Sc.

ProgrammingLanguages

&Frameworks

O.W

idder.(2013).g

eek&

poke.A

vailable:http

://geek-and-poke.com

Page 2: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

RequirementsAnalysis

Design

Implementation

Testing

Maintenance

Planning

TheSoftwareDevelopment

Lifecycle

Implementation

Page 3: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

C/C++

C#

Python

VisualBasic

Java

Objective-C

PHP

Ruby

Perl

MATLAB LabVIEWSwift

Page 4: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

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

Page 5: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

PopularProgrammingLanguages

1JavaScript2Java3PHP4Python5C#5C++5Ruby8CSS9C10Objective-C

11Perl11Shell13R14Scala15Haskell16Matlab17Go17VisualBasic19Clojure19Groovy

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

Top20

Page 6: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

OOP• OOP– ObjectOrientedProgramming• Object-orientedprogramming(OOP)isaprogramminglanguagemodelorganizedaround"objects"ratherthan"actions"anddataratherthanlogic.

• ThefirststepinOOPistoidentifyalltheobjectsyouwanttomanipulateandhowtheyrelatetoeachother,anexerciseoftenknownasdatamodeling(UML,ClassDiagrams)

• Onceyou'veidentifiedanobject,yougeneralizeitasaClass

• Arealinstanceofaclassiscalledan“object”oran“instanceofaclass”.

Page 7: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

OOP• ImportantfeatureswithOOPare:– ClassesandObjects– Inheritance– Polymorphism– Encapsulation

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

• Simulawasthefirstobject-orientedprogramminglanguage.– Simulawasdevelopedinthe1960sbyKristenNygaardfromNorway(UniversityofOslo).

– SinceSimula-typeobjectsarereimplementedinC++,JavaandC#theinfluenceofSimulaisoftenunderstated.ThecreatorofC++(1979),BjarneStroustrup(fromDenmark),hasacknowledgedthatSimulawasthegreatestinfluenceonhimtodevelopC++.

Page 8: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual
Page 9: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

ProgrammingLanguages&Frameworks

Page 10: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

ProgrammingLanguages• C,C++• Java• C#• Objective-C• Swift• VisualBasic,VB.NET• Perl• Python• PHP• JavaScript• …

• MATLAB• LabVIEW• …

Page 11: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

IntegratedDevelopmentEnvironment(IDE)

• ProgrammmingLanguagesvs.IDE• OneIDEcanhandlemultipleLanguages

• C#• Java• Objective-C/Swift• LabVIEW

• VisualStudio• Eclipse• Xcode• LabVIEW

Page 12: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

http://www.youtube.com/watch?v=8Px-GHPxB4I

.NETvs.Java

Java

http://www.youtube.com/watch?feature=endscreen&NR=1&v=HXvm76e2X1Q

Page 13: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Hans-PetterHalvorsen,M.Sc.

ProgrammingLanguages

Page 14: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

IDE

VB.NET

C#C

F#

C++

JavaScript

J#

TheVisualStudioIDEisactuallywritteniC++/C#

Page 15: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

C• Cisageneral-purposecomputerprogramminglanguagedevelopedbetween1969and1973byDennisRitchieattheBellTelephoneLaboratoriesforusewiththeUnixoperatingsystem.

• CisoneofthemostpopularprogramminglanguagesofalltimeandthereareveryfewcomputerarchitecturesforwhichaCcompilerdoesnotexist.

• Chasgreatlyinfluencedmanyotherpopularprogramminglanguages,mostnotablyC++,whichbeganasanextensiontoC.

• Cisaprocedurallanguage,i.e.noobject-orientedprogramming.Cisacompiledlanguage.

Page 16: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

C++• C++isacompiled,general-purposeobject-orientedprogramminglanguage.Itisregardedasanintermediate-levellanguage,asitcomprisesacombinationofbothhigh-levelandlow-levellanguagefeatures.

• ItwasdevelopedbyBjarneStroustrupin1979asanextensiontoC.

• C++isoneofthemostpopularprogramminglanguagesanditsapplicationdomainsincludesystemssoftware(suchasMicrosoftWindows),applicationsoftware,devicedrivers,embeddedsoftware,high-performanceserverandclientapplications,andentertainmentsoftwaresuchasvideogames.

• SeveralgroupsprovidebothfreeandproprietaryC++compilersoftware.

Page 17: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

C++

http://www.digi.no/932591/c-oppfinneren-tildelt-norsk-it-pris

Page 18: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

C#

• C#ispronounced“seesharp”.• C#isanobject-orientedprogramminglanguageandpartofthe.NETfamilyfrom

Microsoft.• ThemostrecentversionisC#4.5.1anditispartofVisualStudio2013.• C#isintendedtobeasimple,modern,general-purpose,object-oriented

programminglanguage.ItsdevelopmentteamisledbyAndersHejlsberg.• C#isverysimilartoC++andJava.C#isdevelopedbyMicrosoftandworksonlyon

theWindowsplatform.• C#isbasedonthe.NETFramework(pronounced“dotnet”).• .NETisasoftwareframeworkthatrunsprimarilyonMicrosoftWindows.The

.NETFramework1.0andC#1.0wasreleasedin2002aspartofVisualStudio.NET2002.

• VisualStudioistheIntegratedDevelopmentEnvironment(IDE)youusewhenprogramminginC#andthe.NETplatform.

Page 19: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Objective-C• Objective-Cisageneral-purpose,high-level,object-orientedprogramminglanguagethatisbasedontheCprogramminglanguage.

• ItisthemainprogramminglanguageusedbyApplefortheOSXandiOSandtheirrespectiveAPIs,CocoaandCocoaTouch.ApplehavereleasedanewProgramminglanguagecalledSwiftthatisthenewrecommendedlanguageforiOS/OSXDevelopment

• Originallydevelopedintheearly1980s,itwasselectedasthemainlanguageusedbyNeXTforitsNeXTSTEPoperatingsystem,fromwhichOSXandiOSarederived.

Swift

Page 20: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Java• Javaiscurrentlyoneofthemostpopular

programminglanguagesinuse,andiswidelyusedfromapplicationsoftwaretowebapplications.

• JavaapplicationsaretypicallycompiledanditrunsonanyJavaVirtualMachine(JVM)regardlessofthecomputerarchitecture.

• Javaisageneral-purposeobject-oriented.Itisintendedtoletapplicationdevelopers“writeonce,runanywhere”.

• AcommonIDEforprogrammingwithJavaistheEclipseIDE.

• JavaandEclipseareusedtocreateAndroidApps.

Page 21: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

PHP• PHPisaserver-sidescriptinglanguagedesignedforwebdevelopmentbutalsousedasageneral-purposeprogramminglanguage.

• PHPcodeisembeddedintotheHTMLsourcedocumentandinterpretedbyawebserverwhichgeneratesthewebpagedocument.

• PHPisnowinstalledonmorethan244millionwebsitesand2.1millionwebservers,e.g.,Facebook.com

• PHPcanbedeployedonmostwebserversandasastandaloneinterpreter,onalmosteveryoperatingsystemandplatformfreeofcharge.

Page 22: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

http://www.digi.no/for_utviklere/2015/06/13/feiret-20-ar-med-php-basert-webutvikling

Page 23: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Hans-PetterHalvorsen,M.Sc.

Frameworks

Page 24: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Softwareframeworksincludesupportprograms,compilers,codelibraries,toolsets,andapplicationprogramminginterfaces(APIs)

Programming/SoftwareFramework

ProgrammingLanguage

APIs

Libraries

Tools

Framework• FrameworksmakesiteasiertocreateSoftware

• YoucancreateyousoftwareusingexistingFrameworks

• Ifyouarecreatinglargesoftwaresystems,youshouldinadditioncreateyourownFrameworks(codereuse,moremodular,etc.)

Page 25: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Programming/SoftwareFramework

• .NETFramework• ASP.NET (partof.NET)– usedforWebDevelopment

• ASP.NETAJAX• RubyonRails(WebApplicationFrameworkfortheRubyProgrammingLanguage)

• CocoaFramework(MacOSX,iOS)• ...• ...hundreds

Page 26: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

.NETFramework

• AProgrammingFrameworkfromMicrosoft

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

• Released2002

Page 27: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

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

frameworkthatrunsprimarilyonMicrosoftWindows.• Itincludesalargelibraryandsupportsseveralprogramming

languageswhichallowlanguageinteroperability(eachlanguagecanusecodewritteninotherlanguages).

• The.NETlibraryisavailabletoalltheprogramminglanguagesthat.NETsupports.

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

• TheclasslibraryandtheCLRtogetherconstitutethe.NETFramework.

• Thelatestversionof.NETFrameworkis.NETFramework4.5.1(includedwithVisualStudio2015)

Page 28: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

.NETFramew

ork

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

Page 29: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

ASP.NET• ASP.NETisaserver-sideWebapplicationframeworkdesignedforWebdevelopmenttoproducedynamicWebpages.

• ItwasdevelopedbyMicrosofttoallowprogrammerstobuilddynamicwebsites,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

Page 30: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

WebServer

ASP.NET

C#/VB.NET

.NETFramework

WebBrowser

HTML JavaScript

Server-side

Client

ASP.NET

CSS

Theserver-sideASP.NETpagesareconvertedontheservertoHTMLpagesbeforeitissenttotheclient

ASP.NETisusedtocreatedynamicwebpages

Page 31: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

WebSites

ASP.NET

C#/VB.NET

.NETFramework

ASP.NETWebPages

ASP.NETWebForms

ASP.NETMVC

ASP.NET– DifferentwaysofcreatingWebSiteswithASP.NET

http://www.asp.net

Youcanuse(atleast)3differentapproacheswhencreatingWebSiteswithASP.NET

Page 32: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Exercise– Programming

• ListtheProgramminglangaugesandframeworksyouhavebeenusing

• Whathaveyouusedthemfor?

Page 33: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Summary

33

Page 34: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

References• Wikipedia.(2013)..NETFramework.Available:

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

http://en.wikipedia.org/wiki/ASP.NET• I.Sommerville,SoftwareEngineering:Pearson,2010.• S.Adams.Dilbert.Available:http://dilbert.com• O.Widder.(2013).geek&poke.Available:http://geek-and-

poke.com• B.Lund.(2013).Lunch.Available:http://www.lunchstriper.no,

http://www.dagbladet.no/tegneserie/lunch/

Page 35: Programming Languages and Frameworks Overview · • Visual Studio is the Integrated Development Environment ... Programming language called Swift that is the ... (included with Visual

Hans-PetterHalvorsen,M.Sc.

UniversityCollegeofSoutheastNorwaywww.usn.no

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