Giter Club home page Giter Club logo

daily-scala's Introduction

Daily Scala

目的

Scalaっぽいコードが書けるようになろう。 毎日ちょっとずつScalaっぽいコードを勉強しよう。

何をするか

毎日集まってScalaのコードを

  1. 書く!
  2. 発表する!
  3. 読む!

注意事項

マサカリ投げない みんなで学ぶ

進め方

毎日30分。本業優先(一応) 1回で終わらないネタは1週間かけてまったりやる。 できるだけ毎日コードを書く時間を取る とにかく続けることが大事

Daily Scala 7つの大罪

  • var禁止 -> valを使う
  • mutable禁止 -> immutableのものを使う
  • while/forループ禁止 -> mapやforeachなどの高階関数を利用する。もしくは再帰で実装する
  • null禁止 -> 値が無いケースがある場合はOptionを使う
  • Option.get禁止 -> Option.mapもしくはOption.getOfElseを使う
  • return禁止 -> ブロックの最後の式の結果が、ブロックの結果として返却される
  • if禁止(※値を返す三項演算的なものはOK。collection/optionのAPIで代用できる場合の無駄なチェックは禁止)

※現実問題を解く場合には妥協点があるので実際のプロジェクトでは例外があります。


Daily Scala Summaryへ

daily-scala's People

Contributors

hajimeni avatar saito400 avatar shintaro-tamaki avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.