• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Scala Puzzlers context

 
Ranch Hand
Posts: 378
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the book is complete related to language puzzles ?
or also has some math/logic involved ?

 
Author
Posts: 17
5
Scala
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi German

> the book is complete related to language puzzles ? or also has some math/logic involved ?

The book presents examples of "puzzlers" in Scala - it's not a collection of programming problems or coding challenges, if that's what you were thinking. The definition of a "puzzler" that we use is a piece of code that you think should behave one way, but that actually behaves quite differently, in an unexpected or counter-intuitive way.

For example, you might expect both of the following println statements to throw a NullPointerException. If you try the code, you may get a different result:



What we try to do in the book (and on the Scala Puzzlers site) is to collect such code examples, describe how they actually behave and explain why they do that. Understanding this is, we found, a fun way of challenging your own understanding of a language (Scala, in this case), and learning more about it.

One of Nermin's comments in a different thread contains a link to a sample chapter, in case you'd like to take a look!

Regards

ap
 
The harder I work, the luckier I get. -Sam Goldwyn So tiny. - this ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic