- 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 much tax to pay HMRC on cryptocurrency? Today 10:00
- Life Insurance services Yesterday 10:21
- Relevant Life Insurance Services Yesterday 10:08
- Will umbrella company regulation spark mergers and acquisitions? Yesterday 09:24
- Critical Illness Insurance for Contractors: Protect Yourself When It Matters Most Jan 14 16:26
- Relevant Life Insurance for Contractors with a Limited Company Jan 14 16:14
- Life Insurance for Contractors: Why it’s Essential Jan 14 16:09
- Guide to Income Protection Insurance for Contractors Jan 14 16:00
- Treasury minister told six actions can save contractor umbrella sector from ‘existential’ crisis Jan 14 09:40
- Critical Illness Services Jan 13 16:41
Leave a comment: