並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 31 件 / 31件

新着順 人気順

javascript object entries foreachの検索結果1 - 31 件 / 31件

  • Web パフォーマンスのための HTML 最適化 | メルカリエンジニアリング

    Merpay Advent Calendar 2019 の2日目は @1000ch (id:hc0001) がお送りします。この記事は2019年11月16日に福岡で開催された Frontend Conference Fukuoka 2019 のセッション、HTML Optimization for Web Performance の書き起こし記事です。 docs.google.com なぜ HTML の最適化が重要なのか 先日公開された Chromium Blog: Moving towards a faster web をご覧になられたでしょうか。Google は Web ページのパフォーマンスの重要性を様々な形で啓蒙してきましたが、この記事では Chrome のもとになっている Chromium に、Web ページのパフォーマンスをブラウザ UI として表示する機能を追加し、ユーザーが

      Web パフォーマンスのための HTML 最適化 | メルカリエンジニアリング
    • JavaScript: 所望のイベントリスナの発火を妨げているイベントリスナを特定する | Wantedly Engineer Blog

      Webアプリケーションでは、DOMの要素にイベントリスナ(イベントハンドラ)を取り付けることで、ユーザーによる様々な操作 (クリックなど) に応じて処理を行うことができます。 しかし、イベントリスナを登録しても、他のイベントリスナとの干渉によって意図した通りに発火しないことがあります。ここではその調査方法を紹介します。 前提知識: イベントバブリングイベントについては筆者の過去記事でも解説しましたが、あらためてここでも説明します。イベントバブリングを理解することが、イベントデバッグの近道だからです。 DOMにおいて、要素はネストすることによって木構造を形成します。ある要素(ターゲット要素)がクリックされるなどしてイベントが発生したとき、イベントはその要素自体だけではなく、その祖先要素にも送られます。これをイベントバブリングといいます。 イベントバブリングは2つの段階に分けられます。 Cap

        JavaScript: 所望のイベントリスナの発火を妨げているイベントリスナを特定する | Wantedly Engineer Blog
      • JavaScript Best Practices | The WebStorm Blog

        IDEs CLion DataGrip DataSpell Fleet GoLand IntelliJ IDEA PhpStorm PyCharm RustRover Rider RubyMine WebStorm Plugins & Services Big Data Tools Code With Me JetBrains Platform Scala Toolbox App Writerside JetBrains AI Grazie Junie JetBrains for Data Kineto Team Tools Datalore Space TeamCity Upsource YouTrack Hub Qodana CodeCanvas Matter .NET & Visual Studio .NET Tools ReSharper C++ Languages & Frame

          JavaScript Best Practices | The WebStorm Blog
        • Patterns for Reactivity with Modern Vanilla JavaScript – Frontend Masters Blog

          “Reactivity” is how systems react to changes in data. There are many types of reactivity, but for this article, reactivity is when data changes, you do things. Reactivity Patterns are Core to Web Development We handle a lot with JavaScript in websites and web apps since the browser is an entirely asynchronous environment. We must respond to user inputs, communicate with servers, log, perform, etc.

            Patterns for Reactivity with Modern Vanilla JavaScript – Frontend Masters Blog
          • TypeScript Compiler APIを活用してi18nの不整合をチェックする - Commune Engineer Blog

            こんにちは。業務委託としてコミューンのグローバルチームでエンジニアをしているhiro08と申します。 グローバルチームでは主に海外展開に向けた開発や施策を行なっています。もし、グローバルチームに興味のある方は日本のSaaSスタートアップが世界で戦うためのプロダクトを開発するということも一読ください。 今回はグローバルチームでの開発の一部として、TypeScript Compiler APIを活用したi18nの不整合をチェックするツールを作成したお話をしようと思います。 背景 海外展開に向けた開発でまず思いつくのがi18n (多言語化) 対応ではないでしょうか。コミューンのプロダクトではi18nの対応が完了しており、すでに運用フェーズに入っています。 しかし、運用していく中で対訳データのキーやネームスペースの不整合に気づく仕組みがないことが課題点として挙がってきました。 i18nでは、ネーム

              TypeScript Compiler APIを活用してi18nの不整合をチェックする - Commune Engineer Blog
            • June 2022 (version 1.69)

              Update 1.69.1: The update addresses these issues. Update 1.69.2: The update addresses these issues. Downloads: Windows: x64 Arm64 | Mac: Universal Intel silicon | Linux: deb rpm tarball Arm snap Welcome to the June 2022 release of Visual Studio Code. There are many updates in this version that we hope you'll like, some of the key highlights include: 3-way merge editor - Resolve merge conflicts wit

                June 2022 (version 1.69)
              • WebKit Features in Safari 18.0

                ContentsNew in Safari 18Web apps for MacCSSSpatial WebHTMLJavaScriptWeb APICanvasManaged Media SourceWebRTCHTTPSWebGLWeb InspectorPasskeysSafari ExtensionsApple PayDeprecationsBug Fixes and moreUpdating to Safari 18.0Feedback Safari 18.0 is here. Along with iOS 18, iPadOS 18, macOS Sequoia and visionOS 2, today is the day another 53 web platform features, as well as 25 deprecations and 209 resolve

                  WebKit Features in Safari 18.0
                • How video games use LUTs and how you can too

                  Look-up-tables, more commonly referred to as LUTs, are as old as Mathematics itself. The act of precalculating things into a row or table is nothing new. But in the realm of graphics programming, this simple act unlocks some incredibly creative techniques, which both artists and programmers found when faced with tough technical hurdles. We’ll embark on a small journey, which will take us from simp

                    How video games use LUTs and how you can too
                  • JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them?

                    JavaScript needs more helper functions for iteration (map, filter, etc.) – where should we put them? Iteration is a standard that connects operations with data containers: Each operation that follows this standard, can be applied to each data container that implements this standard. In this blog post: We first explore three questions: How does JavaScript’s iteration work? What are its quirks? What

                    • News from WWDC24: WebKit in Safari 18 beta

                      Jun 10, 2024 by Jen Simmons, Jon Davis, Karl Dubost, Anne van Kesteren, Marcos Cáceres, Ada Rose Canon, Tim Nguyen, Sanjana Aithal, Pascoe, and Garrett Davidson ContentsWebXRCSSWeb apps for MacSafari ExtensionsSpatial mediaHTMLMediaWebRTCPasskeysHTTPSJavaScriptWeb APICanvasWebGLWeb InspectorWKWebViewApple PayDeprecationsBug Fixes and moreHelp us Beta TestFeedback The last year has been a great one

                        News from WWDC24: WebKit in Safari 18 beta
                      • The world after IE left

                        The world after IE left.This page is based on data from mdn/compat-data.Chrome ≧Safari ≧Firefox ≧Edge ≧🔁 ReloadJavaScriptCSSHTMLAPIHTTPSVGWebExtensionsJavaScriptbuiltinsArray[mdn][spec]@@iterator[mdn][spec]@@species[mdn][spec]@@unscopables[mdn][spec]copyWithin[mdn][spec]entries[mdn][spec]fill[mdn][spec]find[mdn][spec]findIndex[mdn][spec]flat[mdn][spec]flatMap[mdn][spec]from[mdn][spec]includes[mdn

                          The world after IE left
                        • React JSXでのループ処理 基礎 - deve.K's Programming Primer - プログラミング初心者のための入門ブログ

                          この記事では、Reactでのループについて初心者向けに解説します。 JavaScriptやTypeScriptのロジックでループを実行する場合、特別なルールに気を配る必要はありません。 普通のJSループを使えば、様々な種類のループを使用できます。 もちろん、すべてのループがすべての場合に適しているわけではありませんが、ほとんどの場合には可能です。 Reactでは、主にES2015で導入された最新のJavaScript機能を使用しています。 これらの機能を活用するために、Reactアプリケーションでよく使われる一般的なJavaScriptパターンやメソッドを紹介します。 例えば、配列から商品のリスト全体をレンダリングする場合、反復処理を使用して実現できます。 これらのポイントを詳しく説明します。 React JSXでループする マップ関数 forEachループ Reactループ処理での注意点

                            React JSXでのループ処理 基礎 - deve.K's Programming Primer - プログラミング初心者のための入門ブログ
                          • [GTM]data属性を使用したGA4の自動イベント計測 | アユダンテ株式会社

                            Google アナリティクス 4(以下GA4)は、様々なユーザーアクションをイベントとして計測できます。 その中でも、以下の2つのアクションはどのサイトでも計測する可能性が高いものです。 何をクリックしたか(リンクやボタンなど)何が表示されたか(バナーなど) この記事では、上記2つのユーザーアクションをHTMLタグの属性である「data属性」とGoogle タグマネージャ(以下、GTM)を活用して、半自動で計測する方法を紹介します。 この設定により、タグやトリガーの数を大幅に減らすことができ、管理の面でもメリットが大きいですので、参考なれば幸いです。 それでは、さっそく見ていきましょう! data属性とは何かなぜIDやclass属性ではなくdata属性を使うのか【設定手順①】data属性の準備 【設定手順②】GTMの設定カスタムHTMLタグを作成するデータレイヤーの変数を作成するカスタムイ

                              [GTM]data属性を使用したGA4の自動イベント計測 | アユダンテ株式会社
                            • TensorFlow.jsを使ったリアルタイムポーズ認識 - ICS MEDIA

                              前回の記事『ブラウザ上で可愛いフィルターを実現!TensorFlow.jsを使ったリアルタイム顔認識』では、Googleが開発した機械学習用JavaScriptライブラリ「TensorFlow.js」が提供する、顔認識モデルをご紹介しました。そしてウェブカメラを使用してリアルタイムで顔認識を行い、好きなスタンプ画像を選んで顔に貼り付けるデモを作成しました。 今回の記事では、TensorFlow.jsを利用し、ポーズに合わせた画像が出現するデモを作成します。 ▲ ポーズに合わせた画像が出現するデモ。詳細は後述します。 TensorFlow.jsとは TensorFlow.jsは、Pythonで広く利用されている機械学習ライブラリ「TensorFlow」のJavaScript版です。TensorFlow.jsを利用すると、以下のようなことをブラウザ上で実現できます。 オリジナルの機械学習モデル

                                TensorFlow.jsを使ったリアルタイムポーズ認識 - ICS MEDIA
                              • WebKit Features for Safari 26.2

                                Safari 26.2 is a big release. Packed with 62 new features, this release aims to make your life as a web developer easier by replacing long-standing frustrations with elegant solutions. You’ll find simpler ways to create common UI patterns with just a few lines of HTML or CSS, and no JavaScript — like auto-growing text fields with CSS field-sizing, and buttons that open/close dialogs and popovers w

                                  WebKit Features for Safari 26.2
                                • The Three Pillars of JavaScript Bloat

                                  Over the last couple of years, we’ve seen significant growth of the e18e community and a rise in performance focused contributions because of it. A large part of this is the “cleanup” initiative, where the community has been pruning packages which are redundant, outdated, or unmaintained. One of the most common topics that comes up as part of this is “dependency bloat” - the idea that npm dependen

                                  • V8 Torque user manual · V8

                                    V8 Torque is a language that allows developers contributing to the V8 project to express changes in the VM by focusing on the intent of their changes to the VM, rather than preoccupying themselves with unrelated implementation details. The language was designed to be simple enough to make it easy to directly translate the ECMAScript specification into an implementation in V8, but powerful enough t

                                    • Vue3でフォームバリデーションのVee-Validate 4の基礎を理解 | アールエフェクト

                                      Vue.jsに限らずアプリケーションに入力フォームを追加した場合には必バリデーション機能を実装する必要があります。バリデーションはユーザが入力フォームから入力した値がアプリケーションの要件を満たしているかチェックを行う仕組みです。例えばネット上のサービスを利用する場合にはメールアドレスの入力を求められます。入力後にメールアドレスの形式になっているかどうかチェックを行うのがバリデーションです。 フォームバリデーションには入力値をチェックするだけではなくエラーメッセージの管理、入力したデータの管理、submit処理(サーバに)など含まれ、すべて自分で実装しようとすると非常に大変な作業になります。vee-validateなどのライブラリの力を借りることでフォーム作成の負担を下がることができフォーム以外の処理に時間をかけることができます。ライブラリを利用することで自分で実装することに比べて楽にはな

                                        Vue3でフォームバリデーションのVee-Validate 4の基礎を理解 | アールエフェクト
                                      • 【感想】『りあクト! TypeScriptで始めるつらくないReact開発 第3.1版』【Ⅰ. 言語・環境編】: #りあクト で最強React入門 - Rのつく財団入り口

                                        りあクト! でReact再入門 しばらく前のエントリで書きましたがReact+TypeScript回りを学んだので、一緒に読んだ本の感想エントリです。技術同人誌界隈では非常に高評価、なんと累計1.5万部も売れた3部構成のReact入門書。作者はフリーランスのエンジニアの大岡由佳さん。 React推しの技術同人誌なので前書きからすでにアツく、最近はVue.jsが採用されたり書籍が多いのにもどかしさを感じたり、実際のプロジェクトで見てきたひどいコードをもっと良くしたいと思った…などなど、現場のエンジニアの技や思いがたっぷり詰まっています。ReactってJavaScriptぢからの高い優秀な人が使ってそうな勝手なイメージがあったのですが、そうではない場合もあるのですかねえ。 技術が出てくる経緯、歴史と思想にも踏み込み、仕事で使えるReact本を目指したとのことで、実際にそれを実現した本となってい

                                          【感想】『りあクト! TypeScriptで始めるつらくないReact開発 第3.1版』【Ⅰ. 言語・環境編】: #りあクト で最強React入門 - Rのつく財団入り口
                                        • Building A Dynamic Header With Intersection Observer — Smashing Magazine

                                          Have you ever needed to build a UI where some component on the page needs to respond to elements as they’re scrolled to a certain threshold within the viewport — or perhaps in and out of the viewport itself? In JavaScript, attaching an event listener to constantly fire a callback on scroll can be performance-intensive, and if used unwisely, can make for a sluggish user experience. But there is a b

                                            Building A Dynamic Header With Intersection Observer — Smashing Magazine
                                          • What if you don't need MCP at all?

                                            What if you don't need MCP at all? 2025-11-02 One chonky MCP server Table of contents After months of agentic coding frenzy, Twitter is still ablaze with discussions about MCP servers. I previously did some very light benchmarking to see if Bash tools or MCP servers are better suited for a specific task. The TL;DR: both can be efficient if you take care. Unfortunately, many of the most popular MCP

                                              What if you don't need MCP at all?
                                            • 任意のHTML要素を動的に生成する - かちびと.net

                                              Result 上記のように任意のHTML要素を動的生成するスクリプトです。 軽量且つ非依存で、HTMLタグの生成、プロパティの適用、コンテンツ追加、DOM要素の選択が容易に行えます。 javascript (() => { const assignDeep = (elm, props) => Object.entries(props).forEach(([key, value]) => typeof value === 'object' ? assignDeep(elm[key], value) : Object.assign(elm, {[key]: value})) const tagNames = [ 'a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blo

                                                任意のHTML要素を動的に生成する - かちびと.net
                                              • Documentation | Pipes

                                                What Pipes is Pipes is a spiritual successor to Yahoo! Pipes, but if you did not know that site, you can think of Pipes as a visual programing editor specialized on feeds, or a visual shell, or simply as a glorified feed configurator. Pipes gives you blocks that can fetch and create feeds, and manipulate them in various ways. Think filtering, extracting, merging and sorting. All you need to do is

                                                • Webアプリケーションの国際化対応をバックエンドからフロントエンドに移行した話 - RevComm Tech Blog

                                                  はじめに 株式会社 RevComm の Software Engineer 宇佐美です。 RevComm では、電話営業や顧客対応を可視化する音声解析 AI 搭載型のクラウド IP 電話 MiiTel (ミーテル) を提供しています。 miitel.com MiiTel の中核プロダクトである MiiTel Analytics は、フロントエンドが React ・バックエンドが Python (Django) という構成の Web アプリケーションです。メイン言語は日本語を想定していますが、ユーザーが設定言語を変更することで英語で利用することも可能です。 今回、従来はバックエンドで行っていたWebアプリケーションの国際化対応 (internationalization, i18n) をフロントエンドに移行するという作業を行いました。 この過程でわかった国際化対応の方法や、国際化対応をバック

                                                    Webアプリケーションの国際化対応をバックエンドからフロントエンドに移行した話 - RevComm Tech Blog
                                                  • JavaScriptのシャローコピーとディープコピー詳細解説:実践的な使い方と注意点 - iimon TECH BLOG

                                                    はじめに シャローコピーとディープコピーの基礎 オブジェクトの参照の仕組み シャローコピーとディープコピーの違い シャローコピーの3つの方法 それぞれの特徴 Object.assign()が配列に適さない理由 疎配列(sparse array)の扱い 配列メソッドの継承問題 使い分けの指針 ディープコピー ディープコピーの4つの方法 使い分けの指針 注意点とベストプラクティス シャローコピーで十分な場合 ディープコピーが必要な場合 まとめ おわりに 参考記事 はじめに こんにちは、株式会社iimonでフロントエンドエンジニアをしているnkmです! 本記事はiimonアドベントカレンダー2日目の記事となります。 今回は、以下について実践的な例を交えながら解説していきます! ・シャローコピーとディープコピーの基礎 ・シャローコピーとディープコピーの違い ・シャローコピーの3つの方法、使い分け

                                                      JavaScriptのシャローコピーとディープコピー詳細解説:実践的な使い方と注意点 - iimon TECH BLOG
                                                    • Obsidian Thino x Dataview らくらく工数管理 | DevelopersIO

                                                      はじめに Obsidianのコミュニティプラグイン、ThinoとDataviewを活用した工数管理が便利だったので記事にしました。 Obsidian - Obsidian 日本語ヘルプ - Obsidian Publish Obsidianはマークダウンエディタであり、ナレッジベースアプリでもあります。 運用イメージ ThinoでX風の作業ログを記録 プロジェクト毎にタグを打つのがポイント! Dataviewで月別に集計した工数を確認 打ったタグ毎の工数と全体の工数を確認可能 設定方法 デイリーノートの設定 設定 > オプション > コアプラグイン > デイリーノート > 設定 から 新規ファイルの場所 を指定 例)20_daily ※後述するdataviewjsでフォルダを指定しています。 Thinoをインストール Githubリポジトリ:Thino 設定 > オプション > コミュニテ

                                                        Obsidian Thino x Dataview らくらく工数管理 | DevelopersIO
                                                      • コンテナクエリの使用方法  |  Blog  |  web.dev

                                                        最近、Chris Coyier 氏は、 コンテナクエリがすべてのブラウザ エンジンでサポートされるようになった今、開発者がコンテナクエリを使用する機会が増えないのはなぜでしょうか。 Chris の投稿には考えられるさまざまな理由が挙げられています(意識の欠如、古い習慣が困難になるなど)が、際立った特に理由があります。 今はコンテナクエリを使用したいが、古いブラウザをサポートする必要があるためできないと考えているデベロッパーもいます。 タイトルから推測できるように、古いブラウザをサポートする必要がある場合でも、ほとんどのデベロッパーは本番環境でコンテナクエリをすぐに使用できると考えています。この投稿では、そのためにおすすめのアプローチについて説明します。 実際的なアプローチ 現時点でコンテナクエリをコードで使用するものの、すべてのブラウザで同じエクスペリエンスを表示したい場合は、コンテナクエ

                                                          コンテナクエリの使用方法  |  Blog  |  web.dev
                                                        • MapLibre GL JSのGlobe Projectionでコロプレス地球儀を作る - Qiita

                                                          MapLibre GL JSのGlobe Projection ウェブ地図描画ライブラリのMapLibre GL JSでは、v5のPreバージョンでGlobe Projection(ウェブ地図を地球儀の形で投影する表現オプション)が実装されました。 以前の記事(リンク)では、これを使ってダイナミックに地球を周遊するストーリーマップの例を紹介しました。 本記事は、その他のユースケースとしてコロプレス地球儀の例を紹介します。 コロプレス地球儀 今回紹介するのは、地理情報の可視化における最も基本的な表現技法と言える統計色分け地図、いわゆる「コロプレス図」です。 例えば、国連開発計画(UNDP)が公開している各国の開発度合いを示す「人間開発指数(Human Development Index)」の数値による全世界の色分け地図だとこのようになります。 このような統計色分け世界地図も、Globe Pr

                                                            MapLibre GL JSのGlobe Projectionでコロプレス地球儀を作る - Qiita
                                                          • James Shore: Testing Without Mocks: A Pattern Language

                                                            Automated tests are important. Without them, programmers waste a huge amount of time manually checking and fixing their code. Unfortunately, many automated tests also waste a huge amount of time. The easy, obvious way to write tests is to make broad tests that are automated versions of manual tests. But they’re flaky and slow. Folks in the know use mocks and spies (I say “mocks” for short in this

                                                            • Rails: データベース変更をリアルタイム&低予算でユーザーにブロードキャストする(翻訳)|TechRacho by BPS株式会社

                                                              概要 元サイトの許諾を得て翻訳・公開いたします。 英語記事: Broadcasting real-time database changes on a budget | justin․searls․co 原文公開日: 2024/08/04 原著者: Justin Searls -- Test Doubleの共同創業者です 日本語タイトルは内容に即したものにしました。 私がBeckyの筋トレビジネス用のアプリ(まだリリースしていません)を構築しているときには、アプリをサーバーサイドとクライアントサイドに分けずに動的なフロントエンドらしい振る舞いを得るためにHotwireのTurboとStimulusの組み合せを大いに活用しました(なお、これらはRailsがなくても使えるのですが、率直に言うとそうしている人はほとんど見かけません)。 Hotwireというライブラリスイートが提供する幅広い機能に

                                                                Rails: データベース変更をリアルタイム&低予算でユーザーにブロードキャストする(翻訳)|TechRacho by BPS株式会社
                                                              • ECMAScript proposal: iterator helpers

                                                                Update 2022-12-15: New section “How will this proposal affect future JavaScript APIs?” In this blog post, we look at the ECMAScript proposal “Iterator helpers” by Gus Caplan, Michael Ficarra, Adam Vandolder, Jason Orendorff, Kevin Gibbons, and Yulia Startsev. It introduces utility methods for working with iterable data: .map(), .filter(), .take(), etc. The style of the proposed API clashes with th

                                                                1