Il faudrait utiliser fun pour les fonctions, fn ça me fait de le peine.
Et pour main, je trouve ça bizarre. Pourquoi pas pied ou oreille ? Il faudrait un terme plus clair pour désigner la fonction qui donne du travail aux autres. Peut être master?
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
Il y a plein de résultats qui n'ont pas de sens sans être un bug :-) En tout cas, crasher le programme pour ça c'est souvent trop violent pour l'utilisateur.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
La première solution est impossible dans un langage généraliste, car dans ces langages, c'est un problème indécidable.
Pourquoi?
La deuxième solution permet juste de cacher un bug
Pourquoi la division par zéro serait plus un bug que la division par 42 ? Pas évident et pourquoi un bug provoquerait systématiquement un crash complet d'un programme?
La différence pratique, c'est qu'en Go il y a une distinction au niveau langage entre une situation d'exception (issue d'une erreur de programmation) et une simple erreur à laquelle il est possible de réagir plus spécifiquement.
Je trouve que cette distinction rends très pénible d'utiliser des bibliothèques: on ne sait jamais si une fonction qu'on appelle peut faire crasher ou non le programme.
C'est aussi une question de pratique: la plupart des bibliothèques C n'utilisent que très rarement un équivalent du panic comme raise(SIGABRT).
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
Zebulon est un peu lent à démarrer : tu parles du personnage ou du jeu lui-même?
Du personnage, on dirait un diesel :-)
Du coup, c'est la meilleur astuce que j'ai trouvé pour éviter de faire des cleans et des ré-affichages sur des trucs qui n'ont pas bougés et donc complexifié le code pour pas grand chose.
Autant tout redessiner régulièrement (avec requestanimationframe), non?
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
Et si tu prenais un abonnement 2g et que tu laissais le téléphone mobile à la maison? Ce serait un fixe avec sms donc compatible avec les sociétés pénibles.
Ce n'est pas parce qu'un téléphone est mobile qu'il faut forcément l'avoir avec soi !
Les gens sont toujours très surpris que je découvre leurs messages trois jours après parce que j'ai tendant à oublier mon téléphone dans un coin ou ne pas lire mes messages parce que j'ai toujours mieux à faire.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
Si tu veux une expression de besoin simple: je ne veux pas que mon programme se crashe comme une merde parce que dans méthode Dotrucmuche de la libXXX, Henry a ajouté un if(âge du capitaine > 42)then panic and throw suicide exception before exit(255) sans mettre à jour la doc.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
Si j'étais dogmatique du langage, je ferais encore du C++ qui est toujours bien plus puissant que Java, Go ou même Rust et pas beaucoup plus compliqué au final :-)
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: On m'avait dit que c'était impossible alors il l'a fait
Posté par devnewton 🍺 (site web personnel) . En réponse au journal Appel à contribution pour un nouveau langage !. Évalué à 5. Dernière modification le 24 mars 2021 à 22:49.
Memory safe array, slice, and pointer types (and unsafe versions, if needed)
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
# Mot clef offensant
Posté par devnewton 🍺 (site web personnel) . En réponse au journal Appel à contribution pour un nouveau langage !. Évalué à 10.
Il faudrait utiliser fun pour les fonctions, fn ça me fait de le peine.
Et pour main, je trouve ça bizarre. Pourquoi pas pied ou oreille ? Il faudrait un terme plus clair pour désigner la fonction qui donne du travail aux autres. Peut être master?
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
# On m'avait dit que c'était impossible alors il l'a fait
Posté par devnewton 🍺 (site web personnel) . En réponse au journal Appel à contribution pour un nouveau langage !. Évalué à 5.
https://linuxfr.org/users/milo/liens/linux-et-la-securite-tel-un-desert-et-un-oasis#comment-1841388
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Contexte
Posté par devnewton 🍺 (site web personnel) . En réponse au journal RMS et la FSF. Évalué à 10.
Il me semble qu'il avait finalement raison non? https://tech.slashdot.org/comments.pl?sid=14804390&cid=59201724
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: En français
Posté par devnewton 🍺 (site web personnel) . En réponse au lien Appel au boycott de la FSF. Évalué à 10.
Korben est bien puant sur ce coup de participer au lynchage.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
# Alternative : OpenID Connect Ciba
Posté par devnewton 🍺 (site web personnel) . En réponse à l’entrée du suivi Autoriser les urls en http pour le cas particulier du hostname localhost. Évalué à 3 (+0/-0).
OpenID a définit un nouveau "flow" qui ne nécessite pas de mettre en place un serveur http côté client (avec le poll mode):
https://darutk.medium.com/ciba-a-new-authentication-authorization-technology-in-2019-explained-by-an-implementer-d1e0ac1311b4
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
# A quand un domaine de premier niveau .demission ?
Posté par devnewton 🍺 (site web personnel) . En réponse au journal RMS et la FSF. Évalué à 10.
Pour remplacer le goudron et les plumes par une solution digitale, est-ce qu'il ne faudrait pas un tld .demission ?
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ruby vs Crystal
Posté par devnewton 🍺 (site web personnel) . En réponse au lien Publication de la première version stable du langage de programmation Crystal. Évalué à 7.
Mais non voyons, c'est Go et Rust qui font doublons avec C++, Ada, D, Object Pascal… :-)
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 3.
Je viens de voir que le langage Crystal a une approche mixte avec deux opérateurs:
https://crystal-lang.org/reference/syntax_and_semantics/operators.html#multiplicative
https://github.com/crystal-lang/crystal/blob/master/spec/std/int_spec.cr#L456
https://github.com/crystal-lang/crystal/blob/master/spec/std/int_spec.cr#L508
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 3.
Oui, mais ce n'est pas volontaire :-)
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Anecdote related
Posté par devnewton 🍺 (site web personnel) . En réponse au journal Question : Ai-je le droit de refuser d'exécuter un logiciel ?. Évalué à 10.
Et le double facteur où tout est sur le même périphérique, c'est un concept de génie de la sécurité.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 3.
Il y a plein de résultats qui n'ont pas de sens sans être un bug :-) En tout cas, crasher le programme pour ça c'est souvent trop violent pour l'utilisateur.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 2.
Pourquoi?
Pourquoi la division par zéro serait plus un bug que la division par 42 ? Pas évident et pourquoi un bug provoquerait systématiquement un crash complet d'un programme?
Je trouve que cette distinction rends très pénible d'utiliser des bibliothèques: on ne sait jamais si une fonction qu'on appelle peut faire crasher ou non le programme.
C'est aussi une question de pratique: la plupart des bibliothèques C n'utilisent que très rarement un équivalent du panic comme raise(SIGABRT).
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Oh un jeu libre
Posté par devnewton 🍺 (site web personnel) . En réponse au journal Zébulon. Évalué à 4.
Du personnage, on dirait un diesel :-)
Autant tout redessiner régulièrement (avec requestanimationframe), non?
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
# Oh un jeu libre
Posté par devnewton 🍺 (site web personnel) . En réponse au journal Zébulon. Évalué à 9.
Bonjour et bravo pour ce projet,
Quelques questions et remarques:
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 5.
N'hésite pas à faire une dépêche ou un journal sur C#, je pense qu'on est nombreux à ne pas avoir suivi les évolutions de ce langage.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 3.
La division par zéro c'est un très bon exemple: un programme ne doit pas crasher juste pour ça.
Il y a plusieurs solutions:
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Anecdote related
Posté par devnewton 🍺 (site web personnel) . En réponse au journal Question : Ai-je le droit de refuser d'exécuter un logiciel ?. Évalué à 6. Dernière modification le 21 mars 2021 à 23:46.
Et si tu prenais un abonnement 2g et que tu laissais le téléphone mobile à la maison? Ce serait un fixe avec sms donc compatible avec les sociétés pénibles.
Ce n'est pas parce qu'un téléphone est mobile qu'il faut forcément l'avoir avec soi !
Les gens sont toujours très surpris que je découvre leurs messages trois jours après parce que j'ai tendant à oublier mon téléphone dans un coin ou ne pas lire mes messages parce que j'ai toujours mieux à faire.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 3.
Si tu veux une expression de besoin simple: je ne veux pas que mon programme se crashe comme une merde parce que dans méthode
Dotrucmuche
de lalibXXX
, Henry a ajouté unif(âge du capitaine > 42)then panic and throw suicide exception before exit(255)
sans mettre à jour la doc.Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 4.
Pour les exceptions en C# je ne m'en souviens pas. Ça a changé? https://www.artima.com/articles/the-trouble-with-checked-exceptions
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 3.
J'en parlais là :-)
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 4.
Oui c'est une pas gestion d'erreur: on crashe le programme salement.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: ça a influencé EDF
Posté par devnewton 🍺 (site web personnel) . En réponse au lien 1979, la centrale nucléaire de Three Mile Island aux USA, un aperçu de l’enfer - podcast franceinter. Évalué à 6.
Le problème du nucléaire c'est que le risque n'est pas zéro et les conséquences tendent vers l'infini.
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: Ouaiche
Posté par devnewton 🍺 (site web personnel) . En réponse au lien "Rust vs. Go: Why They’re Better Together". Évalué à 3. Dernière modification le 21 mars 2021 à 23:03.
Si j'étais dogmatique du langage, je ferais encore du C++ qui est toujours bien plus puissant que Java, Go ou même Rust et pas beaucoup plus compliqué au final :-)
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.
[^] # Re: SVN
Posté par devnewton 🍺 (site web personnel) . En réponse au journal Adieu vieille branche. Évalué à 3.
Beau commentaire écrit de main de maître !
Le post ci-dessus est une grosse connerie, ne le lisez pas sérieusement.