Okay, I’ve normalized the naming conventions and style...
All of these move a target string to the end of an array..
https://gist.github.com/noelrappin/a046996a3e9e5d5034533f5a37b349b8
In random order:
* One of these is my original try
* One is ChatGPT
* Three of them are submissions (don’t peek)
* One is ChatGPT after I asked for a refinement
Thoughts?
Also, quick announcement of a new gem, Warning Signs, that helps you manage your Ruby and Rails deprecation and other warnings by giving you a convenient configuration file with all that information in one place:
https://github.com/noelrappin/warning_signs
⚠️
What’s your most elegant Ruby code that does this:
* takes an array of strings and a target string
* if the target string is not in the array, return the array
* if the target string is in the array, return the array with the target string moved from its position to the end of the array.
I know one place for sure that covers this #pickaxe… https://ruby.social/@davetron5000/110312979268360083
A bunch of book sales today:
It’s the last day to get 35% off the #pickaxe book with the code RailsConf_Atlanta.
Both Modern Front-End Development for Rails and Modern CSS with Tailwind second editions are 50% off this week with code WEBDEV2023.
All available at https://pragprog.com
Apparently there’s a permanent limit on the number of OpenAI accounts you can have tied to the same phone number and also apparently deleting one of the accounts doesn’t open up a slot.
Once I learned that TruffleRuby had nearly all of core Ruby implemented in Ruby, I’ve been using that as a reference for the book quite a bit. https://ruby.social/@p8/110297767014637687
Haven't updated here in a bit, #pickaxe status is that the draft page count is now 617, and I'm working on the final chapter, plus there are two appendices that need to be updated from previous version text.
I'm hopeful that the draft-complete beta will be out mid-May and we will also start technical review at that point.
(Watch this space for information if you want to be a reviewer)