|
150 | 150 | ------------------------------------------------
|
151 | 151 |
|
152 | 152 |
|
153 |
| -## Preface |
| 153 | +## Πρόλογος |
154 | 154 |
|
155 |
| -The following sections outline a _reasonable_ style guide for modern JavaScript development and are not meant to be prescriptive. The most important take-away is the **law of code style consistency**. Whatever you choose as the style for your project should be considered law. Link to this document as a statement of your project's commitment to code style consistency, readability and maintainability. |
| 155 | +Τα επόμενα τμήματα δείχνουν ένα _λογικό_ style guide για μοντέρνο JavaScript development και δεν είναι εντεταλμένα. Το πιο σημαντικό στοιχείο να αποκομίσετε είναι ο **νόμος της code style συνέπειας**. Ό,τι και να διαλέξετε για το στυλ του project σας πρέπει λαμβάνεται ως νόμος. |
156 | 156 |
|
157 | 157 |
|
158 | 158 |
|
159 | 159 |
|
160 | 160 |
|
161 |
| -## Idiomatic Style Manifesto |
| 161 | +## Ιδιωματικό Style Manifesto |
162 | 162 |
|
163 | 163 |
|
164 |
| -1. <a name="whitespace">Whitespace</a> |
165 |
| - - Never mix spaces and tabs. |
166 |
| - - When beginning a project, before you write any code, choose between soft indents (spaces) or real tabs, consider this **law**. |
167 |
| - - For readability, I always recommend setting your editor's indent size to two characters — this means two spaces or two spaces representing a real tab. |
168 |
| - - If your editor supports it, always work with the "show invisibles" setting turned on. The benefits of this practice are: |
169 |
| - - Enforced consistency |
170 |
| - - Eliminating end of line whitespace |
171 |
| - - Eliminating blank line whitespace |
172 |
| - - Commits and diffs that are easier to read |
173 |
| - - Use [Editorconfig](http://editorconfig.org/) when possible. It supports most IDEs and handles most whitespace settings. |
| 164 | +1. <a name="whitespace">Λευκός χώρος</a> |
| 165 | + - Ποτέ να μην συνδιάζετε κενά και tabs. |
| 166 | + - Όταν ξεκινάτε ένα project, πριν γράψετε καν κώδικα, διαλέξτε ανάμεσα σε κενά ή tabs και θεωρήστε το **νόμο**. |
| 167 | + - Για να είναι ευανάγνωστο, πάντα προτείνω να σετάρετε το indent του editor σας σε 2 χαρακτήρες — αυτό σημαίνει πως δυο κενά αντιπροσωπεύουν ένα tab. |
| 168 | + - Αν το υποστηρίζει ο editor σας, πάντα να δουλεύετε με το "show invisibles" αναμένο. Τα πλεονεκτήματα αυτού είναι: |
| 169 | + - Ενισχυμένη συνοχή |
| 170 | + - Εξάλειψη των κενών στο τέλος της γραμμής |
| 171 | + - Εξάλειψη των κενών γραμμών |
| 172 | + - Commits και diffs που είναι ευκολότερα να διαβαστούν |
| 173 | + - Χρησιμοποιείτε [Editorconfig](http://editorconfig.org/) όποτε μπορείτε. Υποστηρίζει τα περισσότερα IDEs και διαχειρίζεται τις πεισσότερες ρυθμίσεις για τους κενούς χώρους. |
174 | 174 |
|
175 | 175 |
|
176 | 176 | 2. <a name="spacing">Beautiful Syntax</a>
|
|
0 commit comments