Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

to David Kopec: Swift necessary?  RSS feed

 
Master Rancher
Posts: 3080
108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

always interesting a book full of puzzles and problems. Problem: I don't have Swift but I do have Java and Scala. Is the Swift code in your book easily transferable to either of these?
 
author
Posts: 6
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the question.

The book is really geared for those who already know the basic syntax and semantics of Swift. I would not recommend it to those learning in other languages since it does talk about (and make use of) several Swift specific features (like protocol-oriented programming in Chapter 4 for instance), since there are great language specific books probably already out that you can find. We are working on porting the book to other languages. With all of that said, one intrepid reader did port the first five chapters to C++:
https://github.com/araya-andres/classic_computer_sci

Again, I would really not recommend the book to those who do not already know some Swift—so buy at your own risk if you don't know Swift. You can checkout two free sample chapters (Chapter 2 Search and Chapter 4 Graph Problems) on Manning's website and judge for yourself though:
https://www.manning.com/books/classic-computer-science-problems-in-swift
 
Piet Souris
Master Rancher
Posts: 3080
108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answer.

Although what I read in what you linked to (chapter 2, that is) seems straightforward to be translated to Java, I must confess never to have heard of protocol-oriented programming.  Makes me curious!
 
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!