タグ

jsに関するtyoro1210のブックマーク (41)

  • JavaScript で parseInt / parseFloat を使わない方が良い理由

    となるのが原因です。parseInt というのは、文字列を解析して整数値(int)を返すグローバル関数であり、引数をまず文字列に変換する仕様となっております。その段階で 0.0000005 が "5e-7" という文字列に変換されてしまい、その文字列の先頭の 5 だけが数字として解析されてしまったため、結果として parseInt(0.0000005) === 5 となりました。 なぜ String(0.000005) === "0.000005" に、String(0.0000005) === "5e-7" になるのかについては、この記事の最後で余談として説明します。 整数化には Math.trunc を使おう このように、parseInt は文字列を引数にすることを前提にしているため、速度の面でも可読性の面でも「小数値を整数値に変換したい」という場合に使うのは望ましくありません。最も望

    tyoro1210
    tyoro1210 2022/02/03
    明示的に cast しようとしてる関数の呼び出し時に、メソッドに渡す前に暗黙的な cast されてるのが渋いな
  • JavaScriptのバンドルとトランスパイルが不要なモダンWebアプリ | POSTD


    ES6Vanilla JS JavaScript2000RJSRuby-to-JavaScriptCoffeeScriptJavaScriptJavaScript JavaScript JavaScript2015ES6
    JavaScriptのバンドルとトランスパイルが不要なモダンWebアプリ | POSTD
    tyoro1210
    tyoro1210 2021/11/15
    『最後に残ったのはIE11でしたが、Microsoftは今年、ありがたいことにサポート終了を宣言しました』『膨大な量の複雑な作業をすっかりなくしてしまうことで、開発体験は言葉にできないほど劇的に変化します』
  • Web屋がJavaScriptでゲームを作ってSteamで配信するまでの道のり - Qiita


    Steam SteamWebWebViewGooglePlay SteamGooglePlayLP Web Steam Steam  
    Web屋がJavaScriptでゲームを作ってSteamで配信するまでの道のり - Qiita
    tyoro1210
    tyoro1210 2020/07/15
    心無いツッコミで、ボケの説明させられてるのかわいそう
  • Architecture  |  web.dev

    Architecture Stay organized with collections Save and categorize content based on your preferences. Designing your application to make the most out of the technology that makes PWAs reliable, installable, and capable starts with understanding your application and its constraints, and choosing an appropriate architecture for both. SPA versus MPA Today, there are two primary architectural patterns i

    Architecture  |  web.dev
    tyoro1210
    tyoro1210 2020/02/07
    『必要な最小限の HTML、CSS、JavaScript』 最低限の表示に必要な部分だけ独立してキャッシュしておく手法
  • Vim を WebAssembly に移植した - はやくプログラムになりたい


    6WebAssembly  WebAssembly Vim  WebAssembly  github.com     Chrome  Firefox  Safari  Edge 使 macOS  Safari  1MBfetch keydown 
    Vim を WebAssembly に移植した - はやくプログラムになりたい
    tyoro1210
    tyoro1210 2019/12/05
    『WebAssembly 向けの UI を GUI gui_wasm として実装』『C のレイヤーから JavaScript に描画イベントを送り,JavaScript 側で描画する』『同期的に入力待ちをする関数の実装を要求』
  • Chart.js

    New in 4.0 Colors plugin Default palette of Chart.js brand colors is available as a built-in time-saving zero-configuration plugin.

    Chart.js
    tyoro1210
    tyoro1210 2017/10/18
  • Reactを使うとなぜjQueryが要らなくなるのか - Qiita


     React React.js1 jQuery   ES2015 (ES6) 使 const  2023 
    Reactを使うとなぜjQueryが要らなくなるのか - Qiita
  • 8x9Craft ハッククラフト


      8x9Craft  Scratch  8x9CraftMinecraft®
    8x9Craft ハッククラフト
  • Node.jsで書かれたIRC bouncer、homura を作りました - はこべにっき ♨


     IRC proxy  IRC bouncer IRC便ZNCtiarra  IRC bouncer Node.jshomuraIRC bouncermadoka homuraIRC bouncerTLSaway(READMEmodules
    Node.jsで書かれたIRC bouncer、homura を作りました - はこべにっき ♨
  • フレームワーク対決!Angular VS React仮想パネルディスカッション


    AngularVSReact   AngularJSJavaScript MVCFluxReact AngularReactdi
    フレームワーク対決!Angular VS React仮想パネルディスカッション
  • Backbone.JSからAngular2まで、全9大JavaScriptフレームワークを書き比べた! - paiza times

    (English article is here.) こんにちは、吉岡([twitter:@yoshiokatsuneo])です。 ウェブ開発に欠かせないJavaScriptフレームワークですが、日々発展しておりReact.js, Ractive.js, Aurelia.js, AngularJS2.0など次々と新しいフレームワークが出てきています。 一体どれを使えばいいのか?何が違うのか?何から調べていいのか迷うことがあります。 そこで、現時点で事実上全てとなる、9大主要フレームワークについて、実際に使ってみて比較を行います。 Backbone.js Ember.js Knockout.js AngularJS(1.x) React.js Ractive.js vue.js Aurelia.js AngularJS2.0(アルファ版) これらのフレームワークでは、以下のような機能が実現さ

    Backbone.JSからAngular2まで、全9大JavaScriptフレームワークを書き比べた! - paiza times
  • JSHint, a JavaScript Code Quality Tool

    Report Cyclomatic complexity Unused variables Undefined variables Warn About == null About debugging code About unsafe for..in About arguments.caller and .callee About assignments if/for/... About functions inside loops About eval About unsafe line breaks About potential typos in logical operators When code is not in strict mode When new is used for side-effects Assume Browser NodeJS jQuery Develo

  • Happy 25th birthday Game Boy

    The ultimate Game Boy Tetris experience for scrolling enthusiasts. Created by Petr Tichy using Superscrollorama.js.

    Happy 25th birthday Game Boy
  • We are Locutus

    All your standard libraries will be assimilated into our JavaScript collective. Resistance is futile. Welcome to Locutus, where the boundaries of coding languages blur. We’re a dedicated collective developers on a mission to explore the possibilities of porting standard libraries from various programming language (Go, Ruby, PHP, C) to JavaScript. Our journey is one of discovery, innovation, and so

  • 通常のリンクをリファラを送らないリンクに変える【JavaScript】 - Programming Magic


    data使URLOpera9.50Opera9.64Opera  - referrer testOpera Opera ::  dataOpera JavaScript (WindowsXPIE6IE7Firefox2Opera9Safari
    tyoro1210
    tyoro1210 2014/03/26
  • リファラを送らないリンクを作ってみる


      辿   URL   調Opera (調Opera) Opera Opera  
    tyoro1210
    tyoro1210 2014/03/26
  • PayPal社がバックエンドをJavaからJavaScriptへ移行

    Spring BootによるAPIバックエンド構築実践ガイド 第2版 何千人もの開発者が、InfoQのミニブック「Practical Guide to Building an API Back End with Spring Boot」から、Spring Bootを使ったREST API構築の基礎を学んだ。このでは、出版時に新しくリリースされたバージョンである Spring Boot 2 を使用している。しかし、Spring Boot3が最近リリースされ、重要な変...

    PayPal社がバックエンドをJavaからJavaScriptへ移行
  • Koa - next generation web framework for node.js

    IntroductionKoa is a new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more robust foundation for web applications and APIs. By leveraging async functions, Koa allows you to ditch callbacks and greatly increase error-handling. Koa does not bundle any middleware within its core, and it provides an elegant suite of methods that make writing serve

    tyoro1210
    tyoro1210 2013/12/24
  • [GDC 2013]Webブラウザで「Unreal Engine 3」がヌルヌル動く!? ゲームエンジンを5日でHTML5へ移植した驚きの技術とは


    GDC 2013WebUnreal Engine 3!?5HTML5   Game Developers Conference 2013GDC 20132326WebFirefoxMozilla FoundationMozillaFast and Awesome HTML5 GamesHTML5 HTML5Web
    [GDC 2013]Webブラウザで「Unreal Engine 3」がヌルヌル動く!? ゲームエンジンを5日でHTML5へ移植した驚きの技術とは
  • Webの未来 〜 PNaClとasm.jsでカワルミライ - いま、モバイルWebの先端で起こっていること

    Webの未来 〜 PNaClとasm.jsでカワルミライ - いま、モバイルWebの先端で起こっていること

    Webの未来 〜 PNaClとasm.jsでカワルミライ - いま、モバイルWebの先端で起こっていること