2 ms·
I often use: if (false) { } else if (something) { } else if (something) { } To get some indentations right. When constructing UI elements in code, I used to sc
by jbverschoor 13y ago
I often use:
if (false) {
} else if (something) {
} else if (something) {
}
To get some indentations right.
When constructing UI elements in code, I used to scope copy/pasted blocks:
{
Button button = xxx;
// and some more
}
{
Button button = xxx;
// and some more but different
}
In the rubydays it'd be:
Button.new do |b|
something
end