background preloader

Gitignore.io

Gitignore.io

Hands-on Scala.js Scala.js compiles Scala code to equivalent, executable Javascript. Here's the compilation of a trivial hello-world example: object Example extends js.JSApp{ def main() = { var x = 0 while(x < 10) x += 3 println(x) } } ScalaJS.c.LExample$.prototype.main__V = (function() { var x = 0; while ((x < 10)) { x = ((x + 3) | 0) }; ScalaJS.m.s_Predef().println__O__V(x) }); As you can see, both of the above programs do identical things: they'll count the variable x from 0, 3, 9, and 12 before finally printing it out. It's just that the first is written in Scala and the second is in Javascript. Traditionally, Scala has been a language which runs on the JVM. Typo-safety due to its compiler which catches many silly errors before the code is run In-editor support for autocomplete, error-highlghting, refactors, and intelligent navigation Moderate sized compiled executables, in the 100-400kb range Source-maps for ease of debugging javascript> ["10", "10", "10", "10"].map(parseInt) [10, NaN, 2, 3]

gitignore Git pour les nuls - Récupérer une branche distante Git est un outil de gestion de version, très puissant, extremement rapide et qui souffre d’une certaine complexité. Mais c’est cette complexité qui en fait ça force ! Je ne m’attendais pas vraiment à ce que quiconque utilise Git parce que c’est tellement dur à utiliser, mais finalement cela s’est révélé être son principal attrait - Linus Torvalds Ici je ne vais pas vous apprendre à créer un dépôt, ni même vous expliquer en détail le fonctionnement de git. Je vais juste vous aidez à comprendre git rebase et vous donner deux trois billes pour vous en sortir avec cette commande. J’intègre donc cette équipe de 3 développeurs : Sarah, John, Bob et moi. Nous travaillons tous les quatre sur l’édition d’un site web et je rejoins l’équipe. La première chose que l’on me demande de faire est de récupérer le code du projet. $ git clone git@github.com:okiwi/atbdx.git atbdx Cloning into 'atbdx'... $ git branch * master

A successful Git branching model » nvie.com Note of reflection (March 5, 2020)This model was conceived in 2010, now more than 10 years ago, and not very long after Git itself came into being. In those 10 years, git-flow (the branching model laid out in this article) has become hugely popular in many a software team to the point where people have started treating it like a standard of sorts — but unfortunately also as a dogma or panacea.During those 10 years, Git itself has taken the world by a storm, and the most popular type of software that is being developed with Git is shifting more towards web apps — at least in my filter bubble. Web apps are typically continuously delivered, not rolled back, and you don't have to support multiple versions of the software running in the wild.This is not the class of software that I had in mind when I wrote the blog post 10 years ago. Why git? For a thorough discussion on the pros and cons of Git compared to centralized source code control systems, see the web. The main branches ¶ develop

Brancher et fusionner : les bases Suivons un exemple simple de branche et fusion dans une utilisation que vous feriez dans le monde réel. Vous feriez les étapes suivantes : travailler sur un site web ;créer une branche pour un nouvel article sur lequel vous souhaiteriez travailler ;réaliser quelques tâches sur cette branche. À cette étape, vous recevez un appel pour vous dire qu'un problème critique a été découvert et qu'il faut le régler au plus tôt. revenir à la branche de production ;créer une branche et y développer le correctif ;après un test, fusionner la branche de correctif et pousser le résultat à la production ;rebasculer à la branche initiale et continuer le travail. Le branchement de base Premièrement, supposons que vous travaillez sur votre projet et avez déjà quelques commits (voir figure 3-10). Figure 3-10. Vous avez décidé de travailler sur le problème numéroté #53 dans le suivi de faits techniques que votre entreprise utilise. $ git checkout -b prob53 Switched to a new branch "prob53" Figure 3-11.

Related: