- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Reply to: The youth of today ....
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "The youth of today ...."
Collapse
-
I might pass as a young'un, at least from a speeding train in very low light. And must admit, encoding them bitwise in a single borrowed numeric database field isn't how I'd store config. What was their problem with 'config files and the like?'
-
Good old single Led's and switches are best.
Get eight of them to sit at the front of the class with U,2,4,8 etc held up.
i.e. there are 8 people sat down = 0, 8 people stood up = 255, then only Britney (U), Wayne(4) and Todd(16) stand up that makes 21.
They need to realise that each person has an individual value.
Why AND instead of using a bitwise operator?
Leave a comment:
-
The youth of today ....
Am I just super-inteligent, or are the skills required to get into IT not what they where when I was a lad .....
I had a case a couple of months ago where I was writing an app for a client.
The client 'amended' the specs midway though (as is their will !), requesting a 'configuration' option. They wanted to be able to turn various flags on and off to affect the operation. What they did not want was a load of variables in the source code as they felt they would change the parameters reasonably frequently and did not want to recompile code etc. They also did not want config files and the like.
The solution I proposed and implemented was to use a 'spare' field in one of the DB tables that the app interacts with. There was one spare numeric field available 64 bits wide. Nice, 64 config options (even though today they only need 8) - lots of scope for future development.
So, the solution is to assign each bit position as a config option. Then the app looks at the value in the field, and does logical ANDs to determine if a given option is enabled.
How easy can it be ?
But I had 2 (younger) colleagues who just could not understand it !
If OptionA was bit 1, OptionB was bit2 and OptionC was bit3; you would AND the field value with 1, 2 and 4
They could not understand this
, and would say things like "if the field value is 4 then OptionC is enabled". Whilst that is true, they just could not understand that OptionC would be enabled if the value was 4, 5, 6 or 7 !!
AND is probably the easiest logical operator to get your head round; and they could not grasp it !
What do they teach them these day ?
Tags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- How key for IR35 will Control be in 2026/27? Yesterday 07:13
- What does the non-compete clause consultation mean for contractors? Feb 19 07:59
- To escalate or wait? With late payment, even month two is too late Feb 18 07:26
- Signs of IT contractor jobs uplift softened in January 2026 Feb 17 07:37
- ‘Make Work Pay…’ heralds a new era for umbrella company compliance Feb 16 08:23
- Should a new limited company not making much money pay a salary/dividend? Feb 13 08:43
- Blocking the 2025 Loan Charge settlement opportunity from being a genuine opportunity is… HMRC Feb 12 07:41
- How a buyer’s market in UK property for 2026 is contractors’ double-edge sword Feb 11 07:12
- Why PAYE overcharging by HMRC is every contractor’s problem Feb 10 06:26
- Government unveils ‘Umbrella Company Regulations consultation’ Feb 9 05:55

Leave a comment: