6,421 reputation
32029
bio website marjanvenema.com
location Netherlands
age 52
visits member for 3 years, 10 months
seen 21 hours ago

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


May
31
comment Should I create separate work and personal GitHub accounts?
Even if you put work in private projects, one's employer may not exactly be happy with having what it considers its code "out in the open" (not controlled by their own security policies) and showing it to other companies during interviews. Even putting it up on GitHub in a private project could be considered stealing. I know that if I put my employers code on GitHub without their express consent, I would be in serious trouble. And I haven't signed an NDA.
May
31
comment Should I create separate work and personal GitHub accounts?
@AlmostSurely: do you have permission to put actual work on github? Your employer may not be too happy about this even if you do make those projects private.
May
31
comment Is it RESTful to resume terminated POST operation on a GET request?
Use message queues and take the headache out of this? How and when the server resumes the unfinished operation should not be dependent on user action. That's asking for even more headaches.
May
25
comment What is software maintenance?
@DocBrown: +1 The software suite I generally work on gets new features added all the time. I would hardly call the work I do maintenance. Maintenance is at most 20% of my work on this system. Yet many people would call it maintenance just because we are beyond version 1.0. And I also do "hate" the term "legacy system". I learned it to refer to systems that need replacing or wrapping, yet now often hear it used for any system that is beyond version 1.0. There is nothing legacy about a software suite in its umpteenth version, when that suite is actively developed.
May
18
comment MVC 5 - Best practice for handling dates inside and outside the USA
@ratchetfreak: Good find. Randy: don't go coding supporting different regional formats yourself. It's a waste of time and you'll probably miss stuff. Can't recall the name right now, but there is a jQuery internationalization / validation library that will/should take care of this. Search for those terms and you will find it.
May
18
comment MVC 5 - Best practice for handling dates inside and outside the USA
@amon: don't go by country based on IP. When I am traveling my location will be different from my regional preferences.
Apr
19
comment MVC: “User” model gets big and crowded. Should methods that do CRUD operations on one-to-many relationship data be in different models?
Related: programmers.stackexchange.com/questions/218467/…
Mar
17
comment Why do most sites require email activation
Indeed, just don't count on the one using the e-mail address actually being the owner of that address. People share way too many things with their friends and families. When things go sour bogus accounts are created using former friends'/partner's "credentials".
Mar
17
comment Why do most sites require email activation
+1 but "the email is yours" is not quite true. It only ensures that the one signing up has access to the e-mail account. Nothing more.
Mar
17
comment Why do most sites require email activation
"Making sure the user owns the email address." It only ensures that the one signing up has access to the e-mail account. Nothing more.
Mar
17
comment Why do most sites require email activation
"owns that address" It only ensures that the one signing up has access to the e-mail account. Nothing more.
Mar
13
comment Can the author of code licensed under CC-NC-ND use it in commercial closed-source software?
Why are you using CopyLeft instead of CopyRight? CopyLeft is usually used for the "viral" copyright licenses: gnu.org/gwm/libredocxml/x53.html
Mar
12
comment What is the best pattern for adding an existing item to a collection in REST API?
Your first option is fine though I would use PUT instead of POST as the client is in control of the identity being added to the collection. Your first concern with option 2 is entirely up to you, if you don't want new sites, don't throw an exception but return one of the 4xx codes. Your second concern is neither here nor there. You shouldn't be posting an entire Site anyway unless you allow additions. Adding an existing site should have the id only as you are modifying the site but only the "ProjectSite" collection (even if you don't create a separate resource for it).
Mar
12
comment Why do we use hungarian notations on local variable but not on function or global variable?
Related: programmers.stackexchange.com/questions/102689/…
Mar
12
comment Why do we use hungarian notations on local variable but not on function or global variable?
Not quite true. People do still use Hungarian notation. Systems Hungarian has problems. Functional Hungarian has valid uses.
Mar
6
comment How to measure the success of a small software project?
+1 "How much time is the project saving its user in the performance of their tasks?" would be a nice question for understanding the business value of the project. Might require some up front measurements. Preferably quantitave, but guestimates could be useful just as well.
Feb
15
comment Need help modelling a User/Project/Task relationship
Sorry, not familiar with Laravel. As to tying the three together in a pivot table, I would wait with that until you are further along and the need for it really becomes apparent. I have not yet come across situations where an owner field didn't suffice. Or, in other words, where the need for the owner to be a member needed to be enforced by the database. These things are often better left to "organisational enforcement" and not putting the constraints in the database also ensures that your software then doesn't have to deal with other, often complex, organisational issues.
Feb
15
comment Code ownership with multiple Scrum teams
Instead of bolding and italicizing that block of text to signal that it is a quote, the editor provides a "quoted text" feature / style. You simply select a block of text and use the double quotes icon at the top of the editor. Using that helps keep quoted text have a consistent recognizable style across the site.
Feb
14
comment What is the benefit of having the assignment operator return a value?
@MasonWheeler: yeah, that thought hit me later. (I'm still a bit in shock after a highway accident). @ Delnan: my point was that C# also uses different operators for assignment and comparison, just like Delphi, but as Mason points out, the difference isn't big enough to avoid frequent confusion.
Feb
13
comment What is the benefit of having the assignment operator return a value?
@Brian: Indeed, as does C#. = is assignment, == is comparison.