I just completed "Cube Conundrum" - Day 2 - Advent of Code 2023 ➙ https://adventofcode.com/2023/day/2
#AdventOfCode using #Ruby
Nice: Cucumber 9.0 (the #Ruby version of it, https://github.com/cucumber/cucumber-ruby/releases/tag/v9.0.0) contains a bug fix I provided 😊: It no longer fails with an exception if you have $CUCUMBER_COLORS defined.
#Cucumber #buxfix
What a lovely idea by @andycroll ➙ https://firstrubyfriend.org
I signed up as a mentor. Will you? Or are you looking for a #Ruby mentor? This might be a great place to start.
Would you like to improve your programming skills online? I recommend trying exercism.io. It's free and you can get feedback from real humans (if you're in the #Ruby track, may be even from me 😀 ). #exercism
#ISupportExercism
It’s released: Ruby 3.2.0 ➙ https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
Merry #Ruby Christmas 🤶🎅🧑🎄
Potential spoiler for #AdventofCode Day 21 of 2022
This is a case where the ability to define methods at runtime in #Ruby was super helpful.
Also moving from the original problem to (iteratively) solving an equation enabled finding a solution even with WILDY wrong initial guesses. It's a GOOD THING applying nested intervals converges really quick (well, IF there is a solution…)
Nice: You can apply to become part of the #RailsConf Program Committee (organisers: @railsconf) ➙ https://docs.google.com/forms/d/e/1FAIpQLScnEOkyXl8Ic-qyHNuwRbd8KeWouCyDglQm9bivmkZz6iKDDw/viewform
I just completed "Monkey in the Middle" - Day 11 - Advent of Code 2022 #AdventOfCode https://adventofcode.com/2022/day/11
Phew. Intuition (and math) helped in keeping the numbers in part two from becoming astoundingly HUGE. It also limited the computing time to ≲ 11 sec overall, instead of 16 sec for the first ≈200 rounds. At that point the minimum worry was about 4000 digits long, the maximum more than 75 million. At that point arithmetic operation get a tad bit slow in #Ruby. 😃
Side note: As frustrating as it is to stumble into self-developed bugs, it is nice to have the time to fiddle with the Advent of Code puzzles. It's creative, and I learn something new about #Ruby nearly each day. Today: When a Struct is useful – and when it's not.
Oh nice, I'm an 'Exercism Super Mentor' 😊
Got this for my mentoring in the #Ruby track of https://exercism.org.
RT @lucianghinda@twitter.com
Ruby is my go-to language for building APIs. The syntax is clean and readable, and the libraries and frameworks make it easy to work with. #ruby #apidevelopment #xp
🐦🔗: https://twitter.com/lucianghinda/status/1598573369993183233
What I don't understand:
Installing gems in a #GitHub action works with #Ruby 3.1.2, but fails with 3.1.3 – unless I use `bundler-cache: false` in the Ruby setup step.
Here's the error message – that doesn't help me a lot:
Error: The process '/opt/hostedtoolcache/Ruby/3.1.3/x64/bin/bundle' failed with exit code 34
at ExecState._setResult (/home/runner/work/_actions/ruby/setup-ruby/v1/dist/index.js:5340:25)
…
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
Oh there is a #Ruby 3.1.3 now. 👍
RT @FrameworksM@twitter.com
Sinatra #Ruby #Framework
DSL for quickly creating web applications
🐦🔗: https://twitter.com/FrameworksM/status/1596846298405122048
A blog post about an alternative way to #parenthesise in #Ruby (that I don't recommend for production code) https://seasidetesting.com/2022/11/14/another-way-to-write-ruby-code/
I wonder, if there's a way to get ruby-build to provide the most current #RubyVersion (3.2.0-preview3 at the moment, see https://www.ruby-lang.org/en/news/2022/11/11/ruby-3-2-0-preview3-released/) faster, than waiting for an update of the #Ruby definitions in https://github.com/rbenv/ruby-build and then a release.
I wonder, if there is a way to get rbenv (or rather ruby-build) to provide the most current #RubyVersion (3.2.0-preview3 at the moment, see https://www.ruby-lang.org/en/news/2022/11/11/ruby-3-2-0-preview3-released/) faster than waiting for an update of the #Ruby definitions in https://github.com/rbenv/ruby-build and then a release.
Since I just moved in at https://sw-development-is.social just now, let me give an #introduction:
I'm a (mostly #Ruby) programming software tester, cancer survivor, (winter) swimmer - and more.
I studied physics, worked in oceanography and live near the North Sea.
Languages (sorted by word length): Ruby, German, English
On #Mastodon since April 2017
I am a traveller (not necessarily in a geographical sense) who seeks, observes … & occasionally finds.
I am a programming software tester, studied physics, survived cancer & live at the seaside. I love the ocean and go swimming a lot – in winter, too.
Languages (in no particular order): English, Ruby, German