Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Commit comme un(e) "Hipster" avec Gitmoji !

Commit comme un(e) "Hipster" avec Gitmoji !

"TMP"
"Fix some bugs"
"I changed that shit"

Cela vous rappelle de mauvais souvenirs ? C'est pour ça que les conventions sur les messages de commit sont importantes. En avez vous déjà utilisées une ? Avez-vous essayé les Emojis ? Ils sont par nature super expressifs et très lisibles.

Dans cette présentation je vais vous expliquer pourquoi ils sont utiles et comment vous pouvez les utiliser dans votre quotidien de dév pour commiter comme un(e) "Hipster" 😎 !

[email protected]

June 07, 2022
Tweet

Other Decks in Programming

Transcript

  1. 🖖 Hello! @spontoreau Sylvain Pontoreau How it’s going 🌹 ⚔

    😐 How it started -<@ O=|====> o_o Emo(ticons/jis), I’m in that business since 1998 © And I like to do funny things with them 😬 🎪 Co-organizer 📕 Book writer Microsoft 󰳕 Work with
  2. 💬 Commit messages… (The guy who left the company) Friday

    afternoon: (You, trying to understand what is going on…) Monday morning, outage on prod:
  3. 📚 Conventional Commits A set of rules for creating explicit

    commit history • How it works: Format types(context): message Breaking changes ! • Types can be extended easily (impr, chore, refactor, perf, docs, …) • Automation made simple (changelog, semantic versioning, …) Types fix / feat
  4. 👀 Predictability of the human eye Do you know F-Pattern?

    • In text-heavy content, most humans scan information by making an “F” • F-Pattern is bad for user • Optimize horizontal movement of the eye is a key point • This is why Conventional Commits specification is not that great
  5. ❓ Why consider emojis instead? (No need to explain what

    it stands for) First, the are super expressive! 🎉 ✅ 📱 🚧 💩 🐛 🗑
  6. 🎉 Tada! ✅ Test are ok! 🚧 We are working

    on it! 🗑 Let’s drop that! 🐛 It’s not working 👁 Why consider emojis instead? Where is the bug? 👀 Your eyes directly look here Secondly, they optimize reading! 😉 Optimized scan
  7. 😜 Gitmoji The basic ones! 🐛 :bug: Fix a bug.

    ✨ :sparkles: Introduce new feature.
  8. 😍Gitmoji Refacto / Improvement ♻ :recycle: Refactor code. ⚡ :zap:

    Improve preformance. 🚚 :truck: Move or rename resources 🏗 :building_construct ion: Make architectural changes. 🎨 :art: Improve structure / format of the code.
  9. 😆 Gitmoji Package management ➖ :heavy_minus_sign: Remove a dependency. ➕

    :heavy_plus_sign: Add a dependency. ⬆ :arrow_up: Upgrade dependencies ⬇ :arror_down: Downgrade dependencies. 📌 :pushpin: Pin dependencies to specific versions.
  10. 🤡 :clown_face: Mock things. 🧪 :test_tube: Add a failing test.

    😳 Gitmoji Testing ✅ :white_check_mark: Add, update, or pass tests.
  11. 😂 Gitmoji Other useful emojis 🚨 :rotating_light: FIx compiler /

    linter warnings. 👷 :construction_work er: Add or update CI build system. 🙈 :see_no_evil: Add or update a .gitignore file. 💥 :boom: Introduce breaking changes. 🔧 :wrench: Add or update configuration files.
  12. 💻 Gitmoji CLI There is a CLI for that 🤩

    https://github.com/carloscuesta/gitmoji-cli
  13. 🖥 Gitmoji plugins/extensions For people who don’t like terminals 😅

    https://gitmoji.dev/related-tools And more: - atom - sublim - macOS app - … Browser extensions IntelliJ VS Code
  14. 💪 Conclusion 🐛FIX EMAIL VALIDATION FIX EMAIL VALIDATION FIX SHOW

    ME THE REAL COMMIT MESSAGE I SAID THE REAL COMMIT MESSAGE PERFECTION