SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
OBJECTIVE C
TO
SWIFT
Objective-C was created at the Stepstone
company in the early 1980s by Brad Cox and
Tom Love
“
”
35 years old
Never Ending Pride…..
Best Programming Language
That Turns to Trend…..
“Change is the law of life”
– John F. Kennedy
That Left Everything Behind……….
Huge surprise at WWDC 2014
An announced made by Apple
for change in programming
language for iOS and OS X
“
”
Change Ahead………
New programming language
Quality is much better than
quantity. One home run is
much better than two doubles
“
”
For iOS and OSX.........
Swift- For Beinginners
Shift to SWIFT – The need for something new
Why Apple chose to adopt swift as new change?
Shift to SWIFT for better results………….
Advantages of swift over Objective C
EASIER TO READ
Objective C
Introduced new keywords
using the @ symbol
Follow legacy conventions
Ugly duckling used
Swift
It isn’t built on C, it can unify
all the keywords and remove
the numerous @ symbols
Drops legacy conventions
Readability makes it easier
Objective C Swift
EASIER TO MAINTAIN
Maintain two code files
requirement
Manually synchronize method
between files, but this isn’t
guaranteed unless the team has
rules and code reviews in place.
Drops the two-file
requirement
Programmers do less
bookkeeping and can spend
more time creating app
logic
Objective C Swift
SAFER
Pointers interesting aspect –
particularly nil (null) pointers
Swift code generate a
compiler error
-Write bad code creating a
short feedback loop
-Allowing the person to fix
the problem
Objective C Swift
MEMORY MANAGEMENT
ARC is supported within the
Cocoa APIs and object-
oriented code, It is not
available, for procedural
C code and APIs like Core
Graphics
Low Performance in different
case
Support for Automatic
Reference Counting is
complete across the procedural
and object-oriented code paths
Automatic and high-
performance memory
management
Objective C Swift
ERASE TO CODE
Requires many steps to
combine two pieces of
information i.e. in String
Missing in Objective-C
Reduces the amount of
code that is required for
repetitive statements and
string manipulation
Adopts modern programming
language features like adding
two strings together with a “+”
operator
Objective C Swift
Memorize special string tokens
(%s, %d, %@)
Objective C is established
Supports string interpolation,
which eliminates the need to
memorize tokens
SWIFT language that is
available today isn’t the
finished product
CONT….
Similarities between Swift and Objective C
- There is interoperability between Swift and Objective C and
both can be mixed and matched in the same app
- You can have typed collections on account of the
introduction of Generics
- Dynamic evaluation in the development environment, in real
time
- Default Parameter Values
- Difference between struct and class
- Type Inference
ABOUT Us
We are ChromeInfo Technologies, a Mobile App
Development, Web Development and Software
Testing company with development center in India.
Mobile Application Development
Android Application Development
iPhone Application Development
iPad Application Development
Web Development
Software Testing
OUR OFFERING
Follow Us
THANK YOU

Weitere ähnliche Inhalte

Was ist angesagt?

The D Programming Language - Why I love it!
The D Programming Language - Why I love it!The D Programming Language - Why I love it!
The D Programming Language - Why I love it!
ryutenchi
 
Dynamic languages for .NET CLR
Dynamic languages for .NET CLRDynamic languages for .NET CLR
Dynamic languages for .NET CLR
py_sunil
 
Categories for the Working C++ Programmer
Categories for the Working C++ ProgrammerCategories for the Working C++ Programmer
Categories for the Working C++ Programmer
Platonov Sergey
 
Exploring C# DSLs: LINQ, Fluent Interfaces and Expression Trees
Exploring C# DSLs: LINQ, Fluent Interfaces and Expression TreesExploring C# DSLs: LINQ, Fluent Interfaces and Expression Trees
Exploring C# DSLs: LINQ, Fluent Interfaces and Expression Trees
rasmuskl
 

Was ist angesagt? (20)

Getting Swifty in an Objective-C World
Getting Swifty in an Objective-C WorldGetting Swifty in an Objective-C World
Getting Swifty in an Objective-C World
 
Unit iv
Unit ivUnit iv
Unit iv
 
Thinking in Functions
Thinking in FunctionsThinking in Functions
Thinking in Functions
 
D programming language
D programming languageD programming language
D programming language
 
Object oriented programming 7 first steps in oop using c++
Object oriented programming 7 first steps in oop using  c++Object oriented programming 7 first steps in oop using  c++
Object oriented programming 7 first steps in oop using c++
 
The D Programming Language - Why I love it!
The D Programming Language - Why I love it!The D Programming Language - Why I love it!
The D Programming Language - Why I love it!
 
Dynamic languages for .NET CLR
Dynamic languages for .NET CLRDynamic languages for .NET CLR
Dynamic languages for .NET CLR
 
iOS for Android Developers (with Swift)
iOS for Android Developers (with Swift)iOS for Android Developers (with Swift)
iOS for Android Developers (with Swift)
 
Extensible Operators and Literals for JavaScript
Extensible Operators and Literals for JavaScriptExtensible Operators and Literals for JavaScript
Extensible Operators and Literals for JavaScript
 
Value objects in JS - an ES7 work in progress
Value objects in JS - an ES7 work in progressValue objects in JS - an ES7 work in progress
Value objects in JS - an ES7 work in progress
 
Value Objects, Full Throttle (to be updated for spring TC39 meetings)
Value Objects, Full Throttle (to be updated for spring TC39 meetings)Value Objects, Full Throttle (to be updated for spring TC39 meetings)
Value Objects, Full Throttle (to be updated for spring TC39 meetings)
 
Dynamic in C# 4.0
Dynamic in C# 4.0Dynamic in C# 4.0
Dynamic in C# 4.0
 
Learn C# Programming Polymorphism & Operator Overloading
Learn C# Programming Polymorphism & Operator OverloadingLearn C# Programming Polymorphism & Operator Overloading
Learn C# Programming Polymorphism & Operator Overloading
 
At Last an OCL Debugger
At Last an OCL DebuggerAt Last an OCL Debugger
At Last an OCL Debugger
 
Categories for the Working C++ Programmer
Categories for the Working C++ ProgrammerCategories for the Working C++ Programmer
Categories for the Working C++ Programmer
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Serving models from AWS Lambda
Serving models from AWS LambdaServing models from AWS Lambda
Serving models from AWS Lambda
 
Debugging and Profiling C++ Template Metaprograms
Debugging and Profiling C++ Template MetaprogramsDebugging and Profiling C++ Template Metaprograms
Debugging and Profiling C++ Template Metaprograms
 
Codemotion 2015 - Akka voló sobre el nido del future
Codemotion 2015 - Akka voló sobre el nido del futureCodemotion 2015 - Akka voló sobre el nido del future
Codemotion 2015 - Akka voló sobre el nido del future
 
Exploring C# DSLs: LINQ, Fluent Interfaces and Expression Trees
Exploring C# DSLs: LINQ, Fluent Interfaces and Expression TreesExploring C# DSLs: LINQ, Fluent Interfaces and Expression Trees
Exploring C# DSLs: LINQ, Fluent Interfaces and Expression Trees
 

Ähnlich wie A Journey From Objective C to Swift - Chromeinfotech

Summer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptxSummer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptx
shokeenk14
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
Tuan Ngo
 
Migrating From Cpp To C Sharp
Migrating From Cpp To C SharpMigrating From Cpp To C Sharp
Migrating From Cpp To C Sharp
Ganesh Samarthyam
 

Ähnlich wie A Journey From Objective C to Swift - Chromeinfotech (20)

Event Driven Programming in C#.docx
Event Driven Programming in C#.docxEvent Driven Programming in C#.docx
Event Driven Programming in C#.docx
 
Swift programming language
Swift programming languageSwift programming language
Swift programming language
 
Programming with c#
Programming with c#Programming with c#
Programming with c#
 
Programming in c#
Programming in c#Programming in c#
Programming in c#
 
21UCAC61 C# and .Net Programming.pdf(MTNC)(BCA)
21UCAC61 C# and .Net Programming.pdf(MTNC)(BCA)21UCAC61 C# and .Net Programming.pdf(MTNC)(BCA)
21UCAC61 C# and .Net Programming.pdf(MTNC)(BCA)
 
