

1·
13 days agoI only use nerdtree, and bind some scripts to F-keys. Haven’t updated in a couple years, just works.
I only use nerdtree, and bind some scripts to F-keys. Haven’t updated in a couple years, just works.
If you write to a text (as opposed to binary) stream, \n produces \n or \r\n (or \r if old enough) depending on platform just fine.
Nobody should be using C++ anyway, but plenty of languages have silly system newline constants, which do nothing useful.
Waterfall: Boeing/ULA does this. Their rockets cost $4B per launch, don’t work, strand astronauts. Maybe the next repair/test cycle, if management’s dumb enough to keep paying them.
Agile at least launches something.
ed (1) is still the standard text editor.
print( ["even", "odd"][num % 2] )
If you need to avoid evaluating the wrong branch:
print( [lambda: "even", lambda: "odd"][num % 2]() )