Ruby Best Practices

Increase your productivity -- Write Better Code

USP: fcntl: file descriptor flags vs file status flags


over 1 year ago by normalperson@yhbt.net (Eric Wong) on Ruby Best Practices.
The fcntl(2) system call is one several system calls used to get and set internal attributes of file descriptors and open files they point to. Ruby exposes...

USP: Handling excessive CPU Usage within a Process


~2 years ago by normalperson@yhbt.net (Eric Wong) on Ruby Best Practices.
If you’ve ever had issues with a runaway process eating up CPU time and want to kill it automatically, it’s possible to use Process.{get,set...

USP: Implementing signal handlers - some caveats


~2 years ago by normalperson@yhbt.net (Eric Wong) on Ruby Best Practices.
Signal handlers may run at any time If your program receives a signal, Ruby will invoke the associated signal handler as soon as it is able to. This means...

Practicing Ruby's second volume now freely available


~2 years ago by gregory.t.brown@gmail.com (Gregory Brown) on Ruby Best Practices.
Keeping with my promise to release content from my Practicing Ruby journal, I’ve put together a massive link dump of articles from its second volume...

USP: Unix signals - primitive interprocess communication


~2 years ago by normalperson@yhbt.net (Eric Wong) on Ruby Best Practices.
Signals are the most basic way for processes to communicate with each other on a Unix system. Each process has signal handlers configured by default, so...

USP: Unix signals - primitive interprocess communication


~2 years ago by normalperson@yhbt.net (Eric Wong) on Ruby Best Practices.
Signals are the most basic way for processes to communicate with each other on a Unix system. Each process has signal handlers configured by default, so...

Kicking ass together: How to improve coding skills as a group


over 2 years ago by gregory.t.brown@gmail.com (Gregory Brown) on Ruby Best Practices.
Over the last year and a half, I have worked with a small group of students and staff to create an excellent online learning community at Mendicant University...

Kicking ass together: How to improve coding skills as a group


over 2 years ago by gregory.t.brown@gmail.com (Gregory Brown) on Ruby Best Practices.
Over the last year and a half, I have worked with a small group of students and staff to create an excellent online learning community at Mendicant University...

Issue 1.26: Structural Design Patterns


over 2 years ago by gregory.t.brown@gmail.com (Gregory Brown) on Ruby Best Practices.
Originally published as part of the first volume of the Practicing Ruby newsletter on February 28, 2011. Most of these issues draw inspiration from discussions...

Issue 1.26: Structural Design Patterns


over 2 years ago by gregory.t.brown@gmail.com (Gregory Brown) on Ruby Best Practices.
Originally published as part of the first volume of the Practicing Ruby newsletter on February 28, 2011. Most of these issues draw inspiration from discussions...