@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.

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.

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.

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.

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?

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 ⌛ 😎

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

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

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 rust
@gd@ruby.social avatar

😎

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. 'EmAll

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

It's cool that '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

@hmans Comments expire. Instead of writing comments I prefer writing tests 😎

gd,
@gd@ruby.social avatar

@hq1 @hmans Tests should capture all contextual nuance. Comments should be converted into tests and then deleted.

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 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 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 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.

#Haskell #Rust #Elm

gd, to ruby
@gd@ruby.social avatar

My new book "Hands-on Test-Driven Development" has been published: https://hands-on-tdd.com/

masukomi, to ruby
@masukomi@connectified.com avatar

Another day, another native gem that won't compile. I understand that there are some cases where you need to deal with external stuff via C, BUT so often native gems seem to be created because their devs felt that doing it in pure ruby provide performance that was too slow.

Ruby isn't a "high performance" language. If you want fast use C(++) or Rust or Go or any of the many "fast" options. Alternately, use your C skills to improve Ruby.

Stop injecting C into Ruby

gd,
@gd@ruby.social avatar

@masukomi Fuck docker.. and its users who refuse to learn how to configure their machines.

gd,
@gd@ruby.social avatar

@soulcutter @masukomi Well, then how about fuck docker and all the kids who can't be bothered to learn how to configure their machines because they're too busy begging for money for writing a 3-line npm package? I mean, because that's what I wrote before I decided to tone it down a bit.

I await your unfollow.

louis, to AWS
@louis@emacs.ch avatar

Emacs.ch instance now up for straight 391 days. What do you think how long we can manage to go on without a reboot? 🥳​

If you also would enjoy a stable VM that just works and is more affordable, consider switching from AW$ to Hetzner.com.

gd,
@gd@ruby.social avatar

@louis How do you patch all the Linux Kernel exploits from the previous 391 days without rebooting?

gd,
@gd@ruby.social avatar

@louis Interesting. Is this available on non-paid Ubuntu?

evacide, to random
@evacide@hachyderm.io avatar

If you have a Macbook Pro and you need to record video, what webcam would you recommend using? Everything I've read pushes Logitech webcams, but once you upgrade to Ventura, everything goes to shit.

Please do not reply with anything that will make me regret asking a technical question on Mastodon.

gd,
@gd@ruby.social avatar

@masukomi @evacide Same here, my Logitech Brio works great on Mac and Windows. Haven't ran across any particular software that can't use it.

thomasfuchs, to random
@thomasfuchs@hachyderm.io avatar

So, uhm, what’s a nice alternative to GitHub for some private and some open source repositories?

Maybe something that pledges no AI bullshit ever, just, you know, repos, issues and integrations with stuff?

https://aus.social/@TheMartianLife/111377920682670147

gd,
@gd@ruby.social avatar
daviwil, to random
@daviwil@fosstodon.org avatar

I really enjoy live streaming while I code. I wish I could do it regularly in a sustainable way.

gd,
@gd@ruby.social avatar

@daviwil Well, there's also "mobbing", where you program with more than two people.

But yeah, I hear ya. Competing for eyeballs on Twitch is hard. Someone should do something about all those half-naked girls on there.

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