I am an old newbie... (done 3 project which are all working, using Nanos, I2C LCD, Dotmatrix display, Neo GPS, PM2.5 meter, ... ... ...)
BUT
I have a question regarding writing sketches...
What is the advantage to write a Sketch as follows? (extract from a sketch)
The advantage of the second method is that is saves paper on the line printer. If I remember, you can usually squeeze up to 132 characters on to each line. Come to think of it, I have not seen much lately of that green/white scored paper with sprocket holes.
The big advantage is that you can spend hours figuring out what "expected ) before ; in line 12" could possibly mean. So the second aproach is benefitial for beginners: it teaches you the worst possible practice and lets you suffer the most why trying to debug it.
3 different types you got there, mind you. 6L6 was/is a lot beefier than 6V6 and 6BQ5. The latter are also different, the former being a beam tetrode and the latter a pentode. Let's not go into sonic differences given the risk of unleashing an armed conflict.
More like this one: IBM 1403 - Wikipedia
Which would be more period correct with the 6V6 anyway...
what do you think the advantage of putting everything on one line might be?
abiding by some style that is common gets you use to reading code and seeing patterns that are easily recognizable. That makes it easier to read and debug code without looking at it in detail. Bugs tend to stand out
Btw, there are sometimes valid reasons to bunch a couple of things together in one line. We generally always do so in for-loops: for (uint8_t i = 0; i < xyz; i ++)
instead of
for (
uint8_t i = 0;
i < xyz;
i ++;)
It can also be useful in switch/cases if they involve little code for each case, in which case it helps readability (or rather, 'scrollability'):
switch (rt_state) {
case CW_FAST : count += 10; break;
case CW_SLOW : count += 1; break;
case CCW_FAST: count -= 10; break;
case CCW_SLOW: count -= 1; break;
}
I remember writing an assembly program to clean the type train before printing letters to policy holders for an insurance company. The machine was a 360 mod 40 running three partitions. The standard program to clean the print characters would only run stand-alone, so all partitions and work had to be finished. The field engineer gave me a direct warning to never, ever print so adjacent characters on a three character train segment were printed sequentially. The train could explode because the train would be completely stopped. It worked and everyone was happy.