• 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

to David Kopec: Swift necessary?  RSS feed

 
Master Rancher
Posts: 2758
93
  • 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
Greenhorn
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: 2758
93
  • 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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!