keita's Avatar

keita

@kt15.bsky.social

React / Vue.js / TypeScript / Playwright / Rails / 今年は Rust を学びたい💪 GitHub https://github.com/keita-hino Zenn https://zenn.dev/keita_hino

38 Followers  |  36 Following  |  63 Posts  |  Joined: 07.02.2024
Posts Following

Posts by keita (@kt15.bsky.social)

Preview
コンセプトから理解するRust Rustはメモリ安全,スレッド安全を保ちつつ,高パフォーマンスなプログラムを開発できるプログラミング言語です。また,手続き型,オブジェクト指向型,関数型でのプログラミングに対応できるマルチパラダイムの言語でもあります。ただ,そういったRustのポテンシャルを引き出すには,所有権やライフタイム,ジェネリクスやトレイトといった特徴的な仕様の理解が求められ,これらは初学者の壁にもなっています。本書ではそ...

面白そうな本を見つけたのでこれから読む📕
gihyo.jp/book/2022/97...

06.05.2024 05:34 — 👍 2    🔁 0    💬 0    📌 0
Preview
feat(biome_css_analyzer): noUnknownSelectorPseudoElement by keita-hino · Pull Request #2655 · biomejs/biome Summary close #2624 Implement selector-pseudo-element-no-unknown Please note that the following is not yet addressed: Implementation of options Handling extended CSS language cases such as sass ...

Biome に Stylelint の selector-pseudo-element-no-unknown を移植する PR がマージされた💪
github.com/biomejs/biom...

02.05.2024 06:17 — 👍 2    🔁 0    💬 0    📌 0
Preview
ESLint v9.0.0 released - ESLint - Pluggable JavaScript Linter A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.

ESLint v9がリリースされてた!
予定通り、Flat config がデフォルトになるっぽい!
eslint.org/blog/2024/04...

06.04.2024 00:35 — 👍 2    🔁 0    💬 0    📌 0
Post image Post image

美味しかった🥩

31.03.2024 11:39 — 👍 1    🔁 0    💬 0    📌 0
Preview
Releases · oxc-project/oxc ⚓ A collection of JavaScript tools written in Rust. - oxc-project/oxc

リリースされた!
github.com/oxc-project/...

30.03.2024 11:53 — 👍 1    🔁 0    💬 0    📌 0

あー確かに開発サーバーは必要そうですね、ありがとうございます!

24.03.2024 15:09 — 👍 1    🔁 0    💬 0    📌 0
Preview
Rolldown | Rust bundler for JavaScript Fast Rust-based bundler for JavaScript with Rollup-compatible API

> At the same time, Rolldown will also be directly usable as a standalone bundler.

Rolldown は将来的に Vite で使用される予定のバンドラーだけど、Rolldown を直接使うことも可能になるっぽい
その場合、あえて Vite 経由で使うメリットでなんだろう🤔
rolldown.rs/about

24.03.2024 06:51 — 👍 1    🔁 0    💬 0    📌 1
TS Playground - An online editor for exploring TypeScript and JavaScript The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.

文字列リテラルの配列から特定の文字列リテラルを除外したいケースはたまにあるから恩恵受ける機会ありそう!

例えば、こんな感じの↓
前までは filter しても型レベルでは絞り込まれてなかったから、is で明示的に型を指定する必要があった
www.typescriptlang.org/play?ts=5.5....

24.03.2024 06:19 — 👍 0    🔁 0    💬 0    📌 0
Preview
TypeScript 5.5で型述語を推論できて最高。配列のfilterも型安全に

おーこれはありがたい機能追加だ...
zenn.dev/ubie_dev/art...

24.03.2024 06:10 — 👍 4    🔁 1    💬 1    📌 0
Preview
feat(linter): eslint-plugin-react checked-requires-onchange-or-readonly by keita-hino · Pull Request #2754 · oxc-project/oxc partof: #1022 docs: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/checked-requires-onchange-or-readonly.md code: https://github.com/jsx-eslint/eslint-plugin-react/blob/ma...

今日の成果がマージされた💪
github.com/oxc-project/...

20.03.2024 08:06 — 👍 2    🔁 0    💬 1    📌 0

いつの間にか Notion でタブの並び替えできるようになってる!
タブ機能よく使うからありがたい...

11.03.2024 02:01 — 👍 3    🔁 0    💬 0    📌 0

Biome v1.6 で自分が対応したバグ修正もリリースされた👍
github.com/biomejs/biom...

09.03.2024 01:02 — 👍 2    🔁 0    💬 0    📌 0
Preview
Vue 3.4

v-bind で変数名と属性名が同じ時に省略できるようになったんだ、便利そう👀

speakerdeck.com/kazupon/vue-...

09.03.2024 00:58 — 👍 1    🔁 0    💬 0    📌 0

個人的に最近 Oxlint にコントリビュートし始めたので、この流れで OXC 盛り上がっていってくれると嬉しい

08.03.2024 11:38 — 👍 0    🔁 0    💬 0    📌 0
Rolldown | Rust bundler for JavaScript Fast Rust-based bundler for JavaScript with Rollup-compatible API

"Rolldown is written in Rust and built on top of Oxc, currently leveraging its parser and resolver. We also plan to leverage Oxc's transformer and minifier when they become available in the future.

ViteConf の中でも OXC の Parser を使う的な話があった気がするけど、その他の OXC のツールも使っていく予定らしい。
rolldown.rs/about

08.03.2024 11:36 — 👍 0    🔁 0    💬 1    📌 0

あと Rust 製だから速くなるのかな

08.03.2024 11:24 — 👍 0    🔁 0    💬 1    📌 0

現状、Vite のビルドは development と production で微妙に挙動が異なっている。

