Unverified Kaydet (Commit) 0087be76 authored tarafından Mert Can Bilgiç's avatar Mert Can Bilgiç Kaydeden (comit) GitHub

Yazım Şekli çevrildi

çağırılan ve çağıran fonksiyon kısmındaki kodları çevirmedim
üst 6388fafc
...@@ -1877,57 +1877,56 @@ getdata() ...@@ -1877,57 +1877,56 @@ getdata()
**[⬆ en başa dön](#içindekiler)** **[⬆ en başa dön](#içindekiler)**
## **Formatting** ## **Yazım Şekli**
Formatting is subjective. Like many rules herein, there is no hard and fast Yazım şekli özneldir. Buradaki birçok kural gibi, uymanız gereken zor ve
rule that you must follow. The main point is DO NOT ARGUE over formatting. sıkı bir kural yoktur. Yazım şekli üzerinde TARTIŞMAYIN.
There are [tons of tools](http://standardjs.com/rules.html) to automate this. Bunları otomatikleştirmek için [binlerce araç](http://standardjs.com/rules.html) vardır.
Use one! It's a waste of time and money for engineers to argue over formatting. Birini kullanın! Mühendisler için, yazım şekli üzerinde tartışmak zaman ve para kaybıdır.
For things that don't fall under the purview of automatic formatting Otomatik formatlama kapsamına girmeyen şeyler
(indentation, tabs vs. spaces, double vs. single quotes, etc.) look here (girintileme, tab veya boşluk, çift veya tek tırnak vb.) hakkında rehberlik
for some guidance. için buraya bakın.
### Use consistent capitalization ### Büyük harf kullanımınız tutarlı olsun
JavaScript is untyped, so capitalization tells you a lot about your variables, JavaScript'in bir yazım kuralı yoktur, bu yüzden büyük harf kullanımı size değişkenler,
functions, etc. These rules are subjective, so your team can choose whatever fonksiyonlar vb. şeyler hakkında birçok bilgi verir. Bu kurallar özneldir, yani ekibiniz istediğini
they want. The point is, no matter what you all choose, just be consistent. seçebilir. Önemli olan neyi seçtiğiniz değildir, seçtiğinizde tutarlı olmanızdır.
**Kötü:** **Kötü:**
```javascript ```javascript
const DAYS_IN_WEEK = 7; const HAFTANIN_GUN_SAYISI = 7;
const daysInMonth = 30; const ayinGunSayisi = 30;
const songs = ['Back In Black', 'Stairway to Heaven', 'Hey Jude']; const sarkilar = ['Back In Black', 'Stairway to Heaven', 'Hey Jude'];
const Artists = ['ACDC', 'Led Zeppelin', 'The Beatles']; const Sanatcilar = ['ACDC', 'Led Zeppelin', 'The Beatles'];
function eraseDatabase() {} function veritabaniniSil() {}
function restore_database() {} function veritabanini_kurtar() {}
class animal {} class hayvan {}
class Alpaca {} class Alpaka {}
``` ```
**İyi:** **İyi:**
```javascript ```javascript
const DAYS_IN_WEEK = 7; const HAFTANIN_GUN_SAYISI = 7;
const DAYS_IN_MONTH = 30; const AYIN_GUN_SAYISI = 30;
const SONGS = ['Back In Black', 'Stairway to Heaven', 'Hey Jude']; const SARKILAR = ['Back In Black', 'Stairway to Heaven', 'Hey Jude'];
const ARTISTS = ['ACDC', 'Led Zeppelin', 'The Beatles']; const SANATCILAR = ['ACDC', 'Led Zeppelin', 'The Beatles'];
function eraseDatabase() {} function veritabaniniSil() {}
function restoreDatabase() {} function veritabaniniKurtar() {}
class Animal {} class Hayvan {}
class Alpaca {} class Alpaka {}
``` ```
**[⬆ en başa dön](#içindekiler)** **[⬆ en başa dön](#içindekiler)**
### Function callers and callees should be close ### Çağırılan ve çağıran fonksiyonlar birbirine yakın olmalıdır.
If a function calls another, keep those functions vertically close in the source Eğer bir fonksiyon diğerini çağırıyorsa, kodda onları dikey olarak birbirine yakın tutun. İdeal olarak, çağıran fonksiyonu çağırılanın hemen üzerinde tutun. Kodları tıpkı gazete okur gibi
file. Ideally, keep the caller right above the callee. We tend to read code from yukarıdan aşağıya doğru okuruz. Bu nedenle, kodunuzun bu yolda okunabilmesini sağlayın.
top-to-bottom, like a newspaper. Because of this, make your code read that way.
**Kötü:** **Kötü:**
```javascript ```javascript
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment