sneaking scala through the back door

41
Sneaking Scala through the Back Door Dianne Marsh CodeMash 2014

Upload: dianne-marsh

Post on 11-May-2015

602 views

Category:

Education


2 download

DESCRIPTION

Presented at CodeMash 2014. Not everyone works for a company like Netflix -- a company where developers can bring in new technologies and languages through the front door via Freedom and Responsibility. This presentation is an update from my OSCON presentation, reflecting some additional thoughts

TRANSCRIPT

Page 1: Sneaking Scala through the Back Door

Sneaking Scala through

the Back Door

Dianne MarshCodeMash 2014

Page 2: Sneaking Scala through the Back Door

Try the Front Door

Page 3: Sneaking Scala through the Back Door
Page 4: Sneaking Scala through the Back Door

Know the “Why”

DO

Page 5: Sneaking Scala through the Back Door

Be specific: team, application, biggest concerns

DO

Page 6: Sneaking Scala through the Back Door

Present from audience’s point of

view

DO

Page 7: Sneaking Scala through the Back Door

Use buzzwords

DON’T

Page 8: Sneaking Scala through the Back Door

Emphasize high value points

DO

Page 9: Sneaking Scala through the Back Door

Represent success stories

DO

Page 10: Sneaking Scala through the Back Door

Typesafe Customers

Page 11: Sneaking Scala through the Back Door

Edda

Records AWS History

Open SourceScala

Freedom & Responsibility

Page 12: Sneaking Scala through the Back Door

Killer Apps

•Play for web (Scala and Java)

•Akka for concurrency

•Object-oriented + mathematical modeling = good fit for Scala

Page 13: Sneaking Scala through the Back Door

Domains•Business Intelligence

•Social apps

•Border security

•eCommerce

•Anti-spam

•Advertising

Page 14: Sneaking Scala through the Back Door

Companies say ...•Rapid development and

productivity

•Asynchronous stateless scalabilty

•Massive configurability for peak load

•Reduces time to market

•DSL reduces load on devs

Page 15: Sneaking Scala through the Back Door

Anticipate objections

DO

Page 16: Sneaking Scala through the Back Door

About Hiring …•“Easy to find very good Java

engineers and excite them with new technologies”

•“Look for smart, energetic engineers eager to learn”

•“No prior knowledge of Java, productive 2-3 weeks into project”

•“Quickly productive with Scala”

•“Reduces time to market”

Page 17: Sneaking Scala through the Back Door
Page 18: Sneaking Scala through the Back Door

Use Scala for new development

DO

Page 19: Sneaking Scala through the Back Door

Leverage existing Java code

DO

Page 20: Sneaking Scala through the Back Door

Convert all legacy code immediately*

*(maybe never)

DON’T

Page 21: Sneaking Scala through the Back Door

Use Scala as a Better Java

DO

Page 22: Sneaking Scala through the Back Door

Use Scala for non-production code

DO

Page 23: Sneaking Scala through the Back Door

Refer to code written before 2.9

DON’T

Page 24: Sneaking Scala through the Back Door

Make your code too terse

DON’T

Page 25: Sneaking Scala through the Back Door

val nums = 3 until 1000

val somenums = nums filter (x => (x % 3 == 0 || x % 5 ==0))

(0/:somenums)(_+_)

DON’T

Page 26: Sneaking Scala through the Back Door

“When your Scala looks like unhappy emoticons, you’ve

gone too far.” -- Jason Swartz, Netflix

Page 27: Sneaking Scala through the Back Door

Discuss developer productivity

DO

Page 28: Sneaking Scala through the Back Door

Draw from team’s experience

DO

Page 29: Sneaking Scala through the Back Door

Use Scala to attract candidates

DO

Page 30: Sneaking Scala through the Back Door

Try ScalaTest

DO

Page 31: Sneaking Scala through the Back Door

Stress about functional perfection

DON’T

Page 32: Sneaking Scala through the Back Door

Try Typesafe Activator

DO

Page 33: Sneaking Scala through the Back Door

Start with Scalaz

DON’T

Page 34: Sneaking Scala through the Back Door

Learn about parallel collections

DO

Page 35: Sneaking Scala through the Back Door

Leverage TypeSafe’s support

DO

Page 36: Sneaking Scala through the Back Door

Be a language zealot

DON’T

Page 37: Sneaking Scala through the Back Door

Know when to fold

DO

Page 38: Sneaking Scala through the Back Door

Ease into functional with

Guava

MAYBE

Page 39: Sneaking Scala through the Back Door

Get feedback from others

DO

Page 40: Sneaking Scala through the Back Door

Contact Info

@dmarsh

[email protected]

(We are hiring)

Page 41: Sneaking Scala through the Back Door

Additional References

• Making a persuasive argument: http://sixminutes.dlugan.com/logos-examples-speaking/

• Atomic Scala at http://atomicscala.com

• Learn Scala with the Koans at http://scalakoans.org

• Integrate testing with Scalatest: http://www.scalatest.org/

• Case studies: http://typesafe.com/company/casestudies

• Futures and promises in 2.10: https://speakerdeck.com/heathermiller/futures-and-promises-in-scala-2-dot-10