python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How do you create and save an Active Record instance that has a reference to itself?
Files is an Active Record model that has a reference to its parent of the same type:
class Files < ActiveRecord::Base
belongs_to :parent, class_name: "Files"
end
I want to create a roo...
pedz
Votes: 0
Answers: 1
Powershell $this variable does not work inside array indexing
I'm trying to emulate MATLAB's 'end' indexing keyword (such as A[5:end]) in Powershell but I don't want to type the array name (such as $array) to access $array.length for
$array[0..($array.length - ...
Hoi Wong
Votes: 0
Answers: 2
apply composite pattern to general graph models
I want to build up a data model, that mainly consists of a graph to be traversed later. Special requirement: a node inside the graph could either be an action to be executed or a container with anothe...
Tarek Salha
Votes: 0
Answers: 2
C# Can't serialize my object because of self-referencing loops
I am making a library system, and the class design(https://i.stack.imgur.com/5HlUf.png) has already been provided to us .
These are my classes, and both have List references to each other. When I try ...
Yahya Abdul Majeed
Votes: 0
Answers: 1