Presentation1
Presentation1Presentation1
Presentation1
 
What is unique in Objective C?
What is unique in Objective C?What is unique in Objective C?
What is unique in Objective C?
 
Summer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptxSummer training PPT Manasv Singharia.pptx
Summer training PPT Manasv Singharia.pptx
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 
Swift language seminar topic
Swift language seminar topicSwift language seminar topic
Swift language seminar topic
 
C# programming language
C# programming languageC# programming language
C# programming language
 
C# handout.docx
C# handout.docxC# handout.docx
C# handout.docx
 
Part 1
Part 1Part 1
Part 1
 
programming in c#.ppt
programming in c#.pptprogramming in c#.ppt
programming in c#.ppt
 
C#
C#C#
C#
 
Lecture01-Introduction-to-C-programming-converted (4).pptx
Lecture01-Introduction-to-C-programming-converted (4).pptxLecture01-Introduction-to-C-programming-converted (4).pptx
Lecture01-Introduction-to-C-programming-converted (4).pptx
 
C sharp chap1
C sharp chap1C sharp chap1
C sharp chap1
 
1 get started with c#
1   get started with c#1   get started with c#
1 get started with c#
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
 
Migrating From Cpp To C Sharp
Migrating From Cpp To C SharpMigrating From Cpp To C Sharp
Migrating From Cpp To C Sharp
 

Mehr von ChromeInfo Technologies

Mehr von ChromeInfo Technologies (20)

The Ultimate Guide To Mvp Development Company Cost | Chromeinfotech
The Ultimate Guide To Mvp Development Company Cost | ChromeinfotechThe Ultimate Guide To Mvp Development Company Cost | Chromeinfotech
The Ultimate Guide To Mvp Development Company Cost | Chromeinfotech
 
Top 5 Ways to do Mobile App Market Research
Top 5 Ways to do Mobile App Market ResearchTop 5 Ways to do Mobile App Market Research
Top 5 Ways to do Mobile App Market Research
 
Follow the 9 Essential Steps to Create a Hit Mobile App
Follow the 9 Essential Steps to Create a Hit Mobile AppFollow the 9 Essential Steps to Create a Hit Mobile App
Follow the 9 Essential Steps to Create a Hit Mobile App
 
2018 App Segments for IoT to Invest
2018 App Segments for IoT to Invest2018 App Segments for IoT to Invest
2018 App Segments for IoT to Invest
 
COST REQUIRED TO DEVELOP AN APP
COST REQUIRED TO DEVELOP AN APPCOST REQUIRED TO DEVELOP AN APP
COST REQUIRED TO DEVELOP AN APP
 
iOS 11 is Here
iOS 11 is HereiOS 11 is Here
iOS 11 is Here
 
SEO for Mobile Apps
SEO for Mobile AppsSEO for Mobile Apps
SEO for Mobile Apps
 
Native Apps vs. Web Apps – What Is the Better Choice?
Native Apps vs. Web Apps – What Is the Better Choice?Native Apps vs. Web Apps – What Is the Better Choice?
Native Apps vs. Web Apps – What Is the Better Choice?
 
Chat and messaging apps
Chat and messaging appsChat and messaging apps
Chat and messaging apps
 
So, How Do You Make Agile Successful?
So, How Do You Make Agile Successful? So, How Do You Make Agile Successful?
So, How Do You Make Agile Successful?
 
How Can Businesses Benefit from Web 2.0?
How Can Businesses Benefit from Web 2.0? How Can Businesses Benefit from Web 2.0?
How Can Businesses Benefit from Web 2.0?
 
Importance of Enterprise Mobility Solution in Healthcare
Importance of Enterprise Mobility Solution in HealthcareImportance of Enterprise Mobility Solution in Healthcare
Importance of Enterprise Mobility Solution in Healthcare
 
Web Application Development Tools for Creating Perfect User Experience
Web Application Development Tools for Creating Perfect User ExperienceWeb Application Development Tools for Creating Perfect User Experience
Web Application Development Tools for Creating Perfect User Experience
 
Take Your Mobile App Marketing to Its “Next Level”
Take Your Mobile App Marketing to Its “Next Level”Take Your Mobile App Marketing to Its “Next Level”
Take Your Mobile App Marketing to Its “Next Level”
 
