Originally posted by bogeyman
View Post
- 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: Encapsulation -v- Component Design
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 "Encapsulation -v- Component Design"
Collapse
-
-
Originally posted by Solent View PostI'm a C# developer since PDC 2001
Sounds like you might be promoting the 'plenty quickness, much cheapness' variety of OOP.
If you've being doing C# development since 2001 and you still fail to grasp the relevance of encapsulation and inheritance then I suggest you find alternative employment.
As for you boss, what does some old C/C++ dude know?
Leave a comment:
-
Originally posted by Solent View PostSomething for the .net programmers out there. I guess this is a top level question... As you maybe some of you have read, I am going through an issue with quality of code etc.
My boss has delivered some code today / this morning which I cannot understand his logic. I'm a C# developer since PDC 2001 and he's from a from a C / C++ background. Everything to him he has to box as an Object, I'm still standing my ground and yes... there has to be a certain amount of encapsulation but not to the degree where code is unmanageable and you have to 'Go To Definition' in VS on several layers to understand what its doing. Surely we have an object but its Component Design now, albeit it's based on a Base Class. Finding it frustrating now. Segregate objects !
Leave a comment:
-
Originally posted by Solent View PostSomething for the .net programmers out there. I guess this is a top level question... As you maybe some of you have read, I am going through an issue with quality of code etc.
My boss has delivered some code today / this morning which I cannot understand his logic. I'm a C# developer since PDC 2001 and he's from a from a C / C++ background. Everything to him he has to box as an Object, I'm still standing my ground and yes... there has to be a certain amount of encapsulation but not to the degree where code is unmanageable and you have to 'Go To Definition' in VS on several layers to understand what its doing. Surely we have an object but its Component Design now, albeit it's based on a Base Class. Finding it frustrating now. Segregate objects !
Leave a comment:
-
WTS
I am a recent escapee from VB6 land and I have to say that the encapsulation approach is a no brainer.
I don't mean to be obnoxious here but you actually sound like a VB6er who understands basic compositional objects but not inheritance.
Leave a comment:
-
I'm with your boss and Bogeyman, the whole point of OO is to encapsulate data and logic. I bet you're one of those annoying people who make member variables public because you can't be bothered to write getters and setters.
Leave a comment:
-
Sorry. I think I have to side with your boss here.
Whatever you think of his code, his concept is right.
An object should be a black box. It should have well documented public interfaces, but what goes on inside the box is, to you, as a consumer of the object, none of your business.
You imply that your boss's class is derived from a base class, so it should exhibit all of the properties and methods of that base class. Issues should only arise when your boss's class offers additional properties or methods, or overrides the properties or methods of the base class. If these additions are poorly worked, or badly documented, then you have a problem.
Whatever issues you have with your boss's class, they wont be solved by snooping around in its internals.
Talk about missing the point of OOP!
This is in no way .net specific, incidently.Last edited by bogeyman; 19 November 2008, 01:04.
Leave a comment:
-
Encapsulation -v- Component Design
Something for the .net programmers out there. I guess this is a top level question... As you maybe some of you have read, I am going through an issue with quality of code etc.
My boss has delivered some code today / this morning which I cannot understand his logic. I'm a C# developer since PDC 2001 and he's from a from a C / C++ background. Everything to him he has to box as an Object, I'm still standing my ground and yes... there has to be a certain amount of encapsulation but not to the degree where code is unmanageable and you have to 'Go To Definition' in VS on several layers to understand what its doing. Surely we have an object but its Component Design now, albeit it's based on a Base Class. Finding it frustrating now. Segregate objects !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
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Leave a comment: