Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Idiomatic coding

tim-hr edited this pageNov 3, 2016 ·1 revision

Overview

"Idiomatic" coding following the conventions of a given language. It is the most concise, convenient, and common way of accomplishing a task in that language, rather than forcing it to work in a way that you are familiar with in a different language.

A simple example in JS

Awkward:

if (out === "") {  // blah}

Awkward:

if (out === undefined) {  // blah}

Idiomatic:

if (!out) {  // blah}
Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp