Reputation
7,098
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
3 23 30
Newest
 Guru
Impact
~212k people reached

Apr
20
comment Why does the type go after the variable name in modern programming languages?
Hihi, so Delphi, which is (Object) Pascal, and has had types after variable names since its inception, way back when in the dark ages of the previous century, is modern again ;) Btw, readability is much affected by what you are used to. Coming from Delphi, C# with its type before the var name, had me thumping my head for quite some time.
Apr
12
comment Capacity Planning for a solo developer - Activities?
@JeffO I used to do that as well. Then I had to start adding a percentage over that. I gave up when I had to start adding a percentage over what the second percentage gave me... This approach is hit and miss at best - you end up over- and under-estimating every item. It will only average out given enough items and enough variety between them. More importantly you don't learn anything about what it is about these items that makes you over- or under-estimate them, so you will never get better at it.
Apr
9
comment Capacity Planning for a solo developer - Activities?
@InteXX: just make a list of everything you need to do to make this thing. Eg.code the html form, wire it up, do the table to store the data, set up the orm mapping, test the validation and database logic, etc. etc. Such a lists serves as a todo / check list for when you actually start the work. More importantly, it will serve as a reality check against your initial "4 hours" estimate. Just listing what needs to be done will give you a better feel for the work involved. And that's also what the activities split in estimates is intended to do: most developers forget about the qa/testing work...
Apr
7
comment Capacity Planning for a solo developer - Activities?
@InteXX While the activity types may seem to finely grained for a solo developer (I am one for my spare time projects), fine tuning your estimation skills requires knowing what you spend your time on and what causes over runs and under runs of your estimates. Having finely grained estimates may not be much help, but having recording the time you spent on an item by activity may well help you understand where (and for which type of items) you need to adjust your "first impression" estimates.
Apr
7
comment When making a change to a single table in our app, should we minimize the scope of our change, or follow best practice for css/jsp coding?
@Zibbobz: just bear in mind that "changing just this cell" and not going for the all out change, you have introduced something that can become an exception to general behavior and if you do it often enough these little exceptions will make life that much harder when you do want to go for the all out change. The resistance to doing it the proper way will increase with every "just this cell" change you make...
Apr
6
comment How can I promote the use of the Builder pattern in my team?
@rath: There is no right or wrong. Just trade offs. And more often than not the trade offs involve more than code alone.
Apr
6
comment In DDD, is validation application logic, or domain logic?
What @RobertHarvey says. Validation should always be on the model, regardless of any validation by the "application" (isn't the model part of the application?). Any validation in the "application" should only be a repetition of the validation of the model - to enhance responsiveness of the UI, or should be related only to the "application" logic (as in: "on this form you can only enter ...", but I was assuming entity validation). Never trust the "application" layer for domain validation, it may not be your client sending the information...
Mar
31
comment Re-releasing LGPL code as AGPL : need advice on how to phrase license
"It even explicitly says so in the body of the license" Isn't that what I said: "Unless the original licencor specifically allowed re-licensing"?
Mar
30
comment Re-releasing LGPL code as AGPL : need advice on how to phrase license
Unless the original licencor specifically allowed re-licensing under equal or more restrictive terms, you are not allowed to re-license anything. Even though the GPL allows re-distribution with software licensed under the same level of restrictions, this is not the same as re-licensing the GPL'd software itself.
Mar
29
comment RESTful API. Should I be returning the object that was created / updated?
+1 The hateoas objective of not letting the client compose the uri's can also be achieved by by allowing the client to fill in server provided URL templates with specific ID's. Yes, the client "composes" but only in a "fill in the blanks" kind of way. While not pure HATEOAS it achieves the objective and makes working with objects that have a (large) number of "action" uri's a bit less bandwidth sensitive, not to mention when you put those objects in a (largish) list.
Mar
29
comment Calling a constructor from a parent class in a derived class
@K.Nes: Would the compiler really use different means to find the int class when you instantiate it rather than extend it? If it can find it, it can find it, regardless of what your code does with it.
Mar
29
comment Re-releasing LGPL code as AGPL : need advice on how to phrase license
+1, Though the argument is wrong. It is not because his license would impose new restrictions or not. It simply is because only the licencor can decide what licenses apply to the products (s)he has licensed for use to other people.
Mar
26
comment Is it a bad practice to return third party reference from public method?
@NiklasJ You can't ignore third party library updates when they contain bugs that hamper you in your code. Yes the distinction may be blurred for all kinds of situations, but it doesn't take much to add that insulating layer and it will help you stay flexible, especially when other options are falling by the way side.
Mar
24
comment How to secure my authentication code?
@CodesInChaos: Ah cool! (I'm no php security adept).
Mar
24
comment How many injections is acceptable in one class when using dependency injection
@MainMa Yeah, though I would say it doesn't make life easier, it just makes it more black and white.
Mar
24
comment Is it a bad practice to return third party reference from public method?
@NiklasJ Own libraries should be treated as libraries. Certainly when it comes to version control etc. But there is no need to abstract it or hide it behind your own API as you are already in full control of that.
Mar
24
comment Is it a bad practice to return third party reference from public method?
@NiklasJ: Third party libraries may seem similar in that they are libraries, but there is a huge difference. You don't change core language libraries at will. In fact, in fact you only change them when upgrading your language version. And when a core language library changes you don't only have two options: port your own code or stay with the older version. No such constraints with third party libraries. You can use these regardless of their language/version as long as they support the platform (possibly .Net framework version) you are targeting.
Mar
24
comment How many injections is acceptable in one class when using dependency injection
Why do people always want absolute limits?
Mar
24
comment How to secure my authentication code?
@CodesInChaos: Wouldn't you like some salt with your hashes?
Mar
24
comment Is it a bad practice to return third party reference from public method?
Related: programmers.stackexchange.com/questions/220450/…