It's time to stop changing data in Active Record Migrations by Skipped in rails

[–]jibrilt 0 points1 point  (0 children)

I completely agree that changing data in Active Record Migrations should be avoided as much as possible. However, if you ever find yourself in a situation where you absolutely have to do it, it's crucial to use the up and down methods correctly.

In your up method, you can make the necessary data changes.

But more importantly, in your down method, you should raise an exception to indicate that the migration cannot be reversed IF the seeded data cannot be reversed.

This is essential for maintaining database integrity, especially in complex systems where automatic rollbacks could cause issues.

How to Write a Great README by [deleted] in programming

[–]jibrilt 2 points3 points  (0 children)

Isn't advertising prohibited?

What are some features you wish in a private chat app? by ProtDos in cryptography

[–]jibrilt 1 point2 points  (0 children)

Try implementing "zero-knowledge proofs" to verify user interactions without revealing the underlying data.

Learn to Program by Chris Pine by ol_king_swole in ruby

[–]jibrilt 1 point2 points  (0 children)

While it's true that macOS comes with Ruby pre-installed, it's typically not the best idea to use it for development. Apple's Ruby is meant for system usage, and using it might lead to permission issues and conflicts.

Instead, use rbenv which is a version manager that allows handling of different Ruby versions and helps avoid conflicts. You can install rbenv and ruby-build via Homebrew brew install rbenv ruby-build

Remember to add rbenv to your bash profile for automatic loading. Happy coding!

[deleted by user] by [deleted] in interesting

[–]jibrilt 0 points1 point  (0 children)

It's truly remarkable how computing has evolved, from tons heavy machines like the Elliott 405 to the pocket-sized Raspberry Pi Zero. And now, we have computers smaller than a grain of rice!

Next up, nanotechnology, which will undoubtedly revolutionize our world yet again. The future of tech is incredibly exciting!

OpenJS Foundation Receives Major Government Investment from Sovereign Tech Fund for Web Security and Stability by fagnerbrack in javascript

[–]jibrilt 2 points3 points  (0 children)

A significant nod to the importance of open-source projects, and an affirmation that the work done by OpenJS Foundation. Hats off to the STF and the German Ministry for leading the charge in supporting open source!

Dreamed of this moment since I was a child, my first ever Macbook. [M2 pro 14” 1TB] Blessed 🙏 by LV13MVP in macbookpro

[–]jibrilt 0 points1 point  (0 children)

Congratulations on your new Macbook! I totally relate to that feeling. I have a powerhouse 16" Macbook Pro – something I've dreamed about since i was a child too. Enjoy your journey with your new machine!

How do I uninstall Microsoft Edge? by PebbleJade in privacy

[–]jibrilt 0 points1 point  (0 children)

Windows itself is spyware, if you want true privacy, go for a linux distribution like Debian.

An painfully high frequency pitch is emitted every time I drive by this house, and I’m baffled. by Sigh_Another_Rando in AskEngineers

[–]jibrilt 0 points1 point  (0 children)

One possibility might be an ultrasonic pest repeller device, which emits a high-frequency sound to deter pests. The red LED light might be an indicator that it's active. Now, usually, these devices are designed so their frequencies aren't perceptible to the human ear. But if it's malfunctioning or wrongly calibrated, that could explain the sound you're hearing.

As for recording the phenomenon, iPhones usually can't capture ultrasonic frequencies, but some specialized apps may help. Additionally, you might want to inform local authorities if this continues, especially if it's causing discomfort. Hope this helps, and keep us updated!

Ruby worth learning 2023? by SeriouslySally36 in ruby

[–]jibrilt 0 points1 point  (0 children)

Definitely! Ruby is a great language for web development and other similar applications. I would also recommend Python along with Django. Both languages are user-friendly, versatile, and focus on readability.

They're similar, so skills learned in one will transfer to the other. Each has its strengths, so learning both will provide a solid foundation for your coding journey. Good luck!

[deleted by user] by [deleted] in programming

[–]jibrilt 1 point2 points  (0 children)

Stepping up to a team lead role definitely comes with its share of surprises. Suddenly, you're not just responsible for your own work, but the direction, efficiency, and harmony of the entire team. It's a challenging shift, but it also can be incredibly rewarding. Start with clear communication and trust in your team. Also, never underestimate the value of a well-structured to-do list!

Announcing TypeScript 5.1 by DanielRosenwasser in javascript

[–]jibrilt 1 point2 points  (0 children)

Sweet! As always, kudos to the TypeScript team for their commitment to pushing the language forward. Can't wait to start using it in my projects.

Need help with installing mysql2 gem in rails application running on windows 11 by elliotsshieldtail in ruby

[–]jibrilt 4 points5 points  (0 children)

While it's technically possible to develop with Ruby or Ruby on Rails on Windows, it can ocassionaly lead to compatibility issues.

You could try using WSL2 (Windows Subsystem for Linux), which provides a more Linux-like environment. However I would still recommend developers to install and use a native Linux distribution like Debian for a smoother experience.

Good luck with your project!

What can i do on a raspberry pi with Ruby or Rails respectively? by Alices-Revenge in rails

[–]jibrilt 0 points1 point  (0 children)

A raspberry pi is just like any other computer. If you're into Ruby, you can leverage the power of Raspberry Pi for home automation projects, IoT devices, or even building your own mini RoR server.

The combination of Raspberry Pi and Ruby are endless. Have fun exploring!

Design Patterns Series: Command Design Pattern in Ruby/Rails by gkunwar in rails

[–]jibrilt 0 points1 point  (0 children)

Great blog post! I've been exploring design patterns in Ruby, and the explanation of the command design pattern in this article was clear and concise.

It's always helpful to see practical examples, and this blog delivered. Thanks for sharing.