Background While developing an interactive B2B marketplace platform, it became apparent that writing a scalable order-writing backend would need the capacity to do highly concurrent database reads and writes based on the volume of our customer’s requests. We needed it to update inventory counts in as real-time as possible to avoid users placing orders that couldn’t go through. Other parts of the a
This is not a, "Which is better?", post. It is more a way to help other developers, like myself, who have a background in Rails development and are interested in Elixir and Phoenix. While working my way through converting elFormo, Grok's form processing service, from Ruby/Rails to Elixir/Phoenix, I have found it helpful when others would use a concept in Ruby or Rails as a point of reference for u
Our thoughtbot Teams have tailored expertise in the projects, challenges, and skills associated with your business and product at every product stage. We are equipped to partner with teams around the world with our fully-remote delivery model. Rapid validation and early product strategyBuilding a new product and roadmap planningTeam augmentation and process improvementDevOps, Cloud, CI/CD
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
Rubyに影響を受けた(というより弟分)言語であるElixirが熱いです。 RailsインスパイアのElixirのWAFであるPhoenixはrailsの10倍早いらしいです。 何かと話題の関数型言語elixir + phoenixを勉強中にデータベースラッパー&クエリジェネレータであるEctoの使い方がrailsのActiveRecordとは違う雰囲気で色々と悩んだのでメモ。Ecto単体で使った場合なのでphoenixと一緒に使った場合は違う部分があるかもしれません。 全体的にパイプライン演算子(|>)を存分に使ったコードで楽しいです。キーワードクエリはSQLっぽくてどうにも好きになれないので基本的にパイプラインクエリを使っています。 「こっちの方が適切」「もっとイケてる書き方がある」「phoenixではこう書ける」「phoenixでは使えない」等ありましたらコメントお願いします。 準備
Some aspects look different at a first glance. For example, Elixir code looks a bit more verbose than Ruby code. Module names are spelled out in most function calls. Modules being used in the current file are explicitly included. State is passed into functions as arguments. Before explaining how macros can extend the language, its documentation page explicitly discourages its use. Elixir can indee
Railsで作ったDBへPhoenixで接続するときのtimestampsのカラム名変更方法. mix ecto.generate で model を作ると以下のような形式になる.このとき timestamps は何も指定しなければ inserted_at と updated_at というカラムを指す. 一方,Railsの timestamp は created_at と updated_at なので,このまま phoenix を動かすとDBには inserted_at というカラムが見つからないというエラーになる. defmodule MySampleApp.User do use FarmnoteAdminConsole.Web, :model schema "users" do field :name, :string timestamps end # (略) end これを回避する
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く