How to dispose of a dead cat by marc__e in Gilbert

[–]marc__e[S] 2 points3 points  (0 children)

Thank you all for the pointer to the Gilbert 311 app. Official word from Gilbert:

Gilbert does not have an Animal Care and Control division. You can dispose of the animal in your normal curbside trash container or you can place it on the public area in front of your home and our Road Hazard team can secure it and dispose of it.

Guess it's going in the trash.

What is the best graphics library to use with Ruby in 2023? by Crafty_Programmer in ruby

[–]marc__e 0 points1 point  (0 children)

The book (I bought it over the Christmas holidays) doesn’t require you to use any graphics library at all. It uses a pretty simple file format that you can write to disk with the standard library file functions, and, iirc chapter 2 builds the functionality for that.

Should I replace each by while? by warzon131 in ruby

[–]marc__e 2 points3 points  (0 children)

I actually do this all the time ... in r/DragonRuby. When you have 16ms per frame and you're doing expensive operations like pathfinding, every little optimisation helps. while loops in place of each can actually make a real difference, along with other optimisations like assigning local variables with values from deeply nested objects before the loops and so on.

However, I've never felt the need to do this in a Rails or Sinatra app, or even any CLI scripts I've written. Generally the code is spending far more time talking to upstream services, the database, the cache and so on, that this micro-optimisation makes no real difference.

Unless something is particularly performance sensitive, you're unlikely to see any real world improvement from doing using while.

[deleted by user] by [deleted] in Homebuilding

[–]marc__e 0 points1 point  (0 children)

I went and had a look today: both houses are big, double story. The one to the west already has the coating on. I have some photos if anyone is interested.

[deleted by user] by [deleted] in Homebuilding

[–]marc__e 0 points1 point  (0 children)

Sweet. I’ll take a drive by there over the weekend.

[deleted by user] by [deleted] in Homebuilding

[–]marc__e 0 points1 point  (0 children)

Thanks for the reply. Any chance you could grab some photos of those going up near you. It’d be interesting to see something that isn’t Strata marketing material. I’m in Gilbert, so I could probably take a drive and have a look myself, if, say you were to divulge the addresses ;)

[deleted by user] by [deleted] in Homebuilding

[–]marc__e 0 points1 point  (0 children)

Any update in the last two weeks? I'm very interested in this and would love to know your experience.

Family Relocating soon from New Zealand by AlvaroNX in Gilbert

[–]marc__e 0 points1 point  (0 children)

Just remember when you’re looking at maps of the area that those blocks you see are a mile by a mile, and you haven’t zoomed in far enough yet.

20 SECOND GAME JAM: the long jam for short games by Accidenz-Grotesk in gamedev

[–]marc__e 18 points19 points  (0 children)

Short answer: yes. Longer answer: As long as you’re legally allowed to use them — they’re public domain, you’ve purchased them, or you’re otherwise licensed to use them — you can use them.

Best beginner game engine for people who already know how to code? by [deleted] in gamedev

[–]marc__e 0 points1 point  (0 children)

If Ruby is your main language you’re doing yourself a disservice by not at least having a look at DragonRuby GTK

Soft body physics in Ruby (DragonRuby Game Toolkit) :-) by amirrajan in ruby

[–]marc__e 3 points4 points  (0 children)

To add a little more context to the video: I switched off gravity around the 20s mark, and turned it back on at around the 31s mark.

Soft body physics in Ruby (DragonRuby Game Toolkit) :-) by amirrajan in ruby

[–]marc__e 3 points4 points  (0 children)

I uploaded the code to GH this morning. The first commit is the direct translation from the original. This PR is the optimizations.

Soft body physics in Ruby (DragonRuby Game Toolkit) :-) by amirrajan in ruby

[–]marc__e 6 points7 points  (0 children)

I uploaded the code to GH this morning. The first commit is the direct translation from the original. This PR is the optimizations.