Vue.js v-tokyo Meetup #22 発表資料 詳細は
Performance Benchmarks On a Hetzner CCX23 machine with 4 vCPU and 16GB RAM here are our numbers around throughput and GET/SET latencies when compared with other in-memory databases for `num_clients = 4`. | Metric | DiceDB | Redis | | -------------------- | -------- | -------- | | Throughput (ops/sec) | 15655 | 12267 | | GET p50 (ms) | 0.227327 | 0.270335 | | GET p90 (ms) | 0.337919 | 0.329727 | |
はじめに こんにちは、エキスパート/lite 開発の中原です! ビザスクでは主に Vue.js を使用してフロントエンド開発を行っています。 みなさんは Vue.js がどのように実装されているか意識したことはありますでしょうか? ライブラリを使う時その裏でどんな処理がされているのか正しく理解していないと、意図した挙動をしてくれなかったり、思わぬところでバグが発生することがあります。 今回は Vue.js のリアクティブ機能を実現する ref() と reactive() に焦点を当て、実際のソースコードを読みながら内部動作を理解していきたいと思います。 ref() まずは ref() のコードを見てみます。 // https://github.com/vuejs/core/blob/v3.5.13/packages/reactivity/src/ref.ts#L59-L61 export
const NameValueOrderedList<TextAlign> textAlignList{ { "Start", TextAlign::Start }, { "Center", TextAlign::Center }, { "End", TextAlign::End } }; class Example : public Component { public: RC<Widget> build() final { // rcnew Widget{...} is equivalent to std::shared_ptr<Widget>(new Widget{...}) return rcnew Widget{ layout = Layout::Vertical, rcnew Text{ "Switch (widgets/Switch.hpp)", classes = { "s
みなさんこんにちは, ubugeeei です. 最近技術発信が全くできていないな〜お前それでも Vue Team Member かよ,と思いつつ,せっかく Vue 3.5 がリリースされたのでそれに関連した機能の記事でも書こうかと思います. Vue 3.5.0 がリリースされました 先日,Vue 3.5.0 (Tengen Toppa Gurren Lagann) がリリースされました. このリリースでは,Reactivity System の最適化や,新しいコンポーザブルである useTemplateRef,useId,Custom Elements の改善など様々な変更が入りました. 詳しくは上記の公式ブログや,同 publication のまとめ記事 などを参照してください. 今回のトピック Vue 3.5 で Reactive Props Destructure という機能が安定版
こんにちは。 Anews の開発に携わっている Engineer の 羽柴 と申します。 Anews はフロントエンドを Vue で開発しています。 自分自身の背景として、Stockmarkに入社するまでは React を使って開発していたので Vue の経験は殆どない状態でした。 そこで理解を深めるために chibivue を使った勉強会を社内で進めています。 その時に気づいたことを share したいなと思い、この記事を書きました。 ja.vuejs.org chibivueとは Vue を書き始めた感想 chibivue の勉強会を進めて Proxyについて でもなんで まとめ 余談 最後に chibivueとは ubugeeei.github.io Vue を最少単位で作ってみようという project です。 浅い理解でよければ公式 docs をさらっと読んで実装するのが早いので
Context: Reactive programming (RP) is a declarative programming paradigm suitable for expressing the handling of events. It enables programmers to create applications that react automatically to changes over time. Whenever a time-varying signal changes — e.g. in response to values produced by event stream (e.g., sensor data, user input…) — the program state is updated automatically in tandem with
🏆 結論 「とりあえず ref を使えばいい!」 おしまいです。ref でできないことはありません。 注意点として補足しておくと、これは「Vue.js が ref を推奨している」「迷ってるならとりあえず ref を使っておけばいい」という話であって、reactive をはじめとする他の Reactivity API が非推奨だという話ではありません。 reactive がケースによって便利であることは Evan 氏なども認めており、そもそも Vue.js には厳密なルールがあるわけではないので、結局は自分の手に馴染むものを選択していくのが良いと思います。 なので、究極的な結論としては「とりあえず ref ファーストで考えておいて、なんらかしらの理由で reactive を使いたいなら別にそれも良い」という話になりますが、特別な理由がない場合は ref の方が推奨されます。 🚩 はじめ
先日、新しいC#用のReactive Extensionsの実装としてR3を正式公開しました!R3はRx for .NETを第一世代、UniRxを第二世代とした場合の、第三世代のRxという意味で命名しています。Rxとしてのコア部分(ほぼdotnet/reactiveと同様)は.NET共通のライブラリとして提供し、各プラットフォーム特化のカスタムスケジューラーやオペレーターは別ライブラリに分けるという形により、全ての.NETプラットフォーム向けのコアライブラリと、各種フレームワーク Unity, Godot, Avalonia, WPF, WinForms, WinUI3, Stride, LogicLooper, MAUI, MonoGame 向けの拡張ライブラリを提供しています。 GitHub - Cysharp/R3 幾つかの破壊的変更を含むため、ドロップインリプレースメントではないで
A reactive Python notebook that's reproducible, git-friendly, and deployable as scripts or apps. Docs · Discord · Examples English | 简体中文 marimo is a reactive Python notebook: run a cell or interact with a UI element, and marimo automatically runs dependent cells (or marks them as stale), keeping code and outputs consistent. marimo notebooks are stored as pure Python, executable as scripts, and de
使用技術 Vue3 + Nuxt3 Composition API TypeScript ワイ、お問い合わせフォームを作りたい ワイ「Vue の Composition API を使って、お問い合わせフォームを作るで!」 ワイ「フォームのデザインはこんな感じや!」 ワイ「いや〜、我ながらイケてるデザインやな!」 ワイ「ほな、Composition APIを使ってフォームの状態を管理していくで〜」 フォームの状態を管理するには? ref()またはreactive() ワイ「Composition APIの場合、状態を管理するには」 ワイ「ref()またはreactive()を使うんやったな」 ワイ「この2つは何が違うんやろ?」 ワイ「確か───」 ref() 文字列・数値・真偽値などの、プリミティブな値を保持できる reactive() オブジェクト・配列・Map・Setなどの状態を保持でき
はじめに リアクティブに関してのPinia Storeの動きが、Vue3のComposition APIの中でどうなるのか?Options APIの時はどう実装すべきか?混乱してしまい、良く分からなくなってしまったので、自身の整理メモとして備忘録を残しておこうと思う。 試したパターンは以下。 storeのstateはプリミティブな値 Piniaを Composition API で実装 コンポーネント側もComposition API 番外編 コンポーネント側はOptions API Piniaを Options API で実装 コンポーネント側もOptions API 番外編 コンポーネント側はComposition API storeのstateはオブジェクト Piniaを Composition API で実装 コンポーネント側もComposition API 番外編 コンポーネント
AWS Compute Blog Implementing reactive progress tracking for AWS Step Functions This blog post is written by Alexey Paramonov, Solutions Architect, ISV and Maximilian Schellhorn, Solutions Architect ISV This blog post demonstrates a solution based on AWS Step Functions and Amazon API Gateway WebSockets to track execution progress of a long running workflow. The solution updates the frontend regula
どうもフロントエンドエンジニアのoreoです。 普段の業務でVue.jsのComposition APIを使用しており、リアクティブな変数を定義する際に、reactiveやrefなどを多用しています。この記事では、reactiveの仕組みについて、実装しながら理解したいと思います。今回はreactiveのみを扱いますが、今後の記事ではrefやcomputedの仕組みについて解説する予定です! 1 Composition APIのreactiveとは? 1-1そもそもリアクティブとは? ある変数が変更された際に、依存関係にある他の変数も更新されることをリアクティブといいます。 1-2 reactiveについて Vue.jsのReactivity APIで提供されており、reactiveを使うことでオブジェクトをリアクティブ化することができます。下記のように定義されており、objetを引数にと
Building apps is too hard. Even skilled programmers who don’t specialize in app development struggle to build simple interactive tools. We think that a lot of what makes app development hard is managing state: reacting and propagating changes as the user takes actions. We’re exploring a new way to manage data in apps by storing all app state—including the state of the UI—in a single reactive datab
🏆 The goal of this library is to provide a lightweight reactivity API for other UI libraries to be built on top of. It follows the "lazy principle" that Svelte adheres to - don't do any unnecessary work and don't place the burden of figuring it out on the developer. This is a tiny (~1kB minzipped) library for creating reactive observables via functions called signals. You can use signals to store
ブログを書くの、久しぶりです。 大学に異動したとき、すぐ気づいた。多くのスタッフが、体制、システム、ルール、ブルシットジョブ、上司などなど、様々な不安を抱えていることに。次いで気づいたのは、そのような多種多様な不満を抱えているスタッフたちが、直属の上司にその不満を「絶対に口にしない」ことを旨としていることであった ぼくは驚いて、「問題があるなら、問題提起して、直してもらえばいいじゃないですか」と申し上げたら、「岩田先生、大学病院はいろいろあるんですよ」と「お前は分かってないな」といわんばかりの薄笑いとともに返されるのだった。 今も、俺は分かってない。 このような垂直的な階層構造は大学病院に限った話ではなく、日本社会のあちこちに遍在している。 ぼくはST合剤という抗菌薬の添付文書の不備を霞が関の担当官僚に指摘し、改善を求めたことがある。彼女は「こいつは分かってないな」という気持ち悪い薄笑いと
Reactive UI without the complexity of SPA frameworks. Use any backend you like; bind to the HTML you already produced. "> HTML <div class="counter"> <button type="button" class="increment">Increment</button> <button type="button" class="decrement" disabled>Decrement</button> <div class="result"> Count: <strong class="count">0</strong> </div> </div> JavaScript with Corset import sheet, { mount } fr
はじめに 今回はUnityにおける「Model-View-(Reactive)Presenterパターン」とは何なのかについて解説します。 対象読者 Unity開発者 UniRxを使うことができる UnityにおけるGUI周りの実装に困っている GUI周りの設計パターン Model-View-(Reactive)Presenterパターン(略してMV(R)Pパターン)とは、UnityにおけるGUI周りの設計パターンの一種です。 「GUI」とはいわゆる「ユーザインターフェース」のことで、ゲーム中における「画面上に表示される情報」や「メニュー」や「ボタン」といったものを指します。 (ざっくりいえば、uGUIのことだと思って下さい) GUI周りの実装手法というものはUnityに限らず、複雑になりがちな難しい部分です。 そのためいろいろな設計パターンが考案されてきました。 代表的なもので言えばMV
どうも、まさとらん(@0310lan)です! 今回は、マークダウンで手軽にWebサイトを構築できるサービスをご紹介します。 一般的なマークダウン記法で簡単にWebコンテンツを作れるのですが、独自のコードブロックを挿入してインタラクティブなフォーム要素も挿入できるのが特徴です。 さらにJavaScriptで好きな機能を開発できる仕組みが提供されており、簡単なWebアプリを作るなど自由度の高いサービスに仕上がっています。 すべて無料で使えるので、ご興味ある方はぜひ参考にしてください! 【 Reactive Doc 】 ■「Reactive Doc」の使い方 それでは、「Reactive Doc」をどのように使えばいいのか詳しく見ていきましょう! 利用するためにユーザー登録やログインなどは一切不要です。サイトに訪れたらトップ画面にある【Try it】ボタンをクリックするだけです。 専用のWebエ
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? Functional and Reactive Domain Modelingとは、ドメイン駆動設計(DDD)の関数型プログラミング(FP)とリアクティブプログラミング(RP)によるアプローチを書いた本 1. 関数型ドメインモデリング:イントロダクション 変更可能なステートを避ける - 変更可能なステートは管理が難しく、非決定性につながる 参照透過性 - FPは、参照透過なモデルコンポーネントを設計する能力を提供する。モデルの振る舞いが純粋関数で構築されていることで合成性を得られ、小さな関数から大きな関数を作ることができる 自律的成長
Vue.js の Composition API が登場してから 1 年少しが経過しており、すでに使いこなしている方もいらっしゃるのではないでしょう? 私自身お仕事で Composition API を使用しており、従来の Options API と比較して UI とロジックの分解がよりやりやすくなったように思えます。リアクティブなデータをコンポーネントの外で定義できるようになったことで、1 つのコンポーネントにまとめて書かざるをえなかった論理的な関心事に分けてそれぞれ別のファイルで定義できます。 書き心地としては React のカスタムフックに近い感じとなっていますね。 個人的には React がクラスコンポーネントから関数コンポーネント + Hook へ移行したように、Vue.js においても Composition API へ移行する流れが来るのではないかと思います。 さて、そんな
この記事は、Vue #2 Advent Calendar 2019 の18日目の記事です!! ※ 2021.10追記 ref, reactiveについては公式ドキュメントなどをご参考にいただけますと幸いです。 https://v3.ja.vuejs.org/guide/reactivity-fundamentals.html (本記事はご参考程度にお願い致します。) 前置き Vueにそこまで精通しているわけではないため、内容に誤りがある可能性があります。 何か間違いがある場合はお手柔らかにご指摘お願いしますmm また、多くの方々の記事を参考にさせて頂きました。 ありがとうございますmm (もしも載せてはいけない情報がある場合、ご連絡頂ければと思います。) 結論 お忙しい方々向けに。 refは、プリミティブな(Objectでない)値をリアクティブにする reactiveはObjectの値をリ
One of the first questions that arise when starting with the new Vue Composition API is ref() or reactive()? The initial instinct is to use ref() for primitives (Boolean, String,…) and reactive() for objects. But there is more to it. When to Use ref() and When to Use reactive()?The Downside of Using ref()Is Mixing ref() and reactive() a Good Idea?When to Use ref() and When to Use reactive()?Let’s
It’s time to actually conjure up the long-teased new magic by DHH & Co. and learn to use Hotwire beyond 5-minute tutorials. This umbrella term, behind libraries for building modern web interfaces seemingly without any effort or JavaScript, is on everyone’s tongue since the big unveil this year. The HTML-over-the-wire approach is making ripples through the Rails universe: countless blogs, Reddit po
Reactive variables State containers integrated into Apollo Client's reactivity model New in Apollo Client 3, reactive variables are a useful mechanism for representing local state outside of the Apollo Client cache. Because they're separate from the cache, reactive variables can store data of any type and structure, and you can interact with them anywhere in your application without using GraphQL
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? Lightbend Academy で Reactive Architecture(リアクティブ・アーキテクチャ)について学んだ内容をメモっとく。どうやら同じコースが Cognitive Class でも公開されているみたいなので、Lightbend Academy 無料期間に受講できなかった人はこちらをどうぞ。 本稿は、個人的に思い出すために書き留めているノートなので、言葉の正しさは保証できない。どんな内容がコースに含まれているかを俯瞰するにはいいかと思う。 コースの3つ目まではノートを書いてなかったので、気が向いたら時間のあるときに
Francisco Sousa for Finiam Posted on Sep 30, 2020 • Edited on Apr 28, 2023 • Originally published at blog.finiam.com A while ago I made a blog post about the modern web with just Rails (and a few other things). Today I'm going to explore another way of doing awesome things with Rails, in the spirit of the modern, reactive, and real-time, web. Let's explore StimulusReflex, an extension to the amazi
Let me tell you about the feeling that I get when I encounter something poised to revolutionize my work as a software developer. A specific, tangible physical sensation in my bones; a tingle in my skin and a buzz in my fingertips. Like having done a little too much cocaine, if you know what I mean. Apparently this mania hits me approximately every 5 years. The first time was in 2000 when I read Th
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く