366 reputation
18
bio website infotopie.nl
location Netherlands
age 36
visits member for 3 years
seen Mar 28 at 22:24

Mar
27
comment Why are inheritance and interfaces restricted to instance members?
Not sure if I'm fully following all you guys are saying, but the remark that object.function(arg) is just an alternative notation for function(object, arg) is quite enlightening. So the System.Type (or RTTI) is bound to that instance somehow. For static stuff the compiler would dismiss the Type on which a static method was implemented and just do a jump to the compiled address providing the arguments function(arg)? That would kind of explain things (if my assumptions are true).
Mar
27
comment Why are inheritance and interfaces restricted to instance members?
@MichałKosmulski Yes, one could force an object to implement a property that returns a singleton with meta-data (well you could not force it to be a singleton, but by convention it would). However you would still need an instance of that object to get to that metadata. Attributes (annotation) work better, but cannot be enforced compile-time. To be honest, I'm not really looking for a workaround (invented many already), rather for the reasoning how this all came about to what it is today.
Mar
27
comment Why are inheritance and interfaces restricted to instance members?
Ok, but if we do have an instance of System.Type to pass on then there should be enough info. I guess that System.Type is quite .Net specific, however I do remember having RTTI before .Net dominated my career. I'm guessing that the reason for not supporting static stuff in interfaces might have to do with keeping things in sync with legacy?
Mar
27
comment Why are inheritance and interfaces restricted to instance members?
With simple little objects that's easy, but with heavier stuff that use resources it's a bit more difficult. Some objects lack default constructors or need quite a bit of mocking in order to get an instance. I have abused FormatterServices.GetUninitializedObject in the past to get around some resource hogs, and I have also used attributes allot. Any way, I was just wondering if the issues are more technical than conceptual of nature. I don't have the illusion that Microsoft will change C# after reading this :-) I just like to know the background and reasons for the choices made.
Mar
27
comment Why are inheritance and interfaces restricted to instance members?
Ok, that's a clear answer to why the inheritance part would not make sense, so you've answered half of the question. The other half is about interfaces. I know about functional programming, but for the time being I'm holding onto my trusty statefull encapsulated objects. I was thinking about a complie-time alternative to runtime reflection. I guess I'll edit my question to elaborate.
Feb
19
comment
I like the quote "I've worked my way up into the top 50 despite being a student for all of that time." Odds in my perspective are you're more likely to work yourself up there while you're a student... After having a full time job and a family to look after, you'll probably swap "dispite" for "due to" or so :-)
Aug
4
comment Industries and types of projects avoiding OO
My advice would be to become a DBA or do another database related job. There are some new technologies allowing to store complex objects into cells, but I don't think these will be adopted large scale in the foreseeable future.
Jul
13
comment Is code reviewing good practice?
As long as it stays collaborative, its good practice. There are some company cultures (up or out) where colleagues are internal competitors. In these circumstances code reviews require social/political skills in addition to technical skills. In that case I'd say it's too stressful. The best code reviews are the informal ones between colleagues: "hey I just pulled an update and saw the code you checked in yesterday. Maybe it would be a better idea if you ... rather than ...". Collaborative and beneficial, not competitive. The projector idea somehow feels like a "let's throw tomato's" excursion.
May
17
comment Making an internship most effective, useful and fun for both parties
Not all interns like social events (programmers in particular tend to be more introvert than... salesmen for example). I guess point A is the best and probably the only definite rule: doing real work. I cannot think of anything more satisfactory than seeing my first project being taken into use (when all those bugs came rolling in from people using it in ways I never imagined it would be used). That's definitely a prerequisite that made my internship a great success!
May
13
comment Why is Global State so Evil?
"but those skills are lost"... not entirely yet. I recently worked at a software house that swears by "Clarion", a code generator tool that has it's own basic-like language that lacks features such as passing arguments to sub-routines... The sitting developers were not happy with any suggestions about "change" or "modernizing", finally got fed up with my remarks and portrayed me as deficient and incompetent. I had to leave...
Feb
29
comment Why is trailing whitespace a big deal?
Adobe InDesign (does that also fall under consumer-level WYSIWYG junk?). It will ignore trailing spaces, yes, but replace all linefeeds with spaces in a paragraph and you'll end up with double spaces (which are not ignored), then an extra replace is needed to eliminate those.
Nov
26
comment Should developers do their own software releases (if there is a prod support team in place)?
Sounds like the support team is also the test team? I guess you should let the test team test it first, or if you lack the test team, then better have support test it before the customers have to (unless your policy is customer=tester like a company i've previously worked for :-).
Nov
24
comment Why are part-time jobs in programming an anomaly?
@ThiefMaster, well not exactly forbidding personal projects, but any commercial activity, so no personal shareware or the likes. Concerning non-commercial open source activity, at least it shows passion and commitment to the field of profession, but if the boss will really be glad with it just depends... On my first job, I had the contract altered to allow my personal shareware site. I've now quit the shareware idea since it is impossible to combine a full-time job, a family and maintaining the shareware.
Nov
24
comment Why are part-time jobs in programming an anomaly?
I guess saying you want to work on your own projects may be the worst thing you could ever say. A manager wants full dedication. You might be physically at his location, staring at a screen of his code, but thinking how to solve a problem on your own project. Are you spending your time on his or on your project? Most contracts I have had expressly forbid personal projects and some even go so far as claiming the right on any patents or inventions you may have during the period you work for them. Passion, Dedication, Commitment and Patronage are the gems that contractors are looking for.
Nov
3
comment Asp.Net MVC CMS or Shopping Cart or any other type of System
I've learned quite allot from the N2 MVC templates.