これは環境によって使用するバンドラーが異なっているからで、development は esbuild、production は Rollup を使用している。

この環境による差分をなくすために作られたのが Rolldown というのが自分の理解。

確か、Rolldown は去年の ViteConf で初めて言及があった記憶

08.03.2024 11:22 — 👍 0    🔁 0    💬 1    📌 0
Rolldown | Rust bundler for JavaScript Fast Rust-based bundler for JavaScript with Rollup-compatible API

Rolldown が公開されてる!!
Rust 製のバンドラーで将来的に Vite で使用される予定
rolldown.rs

08.03.2024 11:10 — 👍 1    🔁 0    💬 1    📌 0
Preview
Wasm ベースの SQLite から Origin Private File System への出力を試す

Wasm ベースの SQLite をブラウザ上で動かすのは前に試したことある

zenn.dev/keita_hino/s...

05.03.2024 00:39 — 👍 0    🔁 0    💬 0    📌 0
Preview
GitHub - electric-sql/pglite: Lightweight Postgres packaged as WASM into a TypeScript library for the browser, Node.js, Bun and Deno Lightweight Postgres packaged as WASM into a TypeScript library for the browser, Node.js, Bun and Deno - electric-sql/pglite

ブラウザ上で使う方法
github.com/electric-sql...

05.03.2024 00:35 — 👍 0    🔁 0    💬 1    📌 0
Preview
GitHub - electric-sql/pglite: Lightweight Postgres packaged as WASM into a TypeScript library for the browser, Node.js, Bun and Deno Lightweight Postgres packaged as WASM into a TypeScript library for the browser, Node.js, Bun and Deno - electric-sql/pglite

Wasm ベースの Postgres 気になる👀

electric-sql/pglite: Lightweight Postgres packaged as WASM into a TypeScript library for the browser, Node.js, Bun and Deno
github.com/electric-sql...

05.03.2024 00:35 — 👍 1    🔁 0    💬 1    📌 0
Preview
RailsのCIのテスト実行時間を 10分から5分に高速化した話 - Findy Tech Blog FindyでEMをしている栁沢(@nipe0324a)です。 今回は、FindyのとあるRailsのCIのテスト実行時間を10分から5分に高速化した話をご紹介します。 「CIのテスト実行時間が遅い...」 「CIの実行時間を短くしたい!!」 と感じている方はぜひご覧くださいませ。 Findyでは2024年2月現在、1人あたり1日4プルリクを平均で作っています。静的解析や自動テストなどを即時に行うC...

CI の実行時間を減らしたい時、並列化するのは真っ先に思いつく方法だけど、並列化したテスト実行時間の偏りをなくすところまでは考えられてなかったので学びだ
最終的に実行時間短縮できてるのもすごい👏

RailsのCIのテスト実行時間を 10分から5分に高速化した話 - Findy Tech Blog
tech.findy.co.jp/entry/2024/0...

05.03.2024 00:12 — 👍 0    🔁 0    💬 0    📌 0

ついに...!

01.03.2024 11:24 — 👍 1    🔁 0    💬 0    📌 0
Preview
📎 GraphQL support · Issue #1927 · biomejs/biome Description Our most-upvoted request in the discussion is support for linting of GraphQL files. Unfortunately, GraphQL support is not part of our roadmap for 2024. This means the Biome team will be...

Biome が GraphQL の Linter 作るために資金募っていたんだけど、目標金額達成したみたい🎉
github.com/biomejs/biom...

01.03.2024 11:21 — 👍 0    🔁 0    💬 0    📌 0
Preview
gitでstashが面倒なあなたにautostash

autostash 初めて知った、便利そう👀
zenn.dev/moozaru/arti...

01.03.2024 09:47 — 👍 1    🔁 0    💬 0    📌 0

仕事終わり🏃‍♂️

01.03.2024 08:21 — 👍 1    🔁 0    💬 0    📌 0
Preview
💅 noRedeclare false positive for overloaded functions in an interface · Issue #1932 · biomejs/biome Environment information CLI: Version: 1.5.3 Color support: true Platform: CPU Architecture: aarch64 OS: macos Environment: BIOME_LOG_DIR: unset NO_COLOR: unset TERM: "xterm-256color" JS_RUNTIME_VER...

今回はこの Issue を対応した💪
異なる宣言であれば同名の型引数を使用しても問題ないはずだが、誤検知でエラーになっていたというもの
github.com/biomejs/biom...

29.02.2024 00:07 — 👍 0    🔁 0    💬 0    📌 0
Preview
fix(lint/noRedeclare): Allow redeclaration of type parameters in different declarations by keita-hino · Pull Request #1937 · biomejs/biome Summary close: #1932 I have fixed it to allow redeclaration of type parameters in different declarations. Test Plan Add test cases to reproduce the issue.

Biome の noRedeclare ルールのバグを修正した PR がマージされた!
初 PR だったので、マージされたの嬉しい🙌
github.com/biomejs/biom...

29.02.2024 00:06 — 👍 2    🔁 0    💬 1    📌 1
Preview
MDN Curriculum | MDN Curriculum The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.

けっこう幅広くって感じか、良さそう!
developer.mozilla.org/en-US/curric...

28.02.2024 00:19 — 👍 0    🔁 0    💬 0    📌 0
Preview
Lift-off: The MDN Curriculum launch | MDN Blog The long-awaited MDN Curriculum is now live on MDN, providing a structured guide to the essential front-end development skills and best practices for industry newcomers. Learn all the key details in t...

MDN からフロントエンドの開発に必要な知識を学べるカリキュラムが公開されてた
developer.mozilla.org/en-US/blog/m...

28.02.2024 00:16 — 👍 1    🔁 0    💬 1    📌 0