Outils pour utilisateurs

Outils du site


informatique:polices:developpeur

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:polices:developpeur [2026/07/19 16:51] – supprimée - modification externe (Date inconnue) 127.0.0.1informatique:polices:developpeur [2026/07/19 17:03] (Version actuelle) – [Polices pour développeur] alexis
Ligne 1: Ligne 1:
 +====== Polices pour développeur ======
 +Quand on travaille de nombreuses heures sur du code, il est important de mettre toutes les chances de son coté pour se faciliter la vie.
 +Ça commence pas l'utilisation d'une police appropriée qui évitera les confusions et améliorera la lisibilité.
 +
 +Avec une mauvaise police, il y a des risques de mauvaise lecture du code, par exemple en confondant :
 +  *     0/O (le chiffre "zéro" et la lettre "O" majuscule),
 +  *     1/l (le chiffre "un" et la lettre "L" minuscule),
 +  *     B/8 (la lettre "B" et le chiffre "8").
 +
 +<WRAP info>
 +Les différentes polices sont testées avec l'échantillon de code suivant ((en plus de l'échantillon de texte défini [[..:polices|ici]])) :
 +<code php>
 +public function getElementValue(array $collection, string $index): ?int
 +{
 +    /** Comment #1 */
 +    if (empty($collection)) {
 +        return null;
 +    }
 +    
 +    // Comment #2
 +    foreach ($collection as $key => $element) {
 +        if ($key < $index || $key > $index) {
 +            echo 'Index does not match key', PHP_EOL;
 +            continue;
 +        }
 +        
 +        return $element->value();
 +    }
 +}
 +</code>
 +</WRAP>
 +===== Fira Code =====
 +<WRAP group>
 +<WRAP half column box>
 +<typo ff:'Fira Code';fs:1.5em>
 +abcdefghijklmnopqrstuvwxyz\\
 +ABCDEFGHIJKLMNOPQRSTUVWXYZ\\
 +0123456789.:,;(){}[]<>|^/*!?`'"@#$%&_-+=~\\
 +àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ\\
 +The quick brown fox jumps over the lazy dog\\
 +%%== === != !== >= <= -> <=> =>%%\\
 +0O 1l B8 <> [] {} 2N2N2N2N
 +</typo>
 +</WRAP>
 +<WRAP half column box>
 +<typo ff:'Fira Code';sp:pre>
 +%%public function getElementValue(array $collection, string $index): ?int
 +{
 +    /** Comment #1 */
 +    if (empty($collection)) {
 +        return null;
 +    }
 +    
 +    // Comment #2
 +    foreach ($collection as $key => $element) {
 +        if ($key < $index || $key > $index) {
 +            echo 'Index does not match key', PHP_EOL;
 +            continue;
 +        }
 +        
 +        return $element->value();
 +    }
 +}%%
 +</typo>
 +</WRAP>
 +</WRAP>
 +
 +<WRAP info>
 +  * [[https://github.com/tonsky/FiraCode|Page de téléchargement]].
 +  * La police est directement disponible dans les dépôts de Arch Linux.
 +  * La police supporte les ligatures.
 +</WRAP>
 +
 +===== Intel One Mono =====
 +
 +<WRAP group>
 +<WRAP half column box>
 +<typo ff:'Intel One Mono';fs:1.5em>
 +abcdefghijklmnopqrstuvwxyz\\
 +ABCDEFGHIJKLMNOPQRSTUVWXYZ\\
 +0123456789.:,;(){}[]<>|^/*!?`'"@#$%&_-+=~\\
 +àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ\\
 +The quick brown fox jumps over the lazy dog\\
 +%%== === != !== >= <= -> <=> =>%%\\
 +0O 1l B8 <> [] {} 2N2N2N2N
 +</typo>
 +</WRAP>
 +<WRAP half column box>
 +<typo ff:'Intel One Mono';sp:pre>
 +%%public function getElementValue(array $collection, string $index): ?int
 +{
 +    /** Comment #1 */
 +    if (empty($collection)) {
 +        return null;
 +    }
 +    
 +    // Comment #2
 +    foreach ($collection as $key => $element) {
 +        if ($key < $index || $key > $index) {
 +            echo 'Index does not match key', PHP_EOL;
 +            continue;
 +        }
 +        
 +        return $element->value();
 +    }
 +}%%
 +</typo>
 +</WRAP>
 +</WRAP>
 +
 +<WRAP info>
 +  * [[https://github.com/intel/intel-one-mono|Page de téléchargement]].
 +</WRAP>
 +
 +===== Iosevka =====
 +
 +<WRAP group>
 +<WRAP half column box>
 +<typo ff:'Iosevka';fs:1.5em>
 +abcdefghijklmnopqrstuvwxyz\\
 +ABCDEFGHIJKLMNOPQRSTUVWXYZ\\
 +0123456789.:,;(){}[]<>|^/*!?`'"@#$%&_-+=~\\
 +àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ\\
 +The quick brown fox jumps over the lazy dog\\
 +%%== === != !== >= <= -> <=> =>%%\\
 +0O 1l B8 <> [] {} 2N2N2N2N
 +</typo>
 +</WRAP>
 +<WRAP half column box>
 +<typo ff:'Iosevka';sp:pre>
 +%%public function getElementValue(array $collection, string $index): ?int
 +{
 +    /** Comment #1 */
 +    if (empty($collection)) {
 +        return null;
 +    }
 +    
 +    // Comment #2
 +    foreach ($collection as $key => $element) {
 +        if ($key < $index || $key > $index) {
 +            echo 'Index does not match key', PHP_EOL;
 +            continue;
 +        }
 +        
 +        return $element->value();
 +    }
 +}%%
 +</typo>
 +</WRAP>
 +</WRAP>
 +
 +<WRAP info>
 +  * [[https://github.com/be5invis/Iosevka|Page de téléchargement]].
 +  * La police supporte les ligatures.
 +  * La police vient en différentes variantes, il va falloir chercher un peu pour trouver celle qui convient.
 +</WRAP>
 +
 +===== JetBrains Mono =====
 +
 +<WRAP group>
 +<WRAP half column box>
 +<typo ff:'JetBrains Mono';fs:1.5em>
 +abcdefghijklmnopqrstuvwxyz\\
 +ABCDEFGHIJKLMNOPQRSTUVWXYZ\\
 +0123456789.:,;(){}[]<>|^/*!?`'"@#$%&_-+=~\\
 +àÀâÂçÇéÉèÈêÊëËîÎïÏôÔùÙûÛüÜæÆœŒ\\
 +The quick brown fox jumps over the lazy dog\\
 +%%== === != !== >= <= -> <=> =>%%\\
 +0O 1l B8 <> [] {} 2N2N2N2N
 +</typo>
 +</WRAP>
 +<WRAP half column box>
 +<typo ff:'JetBrains Mono';sp:pre>
 +%%public function getElementValue(array $collection, string $index): ?int
 +{
 +    /** Comment #1 */
 +    if (empty($collection)) {
 +        return null;
 +    }
 +    
 +    // Comment #2
 +    foreach ($collection as $key => $element) {
 +        if ($key < $index || $key > $index) {
 +            echo 'Index does not match key', PHP_EOL;
 +            continue;
 +        }
 +        
 +        return $element->value();
 +    }
 +}%%
 +</typo>
 +</WRAP>
 +</WRAP>
 +
 +<WRAP info>
 +  * [[https://www.jetbrains.com/lp/mono/|Page de téléchargement]].
 +  * La police supporte les ligatures ((Il existe une version sans ligature pour utiliser avec les outils n'ayant pas l'option pour les désactiver)).
 +  * La police supporte plusieurs langues, plusieurs langages, plusieurs graisses.
 +</WRAP>
 +
 +===== Liens =====
 +  - [[https://sebsauvage.net/wiki/doku.php?id=polices-pour-developpeurs&do=|Polices pour développeurs [Wiki de sebsauvage.net]]]
 +  - [[https://www.programmingfonts.org/|Programming Fonts - Test Drive]] → pour tester d'autres polices pour développeur
 +
 +