Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   Programming (https://www.cableforum.uk/board/showthread.php?t=33713684)

Halcyon 16-01-2026 08:45

Re: Programming
 
Windows 7 was well built and performed better than Vista's resource heavy OS.
Windows 10 has been Ok, but I'm liking Windows 11 now.

I'll always prefer MacOS but have to use Windows in my day job.

Anonymouse 16-01-2026 08:51

Re: Programming
 
Never used 7. I was going to, on a mini PC, but while building it I did something, not sure what, and trashed it. Left it at that. :(

I couldn't do that now - almost useless right hand.

Hang on - you 'like' 11? <Cockney>'e's a nuttah!</Cockney> :p:

tweetiepooh 16-01-2026 09:30

Re: Programming
 
I was about to say that your original code didn't look right. Depending on the language today I may use something like
A = (B%2) ? 1 : 2


If B MOD 2 is TRUE (not zero - odd) set to 1 else set to 2.


At uni I coded in Fortran 77 and Basic but taught myself B.


For work I mostly used Clipper (xBase compiler) for a long while. That was fun but left as Windows and graphical interfaces came in.


Now, if I code, it is in Perl or Bash. I am looking at Rust and have done some Java, JSP and JavaScript, but most of my work is parsing text so Perl is great. I love the ethos of there is more than one way to do it (TIMTOWTDI) and that it is untyped so I can shove a number into a variable and later a string into the same variable. (Yes I understand why typing is good but if you don't always know what the data it going to be it saves casting and mucking around like that.)


Back to uni and the first touching of the computer was coding sheets -> punched cards -> output -> correct card and resubmit. We were told of a "whizz" where you picked up two decks of cards, then put a "goto label" card in one deck and the "label" card in the other and submit the pair together. The computer saw the "goto label" then kept going to find the label, past the "end" card on the first deck and into the middle of the code in the second. Wasn't that fun. I think they fixed the compiler to catch that. What saved me was finding the console room and our logins would work there. But as undergrads on a computing extra course we only had very limited time per week. I managed to wangle a postgrad account (unlimited) for the rest of my time at uni by demonstrating I could code and needed time to parse data collected from by project.

Anonymouse 16-01-2026 14:56

Re: Programming
 
Rust...hmm. I looked it up on Wikipedia; there seems to be a resemblance to C. I might try to learn it. I wonder if Linux has a Rust compiler?

Paul 16-01-2026 17:36

Re: Programming
 
Quote:

Originally Posted by Anonymouse (Post 36209106)
I might try to learn it. I wonder if Linux has a Rust compiler?

It does.

Anonymouse 17-01-2026 01:34

Re: Programming
 
Thanks. Hopefully the library has books on Rust. Or maybe Bolton College is running a course; I'll look into it.

nomadking 17-01-2026 07:00

Re: Programming
 
Quote:

Originally Posted by Anonymouse (Post 36209147)
Thanks. Hopefully the library has books on Rust. Or maybe Bolton College is running a course; I'll look into it.

Should be plenty of online resources available for free.

Anonymouse 19-01-2026 18:25

Re: Programming
 
Quote:

Originally Posted by Anonymouse (Post 36209147)
Thanks. Hopefully the library has books on Rust. Or maybe Bolton College is running a course; I'll look into it.

I did. They don't. :(

So I downloaded some stuff (mainly PDFs) c/o qbittorrent. Very handy.

Anonymouse 21-01-2026 05:40

Re: Programming
 
Still getting around to reading them, though...:erm:


All times are GMT. The time now is 20:53.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum