なぜ「テストを書く理由」が重要なのか テストもプログラムの一部 ただし、直接は機能を追加しない しかも、メンテナンスコストは高い
なぜ「テストを書く理由」が重要なのか テストもプログラムの一部 ただし、直接は機能を追加しない しかも、メンテナンスコストは高い
かれこれ1年くらい Google Closure Library を仕事でガッツリ使ってます。 それまでは jQuery でよくね?と思ってたのですが、もはや Closure Library なしでブラウザの大規模UI作るなんて考えられない!というくらい馴染んでしまいました。 ソースも綺麗だし空いたときにソース読んでるだけでも勉強になります。さすが Google さん。 中でも goog.events.EventHandler & goog.events.EventTarget は DOM に依存せずオブジェクト間で簡単に通信ができて便利。 自宅で軽いサンプル作るときにも使いたいな、でも軽く使うには Closure Library はめんどくさすぎ。 ということで仕組みだけそのままにシンプルなものを作ってみました。 // Base object. var util = { events:
Alignment and Autonomy in Cybozu - 300人の開発組織でアラインメントと自律性を両立させるアジャイルな組織運営 / RSGT2025
JSON5 is an extension to the popular JSON file format that aims to be easier to write and maintain by hand (e.g. for config files). It is not intended to be used for machine-to-machine communication. (Keep using JSON or other file formats for that. 🙂) JSON5 was started in 2012, and as of 2022, now gets >65M downloads/week, ranks in the top 0.1% of the most depended-upon packages on npm, and has b
bunyip Automate client-side unit testing in real browsers using the CLI Getting Started Install the module with: npm install -g bunyip. This is a CLI tool so it needs to be globally installed. BrowserStack account In order for bunyip to flex its real muscle I recommend you get a paid BrowserStack account as all paid accounts have access to their API. Without the API you'll need to connect your own
Bunyip: client-side unit testing made easy Let’s face it doing thorough client-side unit testing fills me with rage, throw mobile browsers into the mix and I want to start flipping tables. There are tools out there to somewhat tackle this issue but they either require painful setups or want you to rewrite your unit tests using their framework. What if I told you there’s a tool that is easy to get
http://millermedeiros.github.com/amd-utils Modular JavaScript utilities written in the AMD format. All code is library agnostic and consist mostly of helper methods that aren't directly related with the DOM, the purpose of this library isn't to replace Dojo, jQuery, YUI, Mootools, etc, but to provide modular solutions for common problems that aren't solved by most of them. Main goals increase code
Standard built-in objectsStringConstructorString() constructorStatic methodsString.fromCharCode()String.fromCodePoint()String.raw()Instance methodsString.prototype.anchor() Deprecated String.prototype.at()String.prototype.big() Deprecated String.prototype.blink() Deprecated String.prototype.bold() Deprecated String.prototype.charAt()String.prototype.charCodeAt()String.prototype.codePointAt()String
A couple of weeks ago it seemed my daily business became sorting DOMElements. This quickly became boring enough to be investigated more thoroughly. So this post sums up everything you should know about sorting DOMElements in Javascript (… using jQuery, of course). I usually write about Array.sort rather than Array#sort. Simply because I never know when to use which. But no worries, @mathias is her
今週は Firefox 13 がリリースされ、続けて Firefox 14 のベータ版も公開されました。ベータ期間中は安定性や互換性の修正が行われるのみで、基本的には新機能は追加されません。Firefox 14 のリリースは 7/17 を予定していますが、機能がほぼ確定するベータ版リリースに合わせ一足先に主な新機能と改良点をご紹介します。 Android 版は抜本的な再設計を行っており、ベータ期間を長く取るため既にベータ版を Google Play で公開中です。Android 端末をお持ちの方は、起動時間の短縮やパフォーマンスの向上をした上でユーザインターフェイスの刷新や Flash サポートを行った新バージョンをお試しください。 Firefox 14 の特長 Firefox 14 では組み込みの Google 検索に HTTPS を利用するようにしたり、ロケーションバーのサイト情報表示
A set of source files that extends the UITableView so that it has sections that can be collapsed and expanded. Download source code - 101.9 KB Introduction I was once working on an iPhone application that shows a large number of inputs, grouped into various categories, in a UITableView. To change the value of one of the inputs, the user presses the corresponding row in the table view and alters th
In Visual Studio 2022 17.10 Preview 2, we’ve introduced some UX updates and usability improvements to the Connection Manager. With these updates we provide a more seamless experience when connecting to remote systems and/or debugging failed connections. Please install the latest Preview to try it out. Read on to learn what the Connection ...
「売買はリンク共有ぐらい簡単になるべき(Sell like you share)」というキャッチフレーズで一時期話題になったGumroadに、サイト内決済用のウィジェット「Gumroad modal」が追加されていた。 ECを少しでも齧かじっているなら一つのページ遷移せんいがどれだけ売り上げを落とすことか身に染みて感じているはずだ。Google Analyticsのユーザーナビゲーションを解析すると、30%脱落、ユーザー情報入力で更に半分が脱落、配送先の入力で更に半分が脱落……と減っていき、カートに入れようと一度は決心したお客様の30%しか最後までたどり着けないなんてことは珍しくない。 数万円の商品なら、またはAmazonなどの他のチャネルでも販売しているならば、価格を比較して他で買っているかもしれないし、送料が高かったかな、なんて推測も可能なんだろうが、電子書籍やレポートのようなデジタル
I am extremely confident that Apple will introduce the ability to set blocks as actions for UIActionSheet (and UIAlertView) in iOS 6. Still, for exercise and because I want to support iOS 5 until iOS 6 is actually released, I set out to implement that. When I tweeted about it, several people pointed me to existing implementations: Gustavo Ambrozio’s BlockAlertsAnd-ActionSheets Zachary Waldowski’s
Check your spelling as you go. For example type “helllo” then space and Universal Text Input will suggest you change that to “hello”. Use arrows to navigate to a correction then pick it by pressing space/enter or just start typing the next word. Use English letters to phonetically type words in your language, and Universal Text Input will convert the letters for you. For example type “salam” to ge
昨日 (6月6日) に Firefox の最新版であるバージョン 13 が正式リリースされました。 この Firefox 13 で実装された新機能や変更点に関しては下記の記事で紹介されていますが、 Firefox 13 の主な新機能を紹介します : Mozilla Developer Street (modest) アクセシビリティコンサルティングを提供する Paciello Group の公式 Blog で、新しい Firefox 13 が canvas 要素のフォールバックコンテンツに対するフォーカスに対応したことに関する記事が上がっていましたので、紹介して見ようかと思います。 原文: HTML5 Canvas Accessibility in Firefox 13 : The Paciello Group Blog 完全な対訳ではなく、わかりやすいようにポイントをかいつまみながら訳し
一気に紹介 spread array テストコード:mozilla-central mozilla/js/src/jit-test/tests/basic/spread-array.js var a1 = [2,3,4,5]; var a2 = [1, ...a1, 6]; // => [1,2,3,4,5,6] なんていうか、Array#concatみたいな感じでもある。[ ...arryObj, ]とすることでarryObjが展開される。 正直ちょいと使い道が思いつかない...。 Numberビルトインオブジェクトに幾つかメソッド追加 ES.next ではNumberオブジェクトに多くのメソッド追加が提案されていて、その一部 Number.isNaN() isNaN()と一緒 テストコード:mozilla-central mozilla/js/src/jit-test/tests/ba
※この記事は英語文書を翻訳したものです。 Building Smartphone-Optimized Websites – Webmasters — Google Developers (訳者 2014/7/1追記:Googleのスマートフォンサイトの移行ガイドラインを元にしたスマホサイトの移行のポイントも合わせてご参考ください。) Googleがサポートするスマートフォンに最適なサイトの構成は以下の三通りあります。 【Google推奨】レスポンシブウェブデザイン。 これは、すべてのデバイスに同じURLを用いて、各URLにアクセスするとすべてのデバイスに同じHTMLが送信され、CSSのみを用いて各デバイスでページをどのように表示するか決める方法です。 ユーザーエージェントによるデバイスごとの出し分け。 これは、すべてのデバイスに同じURLを用いますが、各URLにアクセスすると各デバイスごと
This document discusses hardware acceleration on mobile browsers. It covers the challenges of rendering web pages on mobile devices due to their fundamental physical limitations of available memory, bus bandwidth, and speed differences between the CPU and GPU. It also discusses how graphics are optimized for games with fixed geometry, transformations, and textured triangles which allows for parall
どもー。お久しぶりです。(o・ω・o) なんかずいぶん間が空いたような気がします。 最近ばたばたしてます。 苗字が変わりました。 相変わらずJavaScriptスキーです。 今日は、stevesouders.comの『Self-updating scripts』という記事の和訳を載せてみます。 この人は、Yahoo!アメリカでYSlow!を作ったり、『ハイパフォーマンスWebサイト ―高速サイトを実現する14のルール』を書いたりしている人です。 この記事では、JSのURLの最後に「?ver=20120607」とかをつけなくても、そのJSのキャッシュ期間を無視してスクリプトを取得する方法を検証しています。 Twitterウィジェットとか、外部から提供されるスクリプトのキャッシュが短すぎて、Webページのパフォーマンスが落ちてしまうことに対する解決策です。 まぁ、結局はTwitter側がコー
Thank you, Firebug. You made the web amazing for all! The story of Firefox and Firebug are synonymous with the rise of the web. We fought the good fight and changed how developers inspect HTML and debug JS in the browser. Firebug ushered the Web 2.0 era. Today, the work pioneered by the Firebug community through the last 12 years lives on in Firefox Developer Tools. Switch to the latest version of
I recently posted on creating static table views with storyboards. In this post I want to look at some other changes introduced with iOS 5 to make it easier to create dynamic table views. An Example Of Custom Table View Cells For the purposes of this discussion I am going to use an example App which consists of a single table view. The App is named WorldFacts and can be found in my Code Examples g
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く