並び順

ブックマーク数

期間指定

  • から
  • まで

121 - 160 件 / 7737件

新着順 人気順

Namingの検索結果121 - 160 件 / 7737件

  • Goらしいコードの書き方(ミニ)

    Goらしいコードの書き方(ミニ) Go 1.6 Release Party 17 February 2016 鵜飼文敏 Fumitoshi Ukai Google Software Engineer - Chrome Infra team 巻末付録「Goらしいコードの書き方」を書きました。 Ebook is now available! 2 Go 1.6 言語仕様の変更 -> なし! Goらしいコードの書き方は基本的にかわっていない。 golang.org/doc/effective_go.html github.com/golang/go/wiki/CodeReviewComments 3 Effective Go Go is a new language. Although it borrows ideas from existing languages, it has unusual

    • perldelta - perl 5.10.0 の新機能

      perldelta - perl 5.10.0 の新機能 perldelta - what is new for perl 5.10.0 名前 NAME perldelta - perl 5.10.0 の新機能 perldelta - what is new for perl 5.10.0 説明 DESCRIPTION このドキュメントでは 5.8.8 リリースと 5.10.0 リリースとでの相異点を 説明します. This document describes the differences between the 5.8.8 release and the 5.10.0 release. 5.10.0 でのバグ修正の多くは既に 5.8.X メンテナンスリリースで見ることができます; それらはここには重複しないで, perl58[1-8]?delta の マニュアルページ群に記載し

      • Node.js Best Practices - RisingStack Engineering

        Join 150K+ monthly readers. In-depth articles on Node.js, Microservices, Kubernetes and DevOps. We get asked about Node.js best practices, tips all the time – so this post intends to clean things up, and summarizes the basics of how we write Node.jsNode.js is an asynchronous event-driven JavaScript runtime and is the most effective when building scalable network applications. Node.js is free of lo

        • PEP 8 – Style Guide for Python Code | peps.python.org

          PEP 8 – Style Guide for Python Code Author: Guido van Rossum <guido at python.org>, Barry Warsaw <barry at python.org>, Alyssa Coghlan <ncoghlan at gmail.com> Status: Active Type: Process Created: 05-Jul-2001 Post-History: 05-Jul-2001, 01-Aug-2013 Table of Contents Introduction A Foolish Consistency is the Hobgoblin of Little Minds Code Lay-out Indentation Tabs or Spaces? Maximum Line Length Shoul

            PEP 8 – Style Guide for Python Code | peps.python.org
          • プロパティに対応するインスタンス変数の命名規則について - Awaresoft

            最近になって変わったObjective-Cのインスタンス変数の命名規則について。 プロパティに対応するインスタンス変数の変数名をプロパティ名と別にすべきか、また、インスタンス変数名をアンダースコア(_)で始めるべきかどうか、さまざまな場所で議論になっているのを見てきて、自分も長い間悩んだ結果、結論が出たのでその経過をまとめておきます。 背景をとばして結論だけ見たい人はこちらへ。 iTunes Uのスタンフォード大学の"CS193p: iPad and iPhone Application Development"の講義は、iPhoneアプリをこれから作ろうという人にはもちろん、既に作っている中級者の方にとっても、見る価値があると思います。 特に、Paul Hegartyによる2011年秋の講義はiOS5に完全に対応していて、説明も非常に分かりやすく、必見です。何と言っても、こんな白髪白髭の

            • Coding Conventions - Flex SDK - Confluence

              Flex SDK coding conventions and best practices Note: This page is not yet complete and has some sections marked TBD. But there's plenty here to get you started! Introduction This document lays out the coding standards for writing open-source Flex framework components in ActionScript 3. Adhering to these standards makes the source code look consistent, well-organized, and professional. Some of thes

              • YouTube、なんと韓国ユーザー全てのアクセス遮断…ツール使い、韓国が国家ぐるみでK-POP人気捏造したため:ハムスター速報

                YouTube、なんと韓国ユーザー全てのアクセス遮断…ツール使い、韓国が国家ぐるみでK-POP人気捏造したため Tweet カテゴリニュース 1:☆ばぐた☆ ◆JSGFLSFOXQ @☆ばぐ太☆φ ★:2011/09/12(月) 11:36:32.82ID:???0 ★ユーチューブが韓国を遮断 K-POP宣伝ツールに使った報い ・Googleが運営する動画共有サービス「YouTube」が韓国からのアクセスを遮断したと発表。  「韓国」と設定されているユーザーは動画をアップロードすることができなくなり、また再生にも  規制が掛けられ、再生数も反映されなくなるという。 何故このような処置が執られたのだろうか? 実は韓国は国家ぐるみで自国K-POP推しを  するために「YouTube」を使い、再生数を何百万回と再生数を上げているのだ。通常「YouTube」では  1ユーザーにつき1日回までしか

                • Go Style

                  Documents The Style Guide outlines the foundation of Go style at Google. This document is definitive and is used as the basis for the recommendations in Style Decisions and Best Practices. Style Decisions is a more verbose document that summarizes decisions on specific style points and discusses the reasoning behind the decisions where appropriate. These decisions may occasionally change based on

                  • 他言語プログラマが最低限、気にすべきGoのネーミングルール

                    概要 タイトルの通り、他言語から入門した人が最低限気にするべき、ネーミングルールをまとめました。 対象読者 Goの基本構文を理解している人を対象読者としています。 この記事で説明すること、説明しないこと 説明すること Goのファイル名、変数名などの名前付けに関するルールや慣例などを説明します。 説明しないこと 名前付け以外で気をつけるべきGoの書き方[1] がいくつかあります。 しかし、それらに関してはこの記事では説明しません。 筆者のバックグラウンド プログラマ歴はもうすぐ8年程で、Goの他には以下のような言語の経験があります。 JavaScript TypeScript PHP Ruby Java Scala Goは少し前に書いて、一時期書かない時期が続いていましたが、最近また書いています。 トータルするとGoの経験は1年半程度です。 意識すべき名前付けルール package名 利用し

                      他言語プログラマが最低限、気にすべきGoのネーミングルール
                    • 20年ぶりにアップルの純正システムフォント

                      [San Francisco のレギュラー書体:Fast Company] Chicago フォントといえば初期の Macintosh ユーザーにとって懐かしい思い出だ。解像度の低い当時の白黒スクリーンに合わせてデザインされた Susan Kare のアイコンと Chicago フォントを覚えているひとは多い。 WatchKit の発表に併せて新しいシステムフォントが20年ぶりに姿を現した。 Apple Releases Its Most Important Typeface In 20 Years | Fast Company *     *     * 新しいシステムフォント「San Francisco」 Apple Watch のサードパーティ製アプリ開発用キット WatchKit が昨日アップルから発表された。フォント愛好家にはちょっとしたサプライズが含まれていた。20年ぶりにアッ

                        20年ぶりにアップルの純正システムフォント
                      • [iOS5] ARC (Automatic Reference Counting) : Overview » iOS 開発ブログ Natsu's note - iOS 開発ブログ Natsu's note

                        [iOS5] ARC (Automatic Reference Counting) : Overview 2011/11/16/|iOS|メモリ管理, iOS5, ARC iOS 5では数々の機能が追加されましたが、その中でも開発者の私たちにとって嬉しかったのはARC(Automatic Reference Counting)ではないでしょうか。そこで、ARCの概要から注意点まで、基本的なところを何回かに分けてまとめていきたいと思います。 ARCとは? ARC (Automatic Reference Counting) とは、その名の通り、自動リファレンスカウンタ。リファレンスカウンタ方式のメモリ管理を自動で(正確にはコンパイラが)行ってくれるというものです。 ご存知リファレンスカウンタ方式のメモリ管理では、retain, releaseなどのメソッドを用いて生成したオブジェクトの保持状

                          [iOS5] ARC (Automatic Reference Counting) : Overview » iOS 開発ブログ Natsu's note - iOS 開発ブログ Natsu's note
                        • 🍾🚀 webpack 3: Official Release!! 🚀🍾

                          After we released webpack v2, we made some promises to the community. We promised that we would deliver the features you voted for. Moreover, we promised to deliver them in a faster, more stable release cycle. No more year-long betas, no breaking changes between release candidates. We promised to do you right by you, the community that makes webpack thrive. The webpack team is proud to announce th

                            🍾🚀 webpack 3: Official Release!! 🚀🍾
                          • jQuery TOOLS - The UI library for the Web

                            Demo Area A small list of things you can do with this library. 1. Tabs The most important UI widget on the web Minimal setup for tabs Naming the tabs 3 different skins with CSS Loading tab contents with AJAX Handling browsers back button AJAX:ed tabs with History support Using mouseover to switch tabs Making Wizards with the Tabs Making Accordions with the Tabs Customizing the Accordion e

                            • Wikipedia公式の「不毛なWikipedia編集合戦」事例集

                              誰でも編集できるフリー百科事典のWikipediaには質の高い記事が多く存在しており、それらはWikipediaの編集に心血を注ぐ「ウィキペディアン」によって作成されていますが、時には生産性のない編集合戦が繰り広げられることも。こうした不毛な争いが行われた記事を特集したWikipediaの項目があったので、その中から興味深いものや日本人にとって身近なものをピックアップしてみました。 Wikipedia:Lamest edit wars - Wikipedia https://en.wikipedia.org/wiki/Wikipedia:Lamest_edit_wars ◆民族と国家の確執 Wikipediaの「不毛な編集合戦」のリストはいくつかの項目に分かれており、この民族や国にまつわる争いの項目にはショパンやニコラ・テスラなどの有名人の人種や出身国などを巡る議論が含まれています。 特に

                                Wikipedia公式の「不毛なWikipedia編集合戦」事例集
                              • HTML5

                                Table of contents 1 Introduction2 Common infrastructure3 Semantics, structure, and APIs of HTML documents4 The elements of HTML5 Microdata6 User interaction7 Loading web pages8 Web application APIs9 Communication10 Web workers11 Worklets12 Web storage13 The HTML syntax14 The XML syntax15 Rendering16 Obsolete features17 IANA considerationsIndexReferencesAcknowledgmentsIntellectual property rights F

                                • モダンなCSS設計パターンを考える

                                  The document summarizes Hiroki Tani's presentation at the QCon Tokyo 2014 conference on modern CSS architecture. Some key points discussed include: - Adopting modular approaches like OOCSS and SMACSS to separate structure from skin/style and improve maintainability. - Using techniques like BEM naming to further decouple CSS from HTML. - Developing reusable CSS modules and components with flexible

                                    モダンなCSS設計パターンを考える
                                  • jQuery Coding Standards & Best Practices

                                    All variables that are used to store/cache jQuery objects should have a name prefixed with a $. Always cache your jQuery selector returned objects in variables for reuse. var $myDiv = $("#myDiv"); $myDiv.click(function(){...}); Use camel case for naming variables. Use ID selector whenever possible. It is faster because they are handled using document.getElementById(). When using class selectors, d

                                      jQuery Coding Standards & Best Practices
                                    • DownThemAll! :: Add-ons for Firefox

                                      We're finally back! DownThemAll will help you select, queue, sort and run your downloads faster. It comes with advanced ways to select what links to download, and will remember your previous decisions so that you can queue more downloads with just OneClick! Advanced users will also like using renaming masks, which let you automatically assign names (and even sub-folders within your downloads folde

                                        DownThemAll! :: Add-ons for Firefox
                                      • 「C言語でプログラミングする際の覚書」の誤訳箇所 - アスペ日記

                                        ここでは、C言語でプログラミングする際の覚書の誤訳を列挙します。 参考として、私の翻訳はC言語プログラミングの覚え書き(改訳)にあります。 What follows is ... ×従うべきは ○これから述べるのは "What follows" で「続くもの」という意味です。ここでの「続く」というのは、現在の文章に続く、つまり「以下に述べること」です。 But they've been accumulating in my head, if not on paper until now, for a long time, ... ×しかし、私の意見は頭のなかにしばらくあったものをまとめたものであり、長らく文章として公開してきませんでした。 ○しかし、これらのことは、文書として書いたことはありませんでしたが、私の頭の中に長い時間をかけて蓄積してきたもので、… "if not on paper

                                          「C言語でプログラミングする際の覚書」の誤訳箇所 - アスペ日記
                                        • 【私的永久保存版】プログラミングで変数名・メソッド名をつけたり英語でコミットメッセージ書いたりするのに参考になる記事まとめ - MonockLaBlog

                                          こんにちは。みぃむ( id:ml_myme )です。 プログラミングをやる上で重要なのが変数名はメソッド名ですよね。 が!!英語が苦手なんです。本当に。 毎回ここで一番時間を使っているんじゃないかと思うほどに。 後々おかしくなって修正し直すのも大変だし・・・・コミットメッセージってそもそも・・・・ ということで大変お世話になったサイトを自分用にまとめておきます。 随時更新もしていく予定でいます。 変数名・クラス名 プログラミングとかウェブでよく出てくる小難しい英単語30選 - こちょこちょブログ 設計 - クラスの命名のアンチパターン - Qiita C言語編 - プログラミングに出る!英単語 Rails - プログラマなのに知らなかったら恥ずかしい英単語集 - Qiita Naming -名前付け- - Qiita メソッド名を考える時に読んでおきたい記事 プログラミング - うまくメソ

                                            【私的永久保存版】プログラミングで変数名・メソッド名をつけたり英語でコミットメッセージ書いたりするのに参考になる記事まとめ - MonockLaBlog
                                          • 論理構造を文脈に読み換えながら class 名を考える - 我的春秋

                                            POSH encapsulates the best practices of using semantic HTML to author web pages. Semantic HTML is the subset of HTML 4.01 (or XHTML 1.0) elements and attributes that are semantic rather than presentational. posh - Microformatsより 基本的にはより論理構造を意識した class名をつけることが、今日のお話の目的なんですが、semantic-class-names のリンク先にない新味は、論理構造を文脈に読み換えながら class 名を考えるという点。(ただし、普段から意識的に文書全体の構造に照らして class名をつけている方には、それほど新味はないかも。) 例によって

                                              論理構造を文脈に読み換えながら class 名を考える - 我的春秋
                                            • GitHub - golang-standards/project-layout: Standard Go Project Layout

                                              Standard Go Project Layout Translations: 한국어 문서 简体中文 正體中文 简体中文 - ??? Français 日本語 Português Español Română Русский Türkçe Italiano Vietnamese Українська Indonesian Overview This is a basic layout for Go application projects. It's not an official standard defined by the core Go dev team; however, it is a set of common historical and emerging project layout patterns in the Go ecosystem. Some of thes

                                                GitHub - golang-standards/project-layout: Standard Go Project Layout
                                              • 「欠陥ドメイン名」が世界的に増えそうな件について:Geekなぺーじ

                                                JPRSが「JPRSが、地域に根ざした新たなドメイン名空間「都道府県型JPドメイン名」の新設を決定」というプレスリリースを出しましたが、それに対して高木浩光氏から問題提起及び公開質問状のが行われました。 さらに、徳丸浩氏が、実際にcookieで問題が発生することを検証されていました。 高木浩光@自宅の日記: JPRSに対する都道府県型JPドメイン名新設に係る公開質問 徳丸浩の日記: 都道府県型JPドメインがCookieに及ぼす影響の調査 高木浩光氏が以下のように述べられています。 何もしなければ、「都道府県型JPドメイン名」の登録が始まっても、cookieを利用できないなどの欠陥ドメイン名となることが予想される。 「都道府県型JPドメイン名」が開始されるにあたって、指摘されているような問題は実際に発生すると思われるので、JPRSが公開質問状に答えることを期待したいところです。 で、今回のこ

                                                • How we use Web Components at GitHub

                                                  EngineeringHow we use Web Components at GitHubAt GitHub, we pride ourselves on delivering a first-class developer experience. A considerable part of our work is on our front end, which we strive to keep as lightweight, fast,… At GitHub, we pride ourselves on delivering a first-class developer experience. A considerable part of our work is on our front end, which we strive to keep as lightweight, f

                                                    How we use Web Components at GitHub
                                                  • サントリーが「東海(日本海)」と併記している鏡月グリーンのHP削除して逃走:ハムスター速報

                                                    サントリーが「東海(日本海)」と併記している鏡月グリーンのHP削除して逃走 Tweet カテゴリ高岡蒼甫フジテレビ騒動 前スレ:サントリーが東海(日本海)と併記している件について http://hamusoku.com/archives/5632388.html 1 :名無しさん@涙目です。(神奈川県):2011/08/19(金) 10:15:33.67 ID:1ORgtiCi0 ?BRZ(10104) ポイント特典 http://www.suntory.co.jp/sho-chu/kyougetsu/naming.html(削除済み) 魚拓 http://megalodon.jp/2011-0819-0550-21/www.suntory.co.jp/sho-chu/kyougetsu/html/naming.html 3 :名無しさん@涙目です。(西日本):2011/08/

                                                    • Effective AWK Programming A User's Guide for GNU Awk

                                                      Effective AWK Programming A User's Guide for GNU Awk Edition 1.0.4 April, 1999 Arnold D. Robbins はじめに awkとgawkの歴史 The GNU Project and This Book Acknowledgements Introduction Using This Book Dark Corners Typographical Conventions 例で使用するデータファイル Getting Started with awk A Rose By Any Other Name awkプログラムの実行の仕方 使い捨ての一発awkプログラム 入力ファイルなしのawkの実行 長いプログラムを実行する 実行可能なawkプログラム awkプログラム中のコメント 非常に単純な例 二つのルールを持つ例

                                                      • 我的春秋 コード共有のためのネーミングルール

                                                        最近、CSS の使いまわしなどを視野に入れ、一部で class名や id名の共有というテーマへの関心が徐々に高まりつつあるような印象です。microformats なんかも、その流れのひとつといえるでしょう。 Naming conventions table(And all that Malarkey) もう、class名やid名で悩まないんだからっ!!(CSS HappyLife) (X)HTML の id/class における命名規則(purprin さん CSS Flight プレゼンスライド) 名前の共有はコードの共有のための(複数人で同一コードを編集・転用する)重要なファクターのひとつですし、非常にいい傾向だとは思うんですけど、実際につけられている名前を見てみると、シブい顔をせざるを得ない事例が結構あるようです。 コード共有のためには避けたい命名事例 構造ではなく見栄えで命名して

                                                          我的春秋 コード共有のためのネーミングルール
                                                        • Google Python Style Guide

                                                          Revision 2.12 Amit Patel Antoine Picard Eugene Jhong Jeremy Hylton Matt Smart Mike Shields Each style point has a summary for which additional information is available by toggling the accompanying arrow button that looks this way: ▶. You may toggle all summaries with the big arrow button: Overview Important Note Displaying Hidden Details in this Guide ▶ This style guide contains many details

                                                          • プログラマが知っておくべきネーミングの基本 - Frasco

                                                            開発者の間で最も多い問題の一つはネーミングです。どのような名前にしようかと考えるのに何時間費やしたか、また、望ましくない名前を含むコードを理解するのに何時間費やしたか、数え切れません。オブジェクト名、メソッド名、クラス名、その他なんであろうが、そんなことは関係ありません。コードを書くよりも、コードを読む方に時間を費やしているということは証明されているので、良いネーミングをするということは、将来的に応えてくれるということなのです。 好ましい名前を使うことにより、あなたのコードはより良く、また、より簡潔なものとなります。良い名前をつけることで、コードのそれぞれの役割を直観的に識別しやすくなります。そして、将来、あなた自身が読むときと同様に、他の開発者があなたのアプリケーションを読むことを容易にしてくれます。 次の数分で、良いネーミングの重要性を説明し、良い名前を思いつくための有益なコツをシェア

                                                              プログラマが知っておくべきネーミングの基本 - Frasco
                                                            • Fullstack React: React Tutorial: Cloning Yelp

                                                              As we're writing the Fullstack React book, we get a lot of questions about how to build large applications with React and how to integrate external APIs. tl;dr - This post will guide you through building a full React app, even with little to no experience in the framework. We're going build a Yelp clone in React You can get the completed code here Try the demo here Download the first chapter of ou

                                                                Fullstack React: React Tutorial: Cloning Yelp
                                                              • gRPCのロードバランシング - はこべにっき ♨

                                                                先日の記事から引き続きgRPCについて勉強してる。 gRPCのサーバをプロダクトで利用する場合に気になるのが、ロードバランシングをどういう風にやったら良いのかということで、その部分について調べてみた。 TL;DR: gRPC Load Balancing を読めばだいたいわかる gRPCのロードバランシングのポイントとしては、gRPCが基本的にはHTTP2上に構築された仕組みである*1ことに注意して考えると良さそうだった。 プロキシ によるロードバランシング まず考えられるのは、gRPCのサーバとクライアントの間にプロキシを設置してロードバランシングを行う方法だ。 よくあるHTTP/1.1の世界で考えると、複数のWebアプリケーションサーバの前段にnginxのようなリバースプロキシを設置してロードバランシングする方法になる。 gRPCはHTTP/2を利用するので、この方法の場合リバースプロ

                                                                  gRPCのロードバランシング - はこべにっき ♨
                                                                • ECSのオペレーションを劇的に簡略化するAWS Copilotが発表されました! | DevelopersIO

                                                                  ECSの運用において作成しなければならない膨大なAWSリソースを劇的に簡単なコマンドでまるっと作成〜運用〜管理できるコマンドラインツールCopilotの紹介です。 「いざECSの運用はじめようとしても、作らないといけないものめっちゃあるよなぁ。正直しんどい…」 ECS環境の構築って考慮が必要な項目ってものすごく多いんですよね。ネットワーク関連、ロードバランサー、リポジトリ、データベース、ECSそのもの、さらにそれをデプロイするためのパイプラインやデプロイ設定。 そんな辛さを一気に解消するAWS Copilotが発表されました! AWS Copilot のご紹介 | Amazon Web Services ブログ 英語のブログ記事と同じタイミングで日本語がでるとは、toriの人も相当気合が入ってますね! Amazon ECS でのコンテナ実行に新たな体験を提供する AWS Copilot の

                                                                    ECSのオペレーションを劇的に簡略化するAWS Copilotが発表されました! | DevelopersIO
                                                                  • Ace - The High Performance Code Editor for the Web

                                                                    Built for Code Ace is an embeddable code editor written in JavaScript. It matches the features and performance of native editors such as Sublime, Vim and TextMate. It can be easily embedded in any web page and JavaScript application. Ace is maintained as the primary editor for Cloud9 IDE and is the successor of the Mozilla Skywriter (Bespin) project. /** * In fact, you're looking at ACE right now.

                                                                    • 70 Expert Ideas For Better CSS Coding | Smashing Magazine

                                                                      CSS isn’t always easy to deal with. Depending on your skills and your experience, CSS coding can sometimes become a nightmare, particularly if you aren’t sure which selectors are actually being applied to document elements. An easy way to minimize the complexity of the code is as useful as not-so-well-known CSS attributes and properties you can use to create a semantically correct markup. We’ve ta

                                                                      • Building a Simple DB in Rust - Part 1 - Parsing

                                                                        This article is part of the Building a Simple DB in Rust series. While I've used rust for a while and have had a few small projects in it, I felt like I was missing a truly "systems" project. So when I came across this series for making a simple DB in C, I figured why not try to make my basic DB in rust. I will roughly follow the structure of that series at first, but I will most likely deviate an

                                                                        • Front-end Developer Handbook 2019 - Learn the entire JavaScript, CSS and HTML development practice!

                                                                          Written by Cody Lindley Sponsored by Frontend Masters, advancing your skills with in-depth, modern front-end engineering courses Download: PDF | epub Overview: This is a guide that everyone can use to learn about the practice of front-end development. It broadly outlines and discusses the practice of front-end engineering: how to learn it and what tools are used when practicing it in 2019. It is s

                                                                            Front-end Developer Handbook 2019 - Learn the entire JavaScript, CSS and HTML development practice!
                                                                          • Python の __init__.py とは何なのか - Qiita

                                                                            Python を使い始めると、ディレクトリの階層で分けてファイルを管理したくなります。 そこで出てくるのが __init__.py ファイル。 これは一体何者なのか。 色々と情報がころがってはいるものの、なかなか納得行くように説明しているものが見当たりません。 Python のドキュメントでも、何を参照すれば正解なのかがわかりにくい1。 ということで、__init__.py についてまとめてみました。(少し長いです) 読み物形式で書いていますので、結論(「__init__.py の役割」)だけ見たい方はスクロールして最後の方を読んでください。 python コードの例は、主に 3.6/3.5 を使用しています2。 「モジュール」と「パッケージ」と「名前空間」 モジュールと階層構造 単一ファイルのモジュール ディレクトリによる階層構造と名前空間 ディレクトリと名前空間のマッピング __ini

                                                                              Python の __init__.py とは何なのか - Qiita
                                                                            • 命名規約 【Okapi Project】

                                                                              要約 変数やメソッド、クラスの名前に統一された名前をつけることは非常に大事なことです。初めてそのソースを見た人でも何に使われている変数なのか、どのような処理を行っているクラスやメソッドがあるのかがすぐにわかるようになります。 目次 2.命名規約 2.1.パッケージ名 2.2.ファイル名 2.3.クラス名 2.4.テストクラス名 2.5.例外クラス名 2.6.インターフェース名 2.7.抽象クラス名 2.8.定数(static final) 2.9.メソッド名 2.10.変数名全般 2.11.名前の対称性 2.12.ループカウンタ 2.13.スコープが狭い変数 2.14.大文字と小文字 2.命名規約 命名規約の基準として、各環境での OS がファイル名などに認めない文字列などは利用せず、基本的にはアルファベットのみで命名することとし、必要に応じて数字を利用することも認めます。命名においてはロ

                                                                              • Packagist

                                                                                Packagist is the main Composer repository. It aggregates public PHP packages installable with Composer. Define Your Dependencies Put a file named composer.json at the root of your project, containing your project dependencies: { "require": { "vendor/package": "1.3.2", "vendor/package2": "1.*", "vendor/package3": "^2.0.3" } } For more information about packages versions usage, see the composer docu

                                                                                • Railsでフォームオブジェクトを使った検索を簡単に実装する方法|TechRacho by BPS株式会社

                                                                                  RailsでFat ControllerになったらForm Classを作れ,という記事はあちこちで見るのですが,今一つ参考になるような実装があまり見つからなかったので記事にしてみました. Rails 3.2.13,Ruby 2.0.0系で動作確認済みです. Fat Controller問題 Railsで特に何も考えずに検索機能を作っていると,検索ロジックでcontrollerが膨らんできてしまうと思います(Fat Controller問題). 例えば,検索フォームの内容として最初は名前だけで検索するとのことで, HogeController < ApplicationController def index @hoges = Hoge.where("name LIKE ?", "%#{params[:name]}%") end end と書いていたのが,そのうちメールアドレスや住所でも絞

                                                                                    Railsでフォームオブジェクトを使った検索を簡単に実装する方法|TechRacho by BPS株式会社