Joined March 2012
Safe navigation operator Reduce the « 1 billion dollar mistake »! Ruby 2.3 introduces the « safe navigation operator » &.. It allows you to chain methods without risking an undefined method ‘xx’ for nil (NoMethodError). This code is almost equivalent to the version with &&…
1
1
1
66
+”string” Mutable string Strings should be immutable by default in Ruby 4.0. The comment # frozen_string_literal: true will no longer be useful. Starting with Ruby 3.4, a warning will be present (if enabled: -W) when a string is modified.
1
1
1
57
Date.parse The default current century 🤯 A 2-digit year will default to « current century ». This one starts in 1969! To avoid surprises, it’s best to use strptime, which also validates the format.
1
1
2
154
Aujourd'hui ma première contribution open-source a été mergée et publiée 😁🥳 Dans "Sustainable Web Development with Ruby on Rails", David Bryant Copeland explique que la syntaxe `resources :name` permet de générer les routes, mais trop de routes si on ne fait pas attention
1
1
2
372
Je me suis dit que ça mériterait bien un checker. Hé bien il existe déjà, c'est la gem "rails-route-checker" ! Mais ce n'était pas compatible avec Haml >= 6.0 😕
1
1
43
C'était avec @julienmarseil l'occasion de partager ça sur Twitch durant nos lives du mercredi, de mettre en place la gem Appraisal pour tester avec différentes versions de Haml ainsi que de proposer notre correctif D'ailleurs, on a une PR sur Propshaft qui attend d'être mergée👀
64
irb certainly hides a lot more. Try this code several times in your console 😉.
2
2
5
181
minMAX : We thought we knew them, but we discovered some subtleties! These functions are defined in the Enumerable module, which is included in Array as well as Hash, Range, Enumerator, Struct, …
1
4
5
371
String manipulation in Ruby is very advanced. With the `[]` method or its alias `slice`, it's easy to extract a complex part! For example via indexes:
1
1
5
273
It’s possible to deconstruct/decompose an array during assignment.
1
3
1
5
857
2/2 Par défaut il sera donc en mode :up et retournera la valeur la plus éloignée de 0. En mode :down il ferra l’inverse et en mode :even il retournera le nombre pair le plus proche, pour une équité statistique (comme en python).
1
2
115
Evalmee.com is hiring a Ruby/Vue.js dev! 🚀 We're building an online exam platform for higher education & professional training, and looking for people who can pick a problem and solve it. 🎓 >4 years of exp 🇫🇷 Paris or full remote evalmee.welcomekit.co/jobs/d…
2
3
2
9
1,375
C’était trop bien et en plus c’est gagné 🏆 Merci et vous tous et à mes collègues d’aventure @ClementAvenel, @masterpoo_dev et @PierreFitoussi1 😁
🎉 Our winners for the Rails Hackathon 2023 are: * Gem.sh * Rails Duels * Locale Ninja railshackathon.com/events/2-… @rails #rails #rubyonrails
3
1
13
688
Je sors d'un hackathon 48h avec comme sujet "soutenir la communauté ruby on rails" On a dev une git-based gem qui permet la gestion des traductions de votre application, une alternative cool aux third-party payants Si vous pouvez prendre le temps de mettre un petit upvote !
1
2
8
1,348
🎥 Just wrapped up a marathon stream on Τwitch 🔥 Spent 48 hours with my awesome team @squadracer during #RailsHackathon 2023 to build Locale Ninja, a Ruby on Rails engine for app translations that syncs with #Github 🗳️Wanna help ? Vote for it 👉 : railshackathon.com/entries/5…
1
2
1
5
1,193
Replying to @squadracer
@squadracer participe au #RailsHackathon 2023 ! Le thème de cette année ? 💡"Supporter la communauté #Ruby on #Rails" Mais que va-t-on faire ? 🎥 RDV sur #Twitch, de Samedi 2h à Lundi 2h ! #stream #marathon
2
2
7
797
Les premières personnes prennent place pour le #meetup de juillet de @codeursenseine – at Rouen, France
2
3
237
"Le bug que j'ai trouvé dans #Ruby a déjà été patché. Mais comme tu as tweeté, je me suis senti obligé d'en trouver un autre" IM-PRE-SSIO-NANT 🤩 github.com/ruby/ruby/pull/80… #FierdeMesCollegues @squadracer
"Ah au fait ! J'ai trouvé un bug dans #Ruby 💎!" 🤯🤯🤯 #FierDeMesCollegues @squadracer
1
4
240