6,531 reputation
32129
bio website softwareonastring.com
location Netherlands
age 52
visits member for 4 years, 3 months
seen Nov 22 at 18:59

Software developer since 1985. Started in Cobol, moved via Clipper/VB to Delphi. Delphi developer since 1998. Sniffing at C# and playing around with javascript and some php for websites. Coaching new employees and less experienced developers. Focused on software architecture and SOLID design. Keenly interested in user experience and usability.

Questions

When you ask a question, show your effort, provide all the details that will help someone to help you and be precise.

Answers

When you answer a question, don't just paste your code. Your answers will be much better when you explain why your code is doing what it does and how it achieves the asker's goal. It makes it a whole lot easier to follow along. As it is I am much more inclined to up-vote answers that have explanatory text about what the code is doing and why it is written as it is.

Answers that just contain links aren't likely to get an up-vote from me either

Other

Obligatory link whenever someone thinks they are improving security by imposing all sorts of rules on password composition: Password strength


Mar
17
comment The application I wrote is listed as malware. How to fix it?
As I said: search stack overflow (stackoverflow.com) and/or google. You are not the only one suffering from this and there are solutions/workarounds out there. The Embarcadero forums (edn.embarcadero.com) should also help. Btw, when you answer someone's comment, it helps to start with their name preceded by an '@' character as they will then receive a notification that you responded.
Mar
17
comment The application I wrote is listed as malware. How to fix it?
what version of Delphi and what type off app is it? There were issues like this with console apps compiled by a specific Delphi version. Searching Stack Overflow and/or google for Delphi and virus software should bring up relevant information.
Mar
17
comment Is unit testing or test-driven development worthwhile?
Think about the wish/need for a refactor. Would you be more confident in actually doing the refactoring (of any magnitude) with or without a comprehensive set of unit tests to catch you when you have inadvertently broken something?
Mar
15
comment What are benefit/drawbacks of classifying defects during a peer code review
Gerrit? Haven't heard of it before (apart from the fact that it is a Dutch first name for guys). Could you add a link so I could find more information?
Mar
13
answered Models per database table?
Mar
11
comment Defensive Programming vs Exception Handling?
Testing isn't a catch all. I have yet to see a test suite that has 100% code and "environmental" coverage.
Mar
8
comment Are time restrictions on technical tests a good thing?
Bear in mind that you always have the option of not mentioning the time limit and just letting someone get on with it. Whether they went over or stayed under the limit can simply be a factor in assessing what they came up with.
Mar
5
comment Why almost no webpages hash passwords in the client before submitting (and hashing them again on the server), as to “protect” against password reuse?
@Ramhound: I am not your personal editor, mate. And I did not complain, I gave you a suggestion.
Mar
1
comment Should I use Legitimate Email spoofing?
@HoàngLong: I don't think it matters what the (web)mail clients are doing with the information, especially as you are concerned with ethics. Therefore I feel it matters more that the messages you sent reflect the actual situation: you are sending something on behalf of someone else. So if you can manually add the "Sender" header, I'd do so and leave it up to the (web)clients on the receiving end to decide what to do with the information. Spam filters that are aware of this header might also use it instead of the From header to do the reverse DNS lookup.
Mar
1
answered Should I use Legitimate Email spoofing?
Feb
29
comment How can I justify my disclaimer of warranties license to a customer?
Ask your customer whether he has tried to get these clauses waived with any of the (larger) software vendors he's bought software from. It is not unheard of that he's just pestering you because you seem small enough to be bullied into waiving the disclaimer.
Feb
23
comment Is CSS resizing of images still a bad idea?
Really depends on the resizing algorithms of the browsers used: joelonsoftware.com/items/2008/12/22.html
Feb
19
comment Do We Have a Responsiblity to Improve Old Code?
hmm, I guess I would opt not to make the change unless it is directly related to what I am working on. And, as we have a branche per issue, I always know when (which release) something will go into production. Also, I really feel any change made needs to be tested, not "just" reviewed as required. People's assessments of what constitutes a risk differ and a second pair of eyes never goes astray. Then again, I work mostly on server side code where changes may subtly affect the results returned to clients. Risk assesment for changes to client side code possibly are a lot more straight forward.
Feb
18
comment Do We Have a Responsiblity to Improve Old Code?
Ah, ok, I see. To me that means it is still intended for production, just later. And it is quite a risk unless you make sure that there is an accompanying issue in your issue tracking system so the testers/qa department also get their stab at your "improvements". Otherwise they will make it into production untested as it rides along with other changes.
Feb
18
comment Do We Have a Responsiblity to Improve Old Code?
Changes of production code that are not intended to be pushed into production? But are kept in the development branch? hmm. Don't think I would accept that. It will only serve to confound and compound later development because no-one will be sure whether it should be changed (again) or not to comply with other changes that are intended for production.
Feb
14
comment Should internal code be shared with non-developers in an organisation?
Why would you want to keep it from them?
Feb
13
comment In an MVC system, where should the database persistence code sit?
@Falcon: Yes, that is a good way of doing it and is how I have done it in the past using separate mapping classes. However with the advent of extended RTTI (Delphi) and reflection (.Net and others), I have no qualms about using these in conjunction with annotation of the Business Object Model's attributes to get everything going and just use overloads of, code hooks into and/or specifically coded initialization classes to take care of database versioning.
Feb
13
comment In an MVC system, where should the database persistence code sit?
@Falcon: While the controller should control when data is loaded from and persisted to the database, it is perfectly alright to have it tell the model to do so. Using an ORM (standard or roll-your-own) will usually mean telling the model to load/save which then delegates to the ORM. Another way could be to have the controller tell an ORM to load/save something passing it a model class to load (with selection criteria) or model instance to save. Either way, the actual loading/saving will be intemately tied to the model.
Feb
6
comment Writing Testable Code vs Avoiding Speculative Generality
Interfaces are not only used to effect generality. They are used for many purposes, decoupling of your code being one of the important ones. Which in turn makes testing of your code a heck of a lot easier.
Feb
6
comment When stuck, how quickly should one resort to Stack Overflow?
@DavidWallace Couldn't agree more. Too many people just ask without thinking (low quality questions), some people think and ask (better questions, but I do wish more people would actually search before asking (less (near) duplicates).