Reputation
31,758
Next tag badge:
112/100 score
19/20 answers
Badges
5 66 116
Newest
 Electorate
Impact
~1.1m people reached

7h
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.
7h
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?
2d
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.
Jul
22
comment How should I structure my web app for browser compatibility?
Fnd out why they dropped jQuery becuase often its "because we didn't make it" (which will be couched in terms of 'not being good enough' or similar). Sometimes its simply because they didn't spend enough time learning it because they didn't want to, because NIH. Any issues with jQuery can be fixed.. and submitted to the jQuery team.
Jul
22
comment Is Open Data Protocol (odata) Being Widely Embraced by the Development Community?
if you have to post a link to it so people know what you're discussing, that suggests its not particularly widespread and in use :-)
Jul
22
comment How to write procedural code in an object oriented language?
1 class, lots of methods. OO is just a different way of organising your procedural code to make it more manageable.
Jul
21
comment Business difference between MariaDB and MySQL
MySQL is now owned by Oracle. What question are you asking as yours doesn't seem to be about anything.
Jul
21
comment What is the right testing strategy in Agile Scrum/Kanban teams?
scrum is practically waterfall - lots and lots of short waterfalls :-)
Jul
21
comment Should I initialize C structs via parameter, or by return value?
@jamesdlin in cases where the Foo is created, and the InitialiseFoo is accidentally missed. It was just a figure of speech to describe the 2--phase initialisation without typing out a lengthy description. I figured experienced developer type people would understand.
Jul
20
comment How to compute flow rate of web traffic?
hold it in some application-level state that the web server provides, for PHP that's probably going to be memcached unless you want global variables. You'd best ask another question about that on SO, PHP global state is not really my area of expertise.
Jul
20
comment How to structure Git repository of a QtCreator based application?
then use the same layout QTCreator uses, if you're modifying it....
Jul
16
comment Isn't there a substantial problem with SVN tags?
the Linux kernel tar.bz2 is about 100Mb... teeny. If I took the enterprise I mentioned and checked out the entire repo, it would be 30Gb on local disk, and that only counted the UK repo, not the American, European or Australian ones. Anyway, the tool is only inappropriate if you use it in the wrong circumstances instead of using the right tool. Remember, they're all just tools.
Jul
16
comment Isn't there a substantial problem with SVN tags?
@BasileStarynkevitch svn tags are cheap too, the difference is that git stores them in a "stacked" organisation, whereas svn stores them in a "flattened" organisation. With git you get all the history, whereas svn only gets you the last revision. Switching branches in git is quick but at a cost of increased disk space, switching in SVN is slow but uses less disk. Its all trade-offs depending what your requirements are, neither is "good or bad", just different. Enterprise I worked at had a 5Gb repo, git would not have worked well with that, but it works very well with small OSS projects, etc.
Jul
16
comment How to break TFS or Mercurial repository in some way with a bad commit?
AFAIK no other SCM allows rewriting of history - every commit is a stored commit, no matter what. Git is the exception allowing things like rebase and fastforward which should have no place in any SCM. Other than that, there might be bugs in various products that allows damage to occur, or a dedicated attacker could damage the repo but these are bugs that occur in all software.
Jul
16
comment My coworker commits and pushes without testing
@Marco its cool, I've worked those places too, but regardless of the isolation of roles, you were wrong to say support doesn't care about architecture or quality. They certainly care that they receive a crappy product that needs more supporting!
Jul
15
comment Why use a unique hashkey for form submissions?
@MichaelT, true, adding a timestamp and sending a new hash with every response is a good idea to keep an attacker from reusing an old hash token. This will still work with stateless requests, you're simply persisting the authentication status. Most websites work like this with persistent auth stored in a cookie (don't they?)