|
You are here |
pbrisbin.com | ||
| | | | |
www.railstips.org
|
|
| | | | | ||
| | | | |
thomascountz.com
|
|
| | | | | Adding Functionality to Client Classes The first step in tackling this problem is to add functionality to a model class. If we have a class Book, we want to add a class method Book.find , and some instance methods book#title, book#author, and book#isbn, without needed to explicitly write them, like we did in the original spike. A Note on Mix-Ins & Inheritance When you want to create a model with ActiveRecord, you have to inherit from the Base module: class Book < ActiveRecord::Base; end There are endless debates about composition v. inheritance, and, from my perspective, they all mostly lean towards composition, but what about using mix-ins versus using string inheritance? In Ruby, inheriting and including a module both add a new entity in the method look-up... | |
| | | | |
blog.blundellapps.co.uk
|
|
| | | | | This blog post explains how to create Room DAOs specifically for your Android debug build. These debug-only DAOs enable you to implement developer-centric features without affecting your production app. Keeping your codebase clean is essential for long-term maintainability. Debug-only DAOs help achieve this by isolating developer tools from user-facing features. Consider an app that caches | |
| | | | |
andreabergia.com
|
|
| | | This post is part of the Writing a JVM in Rust series. I have written a JVM in Rust ??thispost A JVM in Rust part 2 - The class files format A JVM in Rust part 3 - Parsing class files A JVM in Rust part 4 - The Java bytecode A JVM in Rust part 5 - Executing instructions A JVM in Rust part 6 - Methods and exceptions A JVM in Rust part 7 - Objects and GC A JVM in Rust part 8 - Retrospective Lately Ive been spending quite a bit of time learning Rust, and as any sane person would do, after writing a few 100 ... | ||