You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
若干遅いですが、あけましておめでとうございます。 今年もこっそり! 昨年からcoffee-scriptが流行り出しましたね! coffee-scriptってもう現場でも使われ始めてるのかな? Railsな人たちは使ってるんだろうけど、JavaScriptでアプリ書いちゃうようなゴリゴリ書いてるところでも採用してたりするのかしら。 個人的には素のJSの方が小回りが利くので好きなのですが、誰が書いても出力されるJSの文法を揃えられるところはいいですね。 いや待てよ、よくよく考えてみれば、JavaScriptトランスレータな形でフレームワークの機能を提供するのはありかも。 人によってコールバックだったりイベントドリブンだったり、書き方が異なるとコードレビューも大変ですしそういうのを言語側で吸収するのはよさそう。ってか同じこと考えてる人結構いるんじゃね? これはもう、2012年は間違いなくオレオレ
サンプルコードなどは本家のリファレンスのものを引用しつつ、勝手&適当に翻訳しています。 間違いなどあればコメント欄などでご指摘下さい。 CoffeeScriptのバージョンが1.0.1の時のものです。 行末のセミコロン ; は不要。ただし1行に複数の式を書くときは ; で区切る。 関数に引数を渡す括弧 (...) は不要。 print "coffee" のように関数を呼べる。ただし引数が無い場合は空の括弧 ( ) が必要。 関数やif文、switch文、try/catch文などでブロックを中括弧 {...} で囲む代わりに、Pythonのようにインデントを揃えることでブロックを表現する。なのでインデントは超重要。
プロローグ 第2次スーパーロボット大戦OGが発売延期になりました。せっかく、アニメ版OG2で盛り上がっていたところなのに実に残念です。 もっと残念なことは、たとえ発売されたとしても第2次OGは、プレイステーション3用であるということです。もうあの懐かしいゲームボーイアドバンスでOGシリーズが発売されることはありません。アドバンス後継であるDSや3DSで発売されることも無いでしょう。 もう私たちは、ソルプレッサに阻まれ、1回の敵フェイズにリセットを10回繰り返すことは無いのでしょうか? もう私たちは、フェアリオンを1体ずつ動かして、うっかりゴールドの方を撃墜してしまうことは無いのでしょうか? もう私たちは、最強武器M950マシンガンを使うことは無いのでしょうか? もう私たちは、究極!ゲシュペンストキックの連続攻撃で敵を4体蹴り抜くことは無いのでしょうか? こうなったら自分で作るしかありません
って、日本のギークならそういうんだろうなー みなさんCoffeeScript使ってますか?ちょっとjsわかる人ならすぐ覚えられて、文法が平易で、かつRubyやPythonぽく拡張されてるので非常にストレスが少ないです しかも、元のJSの特性をほとんど妨げないようになってるので、jsでできてcoffeeでできないことはほとんどない。(まったくない、かはちゃんと確かめてませんが… ないと思います) 雰囲気、インデントブロックのRuby記法のような印象。 というわけで元ネタは 10 CoffeeScript One Liners to Impress Your Friends | ricardo.cc です CoffeeScriptインストール済なら、$ coffee -i、もしくは $ coffee で対話インタプリタ起動します 1. リストに含まれるアイテムを2倍に coffeescript
JS2Coffee The JavaScript to CoffeeScript compiler. Source $ npm install js2coffee $ js2coffee input.js > output.js
みんなのIoT/みんなのPythonの著者。二子玉近く160平米の庭付き一戸建てに嫁/息子/娘/わんこと暮らしてます。月間1000万PV/150万UUのWebサービス運営中。 免責事項 プライバシーポリシー JavaScriptを生成するための簡易言語Coffee Scriptのワンライナー集を発見:-)。 Coffee ScriptはPythonのようにインデントでブロックを表記したり,Rubyのように[x...y]で範囲表記したり,多言語のよいところをとりつつ,簡潔に処理を掛けるということで注目が集まっています。 元エントリにあるのをいくつか紹介します。 リストにある各数値を二倍したリストを得る Pythonのリスト内包表記に似てる。「[1..10].map (i) -> i*2」みたいにも書ける。 i * 2 for i in [1..10] リストにある各数値の合計を得る [1..
Jeremy Ashkenas氏がRuby/Pythonライクな文法でJavaScriptを記述する、興味深い試みをおこなっている。同氏が開発した「CoffeeScript」と呼ばれる簡易言語は、"a little language that compiles into JavaScript"の名のとおり、コンパイルするとJavaScriptコードを出力するというものだ。Ruby製のコンパイラが用意されており、デベロッパはCoffeeScriptで書かれたファイルをコンパイラに通すことでJavaScriptコードを得られる。 CoffeeScriptで記述されたソースをコンパイルした結果。左側にCoffeeScript、右側にコンパイル後のJavaScriptが表示されている - Mini Overviewより引用 現在のバージョンは1月10日(米国時間)にリリースされた0.2.3で、Th
どうも、LesCochons最年少メンバーのryogです。 最近自分の中から若さを感じなくなってきたので、ちょっと年齢を強調してみました。 LesCochonsでは「活動内容のまとめ」以外にも、情報を発信していきたいと思っています。 話し合いの末、週に1回はメンバーの誰かが日記を書いていく事が決まりました。 その記念すべき第1回はMr_K_Oが書いたこの記事です。 『エリック・エバンスのドメイン駆動設計』読書メモー序文から第1章 - ぶたのわるつ 私は技術が好きなので、技術の紹介を中心に日記を書くことにしました。 今回紹介するのは『CoffeeScript』です。 ではでは、早速この素敵な言語を紹介していきましょう! CoffeeScriptとは CoffeeScript is a little language that compiles into JavaScript. http://
2011/05/08 JavaScriptの生みの親、将来を語る 今もっともコーディングされているプログラミング言語はCでもなくJavaでもなく、JavaScriptである。JavaScriptの生みの親ともいえるブレンダン・アイク氏がJSConfの短い公演でその将来について語ったそうだ[slashdot]。彼の講演はCoffeeScriptの作者であるJeremy Ashkenasの「JS/NextとしてのCoffeScript」の土壇場で行われたそうだ。彼は、ECMA TC39によるJavaScriptの標準化に懸念を持っており、ECMAScript4での失敗を繰り返さないためにも、一般のJavaScriptプログラマにもっと関与して欲しいと思っているそうだ。開発者もブラウザに合わせて考えるよりも、CoffeeScriptを使う事で、どういった言語の機能を必要としているかを伝えることが
えんじに🐈にゃーん🍓🫐🍅🌽🍈🍇🦝 @uupaa CoffeeScriptやる人に一言。jsはシングルスレッドだけど匿名関数でラップすると関数の出口でスレッドコンテキストする可能性あるから、並列処理にスレッドもってかれないように気をつけて。最近某アレで「朝までにページ表示が不安定なのを直して」と泣き付かれた奴はまさにそれだったよ えんじに🐈にゃーん🍓🫐🍅🌽🍈🍇🦝 @uupaa CoffeeScriptはうっかり匿名関数でラップするから、「タイミングに依存する作りで、状態遷移をしっかりせず、手抜きしてると先にxhrが終わってしまい、そこで処理もってかれて、準備できてないのにページ表示処理が走って、全体が不安定になる」って奴だった
久しぶりに素数シリーズをやりたくなる言語に出会いました。 CoffeeScript http://jashkenas.github.com/coffee-script/ PythonとRubyとScalaとmlが混ざったような言語でプログラミングして、それをJavascriptにコンパイルします。 なんだJavascriptならかなり高級言語だし自分で書けるじゃん、と思った方はこちらをご覧あれ。 Array::fold = (f, init)-> c = init for e in this c = f(e, c) c if Array::reduce is undefined Array::reduce = (f) -> @[1..].fold(f, @[0]) sum = (a)-> a.reduce (e, c) -> e + c alert sum([1..20]) #...sho
☕ CoffeeScript CoffeeScript is a little language that compiles into JavaScript. Think of it as JavaScript's less ostentatious kid brother — the same genes, roughly the same height, but a different sense of style. Apart from a handful of bonus goodies, statements in CoffeeScript correspond one-to-one with their equivalent in JavaScript, it's just another way of saying it. Disclaimer: CoffeeScript i
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く