Code lifespan
Rick Murray (539) 13850 posts |
And who hasn’t thrown together a ten minute hack that’s still in use decades later, while the carefully planned code has fallen by the wayside…? |
Chris Mahoney (1684) 2165 posts |
Sounds accurate. Twenty years ago at work, someone made a little “let’s try out this new C# thing” test app which ended up in production and is still there to this day. |
Steve Pampling (1551) 8172 posts |
vbscript written in 2004, in use now. They tried to replace the whole setup last week and the professional code had problems. |
David J. Ruck (33) 1636 posts |
Arthur and the BBC MOS where thrown together in only slightly more than 10 minutes, to get the hardware out the door, and we are still living with the consequences of those and subsequent hacks in RISC OS 40 years later. If there was ever anything carefully planned by Acorn, it’s disappeared without trace :) |
Chris Mahoney (1684) 2165 posts |
ARX? |
nemo (145) 2552 posts |
To be fair, the MOS was very carefully planned – VDU19 only needed 1 parameter but got five, and thank heavens. VDU23 still hasn’t run out of room (and now copes with the whole of Unicode). There was never any danger of running out of OSWORDs. The myopia crept in during Arthur – the overloading of ServiceCalls, the mad 256-colour tint hackery, the 16bit coordinates. Uggh. |
Rick Murray (539) 13850 posts |
We’re still living with the consequences of having the keyboard mapping look like the MOS…
I’m still trying to get my head around that weirdness. |
nemo (145) 2552 posts |
The thing that gets my goat, that makes me froth with incredulity, is that even though VDU19 had more than enough room for all kinds of 24bit colours, and hence could have been used to select colours in the 256+ colour world (see my VDUColour module), they instead employed a VDU23 with 80 bits of payload in order to… specify two bits. That’s it. Six bits from the VDU17 or 18, two bits out of the 80 from VDU23. Bonkers. And only applicable to 256 colours and never extended beyond (you can’t specify 256 ‘tints’ in 16M colour modes for example). Just an API dead-end. Mind you, the lack of parameter checking in Basic means that the |
Rick Murray (539) 13850 posts |
This. I was doing something with the 256 colour modes, and it’s pretty easy to specify a colour.
That particular one should be taken out back and dealt with humanely.
😂 |
Rick Murray (539) 13850 posts |
Life lesson: Pay less attention to the forum when Mac&Cheese is involved. 1 No idea what that is in “funny money”. Degrees F was dead when I was at school 4, so why is anybody who isn’t American still using it? 2 Mostly nemo, good to have you back, it’s always amusing to read an informed skewering of the dumb parts. 3 Goes by the moniker “oven glove”. It’s exactly what the name implies. 4 Which was long enough ago that the music I grew up with is available on dedicated radio stations where they refer to the songs as “classic”. Which is another way of saying “you remember this the first time, don’t ya, ya crusty old git”. Just don’t point out that my remaining lifespan (if I live to the same age as mom) is now less than since Acorn was a company… though I take ❤️ in knowing that for most of us RISC OS users, especially those who know their way around the MOS and considered the Archimedes to be an upgrade… we’re all in the same boat. |
nemo (145) 2552 posts |
Speaking of which, have they fixed the SWI dispatch R0 corruption and high-vector MOSvar address bugs in 5.3? I just can’t bear to download and reverse it just to despair all over again. Actually, don’t tell me. I can’t bear it. |
Rick Murray (539) 13850 posts |
…do what? |
nemo (145) 2552 posts |
Didn’t need source for these versions. |
D.G. Wright (9928) 4 posts |
Valid. Wrote a little kludgy thrown together program in Pascal over 25 years ago and recently I abandoned a full rewrite in order to go back and hack together a new version based on the original code. ;-) |
Tim Rowledge (1742) 170 posts |
Well, still using code written 53 years ago by current colleagues. And no, not cobol. |
David J. Ruck (33) 1636 posts |
Fortran 66? |
Stuart Swales (8827) 1357 posts |
Friend got a mark docked at Uni in 1982 by using lowercase comments in a FORTRAN 66 program (Ackermann function, using own stack). It was supposed to be written in standards-compliant F66. Lowercase was allowed in Hollerith constants in F66 but somewhat perversely not in comments. It was an interesting standard, looked more like a legal document than anything helpful. |