Replies

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.

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.

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

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 😎

masukomi, to ruby
@masukomi@connectified.com avatar

Another day, another native #Ruby 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?

  • 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