Reputation
32,009
Next tag badge:
95/100 score
28/20 answers
Badges
5 67 117
Newest
 Enlightened
Impact
~1.2m people reached

14h
comment What happens if a feature merged into develop is postponed by management?
@enderland my point is that you cannot avoid some problems, so you have to consider how to repair the situation. Hopefully you won't get that far very often, but its bound to happen sooner or later so plan accordingly.
15h
comment What happens if a feature merged into develop is postponed by management?
This isn't a very constructive answer - sometimes things go sideways for all manner of reasons. Sure, finding out that it shouldn't be merged sooner rather than later is important, but that doesn't mean eventually a feature will be pulled at the last minute. Maybe contract changes, maybe your customer doesn't pay up, maybe legal issues appear.. you still have to manage the problem instead of pointing the finger of blame
Aug
25
comment What document/artifact should alert me when an old requirement changes the scope of new one?
Its too easy to say "that;'s a solved problem, your complex system should not be complex" when a) you don't know what the requirements actually were (they might be very complex - I worked on government IT systems and they have ... interesting requirements that have to be fulfilled, not matter how stupid) and b) the requirements may not be involved in the auth of the user, but what happens after that.
Aug
17
comment Why doing everything with one software project is wrong?
"Wings on a car"... nothing is impossible, just more expensive than you're willing to pay!
Aug
17
comment Why doing everything with one software project is wrong?
@RamazanPOLAT I worked on a project a while back... 60 pages was just the executive summary. We had, say, 20 pages per document, and we had a document per component. There were about 100 components. And then we had a spreadsheet describing the high-level (ie no details) requirements of several thousand lines. It sounds like this is an opportunity to learn how to manage and build very large and complex software systems.
Aug
10
comment When NOT to use a framework
Never use a framework 0- use libraries instead. Frameworks tell you how to write your code to suit their ways whereas libraries bring their specialism to your code. So with a library, you get the benefit of not reinventing wheels whilst still being able to write the code you need to. Frameworks are only useful for getting started or quick projects.
Aug
10
comment Where should I put an API request in MVC?
This answer is correct, the model is not a "DB wrapper", it is a data wrapper, its job is to source the data from somewhere be that a DB call or an API call. Consider that DB calls are technically API calls anyway - you're calling SQLClient (or similar) methods on an interface that just happens to be connected to a DB.
Aug
10
comment Adding centralized logging mechanism to Project (Best Practice)
The log4net log4cpp log4J (etc) libraries are very good indeed, fast and simple and still very configurable. If you're even thinking of writing your own wheel, then you're probably don't understand the problem.
Aug
7
comment Are Integration Tests Meant to be Redundant?
@rwong except that you still have to find some way to test the combinations of execution paths - even though a unit works perfectly, it can still fail when combined with another unit. So even with hugely complex systems, you still need a full integration test suite. But unit tests help, its just that they're not the one and only form of test that should be used - which is really my point to the juniors who may get the wrong impression from various sources that unit testing is all they need.
Aug
5
comment Where to store average value in db?
You will be doing this anyway as reviews are received. With a temporary cache, you don't have to cache everything, only when required. So when read, if the value is a default uninitialised value (eg -1 or 0) then it means the cache needs to be populated and you calculate it there and then. So your cache grows with populated values dynamically. This is a simple and efficient pattern to follow.
Aug
5
comment Where to store average value in db?
Well, updating it (say) daily is sensible, but you're really just using the DB as an expensive, but convenient, cache for this value. I recommend storing this cached value in a cheaper cache is all.
Aug
5
comment Why do people confuse C-type strings and STL strings
yet that same construct in other languages with primary string types doesn't cause confusion at all.
Aug
4
comment What was the reason for the creation of boolean variables?
@JörgWMittag sure, but that's only 2 languages and is not an integral type like bool but an enum. I couldn't (sensibly) use that type for the states of a tri-state checkbox. Perhaps the reason we have bool and not tristate is that no-one could think of good, generic names for the 3 states :)
Jul
27
comment What would be a reason not to embed JS in C?
@MichaelT I did say it'd add a large amount of complexity... but sometimes its what you need. Chances are though the OP really doesn't need it.
Jul
27
comment Can I avoid more faults if I use different paradigms for the implementation and the specification/tests?
See Cucumber or SpecFlow for a TDD language that is not based on your application language. Is this more like that you mean?
Jul
25
comment Why is filesystem preferred for logs instead of RDBMS?
@Andy its overrated, when you have much logging, notepad++ has some great search capabilities that is quicker and easier to use than DB queries. See the search 'mark lines' option with bookmarks, then cut and paste all bookmarked lines into a new tab, and of course a log file lets you highlight repeated bits of text.
Jul
24
comment How to decide what forms the System Under Test
@IgnacioSolerGarcia no - do what makes sense for your system (as medical systems require more test than a note app), read up on Martin Fowler's articles, and remember that the only measure of testing is the quality of the end product., If you can create top quality product without any testing, then you don't need testing. (I doubt you can, but the level of test is what you're looking for, too much is just as bad as too little). Then pick a framework for the language you're writing in and read up tutorials and articles on that.
Jul
23
comment How often should RAII be used?
When to use RAII? Simple: everywhere. In fact C++ doesn't let you not to use RAII, ever class has a destructor even if a default one is created for you by the compiler. If you're using a lot of heap variables, look at the std:shared_ptr and std:unique_ptr.
Jul
23
comment How to encourage contributors to choose rebasing over merging?
possible duplicate of Why squash git commits for pull requests?
Jul
23
comment Why squash git commits for pull requests?
To b fair, SVN keeps the "every commit is sacred" approach, but when merging creates a single commit with that merge and hides the revisions that contributed to that, so it appears like all SVN merges are "rebased". They're not, you just have to tell the history command to show you the merged components. I like this approach the best.