@gd@ruby.social
@gd@ruby.social avatar

gd

@gd@ruby.social

Author, software maker, RC airplane flyer, strung instrument player, bibliophile, runner, gamer, metalhead🤘.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

khalidabuhakmeh, to rust
@khalidabuhakmeh@mastodon.social avatar

Can someone explain lifetimes to me? Coming from my brain sees generics.

gd,
@gd@ruby.social avatar

@khalidabuhakmeh How about: I can't loan my one car to two friends at the same time unless one of them is only going to look at it while the other friend actually gets to drive it.

Also, never loan your car to my friends.

gd, to random
@gd@ruby.social avatar

I hadn't really planned on working on Sidekiq upgrades all day 🙁

gd, to raku
@gd@ruby.social avatar

Do these code examples look correct? Anything you'd change to improve them?

https://gregdonald.com/pages/metaprogramming-a-dynamic-method-inside-a-dynamic-class-in-raku-and-ruby

hmans, to elixir
@hmans@mastodon.gamedev.place avatar

It's cool that #Elixir's documentation now ships with a dedicated section on anti-patterns to avoid (including suggestions on how to refactor them), but I find it kinda disappointing that the very first one they're listing is the favorite fallacy of gatekeepers and other bad engineers everywhere, "you should not write comments, but code that is so self-explanatory that it doesn't need them". Ugh.

gd,
@gd@ruby.social avatar

@hq1 I wouldn't worry too much about why I didn't write some code some other way. I certainly wouldn't spend time documenting things I didn't do. I would write a failing test, then I'd write the implementation that gets the failing test passing, done.

gd,
@gd@ruby.social avatar

@hq1 I would write tests for their output or result too, ideally before implementation. Then you can safely change the implementation later.

gd,
@gd@ruby.social avatar

@hq1 For me "I need to comment about all the ways I didn't write this implementation" is not a valid argument for making the code all messy with comments that will eventually expire and become useless. Fortunately, we don't work together 😎

gd, to ruby
@gd@ruby.social avatar

It's so annoying to see developers calling failing tests "flaky".

Last week I found a factory that assigned a random age to a user instance, so no wonder a test that used the age in some bit of logic failed sometimes. That's not a "flaky test", that's a bug in the factory.

Today I saw a date parser bug be called a "flaky test". It was written on the 21st of April and worked fine until it began to fail today, the 1st of May.

#rspec #ruby

gd,
@gd@ruby.social avatar

"Flaky test" makes it sound like RSpec is at fault when it's almost always buggy code, or random factory data.

gd, to rust
@gd@ruby.social avatar

😎

gdinwiddie, (edited ) to apple
@gdinwiddie@mastodon.social avatar

On iOS 17, how do I load an existing ringtone onto the phone? The online directions I’ve found use iTunes, which is not on current macOS, or recording a sound on the phone. I already have the sound on my computer. I can load the ringtone as a file, but it doesn’t show for phone or text tones.

EDIT: Added solution in reply.

gd,
@gd@ruby.social avatar

@gdinwiddie It took me hours to figure this out. The solution was to use Garage Band on my Mac and then again on my phone.

changelog, to rust
@changelog@changelog.social avatar

Monolith is a CLI for saving complete web pages as a single HTML file

🔗 https://github.com/Y2Z/monolith

gd,
@gd@ruby.social avatar

@changelog So like wget -m?

gd, to debian
@gd@ruby.social avatar

Got my Debian 12 DVD burned. And there's a four day weekend coming up. 😎

penryu, to random
@penryu@hachyderm.io avatar

Here's one killer feature I'd love to see everywhere:

[X] Actually use my search criteria

gd,
@gd@ruby.social avatar

@penryu ...including my single quote character that you're clearly removing instead of escaping. #Kill'EmAll

gd, to ruby
@gd@ruby.social avatar

Instead of DoH, how about anything over DNS? 😎

I've been playing with dnscat2 this evening. I got it working but it's kind of chunky and dies sometimes.

#ruby #exfil

gd, to random
@gd@ruby.social avatar

So is RPM dependency hell still a thing? What was the final solution? Massive static binaries? Containers? dpkg? 😂

passthejoe, to random
@passthejoe@ruby.social avatar

“It’s a Silent Fire”: Decaying Digital Movie and TV Show Files Are a Hollywood Crisis | By Gary Baum, Carolyn Giardina/The Hollywood Reporter https://www.hollywoodreporter.com/business/digital/digital-preservation-film-tv-shows-archives-1235851957/

gd,
@gd@ruby.social avatar

@passthejoe Important data should be stored outside of time, as we were taught in The Three Body Problem series ⌛ 😎

gd, to random
@gd@ruby.social avatar

OpenBSD performance makes me wonder how insecure all this other fast-running C code must probably be. Right?

gd, to random
@gd@ruby.social avatar

Memory leak got you down?

Cron a reboot!

gd, to random
@gd@ruby.social avatar

Is it weird to sip on a large vanilla milkshake while jogging?

gd, to random
@gd@ruby.social avatar

Mandrake Linux had a good run. Those were my KDE days.

gd, to random
@gd@ruby.social avatar

The new Perl 5.38.0 supports classes... experimentally... with warnings. Fancy! 🐪

https://metacpan.org/release/RJBS/perl-5.38.0/view/pod/perldelta.pod

gd, to haskell
@gd@ruby.social avatar

This feels like maybe the 3rd programming language book where I've read something like:

"If it compiles, it's correct."

Not enough ego to put that level of boldness in print... but I'm sure I could work up to it.

gd, to random
@gd@ruby.social avatar

I regret not having discovered Alice in Chains sooner.

I remember thinking their name was silly and I discounted them for a long time. But then my band at the time got a new singer/guitarist and he played and sang Nutshell for us. I was hooked and have been a huge Alice In Chains fan to this day 😎

https://www.youtube.com/watch?v=9EKi2E9dVY8

gd, to random
@gd@ruby.social avatar

I'm just getting around to watching the Chinese version of Three-Body and I gotta say it's much better than the Netflix version. Minus the intro beat-down it's very closely following the books.

#ThreeBody

gd, to emacs
@gd@ruby.social avatar

TIL how to make a table in org-mode... after that I made a formula that averaged one of the columns.

I found this path from trying different note-taking apps the past few weeks, remembering that I never gave org-mode or org-roam a try.

I also found that Github has zero effort org-mode rendering support. It even made an image tag for me.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines