-
Notifications
You must be signed in to change notification settings - Fork 27
#4 Future JavaScript Now - Classes cevirisi tamamlandi #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ozgunbal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mustafadinler 4'ü de birleşince büyük bir commit olmuş. Okurken yoruldum :D Gördüklerimi yazdım ama gözden kaçanlar da olmuş olabilir. Bu PR özelinde bi reviewer daha olması fena olmaz diye düşünüyorum.
docs/classes-extensibility.md
Outdated
| #### Sınıf genişletilebilirliği | ||
|
|
||
| People often add properties to classes from other JavaScript libraries. Here is a simple JavaScript example of this: | ||
| İnsanlar sıklıkla diğer JavaScript kitaplıklarındaki sınıflara özellikler ekler. İşte basit bir JavaScript örneği: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
library için bir yerde kütüphane, bir yerde kitaplık kullanılmış. Benim gönlüm kütüphaneden yana ama yine de tartışmaya açık :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bencede kutuphane o sekilde guncelleyecegim
docs/classes-emit.md
Outdated
| @@ -1,5 +1,5 @@ | |||
| #### What's up with the IIFE | |||
| The js generated for the class could have been: | |||
| #### IIFE Nedir Ne Değildir? | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bence araya virgül koymalıyız. "nedir, ne değildir?
docs/classes-emit.md
Outdated
| ``` | ||
|
|
||
| The reason its wrapped in an Immediately-Invoked Function Expression (IIFE) i.e. | ||
| Sebebi Anlık-Çağrılan Fonksiyon İfadesi (Immediately-Invoked Function Expression) (IIFE) ile sarmalanmıştır, yani: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"sebebi ... ile sarmalanmıştır" olmuş çeviri. -> "Bunun sebebi ... ile sarmalanmasıdır" daha iyi
docs/classes-emit.md
Outdated
|
|
||
| ### `__extends` | ||
| You will notice that as soon as you inherit a class TypeScript also generates the following function: | ||
| Şunu farkedeceksiniz ki bir sınıftan kalıtım yaptığınız anda TypeScript ayrıca aşağıdaki fonksiyonu da oluşturur: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
farkedeceksiniz -> fark edeceksiniz
"inherit" için "kalıtım yapmak" dışında bir alternatif olabilir mi acaba? Aklıma bir şey gelmedi ama okurken çok bir şey ifade etmedi kalıtım yapmak.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
turemek veya turetmek nasil olur?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
daha iyi bence.
"Şunu fark edeceksiniz ki bir sınıftan alt bir sınıf türettiğinizde Typescript...." olabilir.
| 1. sets up the child class function's prototype to optionally lookup members on the parent's `proto` i.e. effectively `d.prototype.__proto__ = b.prototype` | ||
| Burada `d` türetilmiş sınıfı ve `b` üst sınıfı ifade eder. Bu fonksiyon iki şey yapar: | ||
| 1. `for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];` yani üst sınıfının statik elemanlarını alt sınıfının üzerine kopyalar | ||
| 1. `d.prototype.__proto__ = b.prototype` yani etkin biçimde, alt sınıfının fonksiyonlarının prototiplerini isteğe bağlı olarak arama elemanlarına üst sınıfının `proto`'ları üzerinde atama yapar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bence pek anlaşılır olmamış. Burası için önerisi olan var mı?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Burada cift tirnak icerisindeki esitligi acikliyor. Benimde pek icime sinmedi destek lazim:)
docs/classes-emit.md
Outdated
| bird.fly(); | ||
| ``` | ||
| Basically `bird.fly` will be looked up from `bird.__proto__.fly` (remember that `new` makes the `bird.__proto__` point to `Bird.prototype`) and `bird.walk` (an inherited member) will be looked up from `bird.__proto__.__proto__.walk` (as `bird.__proto__ == Bird.prototype` and `bird.__proto__.__proto__` == `Animal.prototype`). | ||
| Aslında `bird.fly` `bird.__proto__.fly`'da aranacaktır (remember that `new`'ın `bird.__proto__`'nun `Bird.prototype`'u işaret ettireceğini hatırlayın) ve `bird.walk` (türetilen eleman) `bird.__proto__.__proto__.walk`'da aranacaktır (`bird.__proto__ == Bird.prototype` ve `bird.__proto__.__proto__` == `Animal.prototype` gibi). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"remember that" orada kalmış.
| ### Sınıflar | ||
| JavaScript'teki yüksek öncelikli öğeler olan sınıflara sahip olmak şu nedenlerden ötürü önemlidir: | ||
| 1. [Sınıflar, soyutlama için faydalı bir yapı sunarlar.](./tips/classesAreUseful.md) | ||
| 2. Geliştiricilere, kendi sürümleriyle gelen frameworkler (emberjs,reactjs etc) yerine, sınıfları kullanabilmeleri için tutarlı bir yöntem sağlar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
framework için bir çeviri önerilebilir. Ya da glossary'de bir karşılığı en azından.
docs/classes.md
Outdated
| })(); | ||
| ``` | ||
| This is a fairly idiomatic traditional JavaScript class pattern now as a first class language construct. | ||
| Şimdi bu, birinci sınıf dil yapısı olarak yeterince deyimsel bir geleneksel JavaScript sınıfı kalıbıdır. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deyimsel'i kaldırsak mı? türkçede sırıtmış sanki.
| ``` | ||
|
|
||
| As always these modifiers work for both member properties and member functions. | ||
| Her zaman olduğu gibi, bu belirleyiciler hem eleman özellikleri hem de eleman fonksiyonları için çalışır. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modifier'a değiştirici desek daha iyi olmaz mı?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aslinda olabilir ama bu gune kadar okudugum cok turkce makalede hep erisim belirleyici olarak kullanilmisti. Ben cok benimsemis olabilrim o yuzden tartisalim.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
literatürü bilmiyorum açıkçası, doğru kullanım oysa glossary'de görmek lazım 😄
docs/classes.md
Outdated
| ```ts | ||
| class Foo { | ||
| members = []; // Initialize directly | ||
| members = []; // Direk olarak yüklenir |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
direk -> direkt ya da doğrudan
ozgunbal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
değişiklikler güzel olmuş. yine de başka bir göz daha baksın bu çeviriye diyorum.
No description provided.