Reputation
Next tag badge:
553/400 score
76/80 answers
Badges
17 177 309
Newest
 Good Answer
Impact
~1.7m people reached

14h
comment Should I Include PHP code in HTML or HTML in PHP?
"you do mix javascript and html when you register click events": why would I do that? Registering events can (and often should) be done exclusively in JavaScript. Agreed, onclick attributes were used fifteen years ago because alternatives weren't that popular and because JavaScript was considered "a language to add annoying animations to a website", but why would anyone still use them today?
22h
comment If possible, would it be a bad practice to use Nullable for non value types?
@EsbenSkovPedersen: thank you for noting that. Indeed, I was not talking about classes in general, but in a context of C# where each class' object can be null. I edited my answer to be more explicit on this point.
23h
comment Need guidance for developing first software
"I am an beginner programmer"/"develop the [...] features like login and register": bad idea. Login and register are two parts which are very, very difficult to get right, even for experienced developers. Consider using OAuth/OpenID instead, and focus on the unique features of your app instead.
1d
comment SRP and Getters/Encapsulation
@KonradMorawski: Thank you for your feedback. I thought that providing a concrete example will help the OP understanding the relation between SRP and getters/setters, thus the focus on the example itself. It would be much better to reuse the actual example referenced in the question, but I can't do that, because I haven't seen the linked presentation. Given those indications, do you feel that it still doesn't bring anything useful and should be deleted? As for the last paragraph, it was indeed not constructive; I removed it.
1d
comment Better way of handling pre conditions and logging
I see. Sorry, but since this is specific to C++, I can't help you more. It seems that you can still use exceptions, even if it's not the ideal solution.
1d
comment Better way of handling pre conditions and logging
@dyesdyes: I see. This being said, the article you link to suggests to use assertions instead, which is a perfectly viable alternative.
1d
comment Are there any studies about the amount of code a single developer can maintain?
The notion of now you use also introduces additional factor: the state of the developer. A hour ago, I was in the zone and could easily remember a dozen of variables. Right now, I absolutely cannot focus and forget the previous line of code as soon as I jump to the next one. As for the extra effort to mentally switch contexts, where do you put the line between "acceptable" switches (from one method to a very related method) and other switches (from a subsystem to another one which has nothing to do)?
1d
comment Are there any studies about the amount of code a single developer can maintain?
I'm not that sure that clean code base is likely to be a small code base. This works well for academic examples, but larger systems require abstractions, which in turn means more code. Interfaces, abstract classes, design patterns all add code while making the project simpler to maintain (when used wisely).
1d
comment Is it bad to store data in JSON form or should I use mySQL?
See also a similar question and the corresponding retrospective.
Jul
31
comment Do microservices scale down?
The problem with the term "monolythic" is that it assumes the lack of proper abstractions. The absense of microservices is not nesessarily a monolythic application.
Jul
27
comment Extensions on Visual Studio 2015 Express
I'm voting to close this question as off-topic because it should be addressed directly to Microsoft's support.
Jul
20
comment Delete unused source code from the repository or keep an archive folder?
@Hauke: gbjbaanb suggested to tag the revisions. Since I'm personally against tagging, I would rather suggest having explicit commits (bullet 2 in my answer), as well as having a list (for example as a wiki) of all projects, including the ones which were removed.
Jul
17
comment Should I ask for the state in a registration form for new clients who live in the USA?
First, you edited your question after the close vote was issued. Second, even after your edit, it's still a duplicate. “Is it recommend[ed] to ask for the State?”—no, it's not; it is recommended to ask exclusively for information you absolutely need. If your website is, say, forbidden to minors, you should ask for age, but you shouldn't ask for pet's name or favorite color.
Jul
17
comment Should I ask for the state in a registration form for new clients who live in the USA?
Possible duplicate of Should I require users to register to use my app? Relevant quote: “Don't force the users to do things neither they, nor you need.” If your business can still work if you don't know the state, why would you ask this information during registration, encouraging more potential customers to go to your competitors?
Jul
16
comment Isn't there a substantial problem with SVN tags?
@BasileStarynkevitch: I have an impression (and the answer by gbjbaanb confirms that) that the same problem affects git as well. While git is a solution to multiple issues with centralized version control systems, this may not be the case here.
Jul
12
comment Website form testing
How is “Is usability testing the right tool to test regressions on a webpage?” too broad? It looks like a very specific question, which can be answered very precisely as well.
Jul
7
comment Post-mortem of a project
By "lynx", do you mean "Lync"?
Jul
6
comment Best approach to write windows service
If I'm not mistaken, Windows Protected Storage is depreciated and Windows Data Protection should be used instead.
Jul
1
comment Is automatically generating passwords during registration a good idea?
@CD001: that's why using randomly generated passphrases instead of randomly generated passwords was suggested, with the benefit of being much, much user friendly.
Jul
1
comment Is automatically generating passwords during registration a good idea?
@kat0r: yes, in general. There are still some marginal cases where it's not the case. One case is when a hacker can just configure the mail account to forward all e-mails to him: he can't ask for password reset, because this may look suspicious for the owner of the e-mail account.