For Business Success, Choose Cross Platform App Development
For Business Success, Choose Cross Platform App DevelopmentFor Business Success, Choose Cross Platform App Development
For Business Success, Choose Cross Platform App Development
 
The Business Benefits of Apple Powered Swift App Development
The Business Benefits of Apple Powered Swift App DevelopmentThe Business Benefits of Apple Powered Swift App Development
The Business Benefits of Apple Powered Swift App Development
 
Facts About The Future Of Enterprise Mobile Apps You Need To Know
Facts About The Future Of Enterprise Mobile Apps You Need To KnowFacts About The Future Of Enterprise Mobile Apps You Need To Know
Facts About The Future Of Enterprise Mobile Apps You Need To Know
 
Native Application Development Company
Native Application Development CompanyNative Application Development Company
Native Application Development Company
 
Google I/O 2016: What to expect from Android N to virtual reality?
Google I/O 2016: What to expect from Android N to virtual reality?Google I/O 2016: What to expect from Android N to virtual reality?
Google I/O 2016: What to expect from Android N to virtual reality?
 
ChromeInfotech - Corporate Profile
ChromeInfotech - Corporate ProfileChromeInfotech - Corporate Profile
ChromeInfotech - Corporate Profile
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

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
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 

A Journey From Objective C to Swift - Chromeinfotech

  • 2. Objective-C was created at the Stepstone company in the early 1980s by Brad Cox and Tom Love “ ”
  • 3. 35 years old Never Ending Pride…..
  • 4. Best Programming Language That Turns to Trend…..
  • 5. “Change is the law of life” – John F. Kennedy
  • 6. That Left Everything Behind………. Huge surprise at WWDC 2014
  • 7. An announced made by Apple for change in programming language for iOS and OS X “ ”
  • 9. Quality is much better than quantity. One home run is much better than two doubles “ ”
  • 10. For iOS and OSX......... Swift- For Beinginners
  • 11. Shift to SWIFT – The need for something new Why Apple chose to adopt swift as new change?
  • 12. Shift to SWIFT for better results…………. Advantages of swift over Objective C
  • 13. EASIER TO READ Objective C Introduced new keywords using the @ symbol Follow legacy conventions Ugly duckling used Swift It isn’t built on C, it can unify all the keywords and remove the numerous @ symbols Drops legacy conventions Readability makes it easier
  • 14. Objective C Swift EASIER TO MAINTAIN Maintain two code files requirement Manually synchronize method between files, but this isn’t guaranteed unless the team has rules and code reviews in place. Drops the two-file requirement Programmers do less bookkeeping and can spend more time creating app logic
  • 15. Objective C Swift SAFER Pointers interesting aspect – particularly nil (null) pointers Swift code generate a compiler error -Write bad code creating a short feedback loop -Allowing the person to fix the problem
  • 16. Objective C Swift MEMORY MANAGEMENT ARC is supported within the Cocoa APIs and object- oriented code, It is not available, for procedural C code and APIs like Core Graphics Low Performance in different case Support for Automatic Reference Counting is complete across the procedural and object-oriented code paths Automatic and high- performance memory management
  • 17. Objective C Swift ERASE TO CODE Requires many steps to combine two pieces of information i.e. in String Missing in Objective-C Reduces the amount of code that is required for repetitive statements and string manipulation Adopts modern programming language features like adding two strings together with a “+” operator
  • 18. Objective C Swift Memorize special string tokens (%s, %d, %@) Objective C is established Supports string interpolation, which eliminates the need to memorize tokens SWIFT language that is available today isn’t the finished product CONT….
  • 19. Similarities between Swift and Objective C
  • 20. - There is interoperability between Swift and Objective C and both can be mixed and matched in the same app - You can have typed collections on account of the introduction of Generics - Dynamic evaluation in the development environment, in real time - Default Parameter Values - Difference between struct and class - Type Inference
  • 21. ABOUT Us We are ChromeInfo Technologies, a Mobile App Development, Web Development and Software Testing company with development center in India. Mobile Application Development Android Application Development iPhone Application Development iPad Application Development Web Development Software Testing OUR OFFERING