Reputation
3,928
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
9 21
Newest
 Nice Answer
Impact
~119k people reached

  • 0 posts edited
  • 5 helpful flags
  • 99 votes cast
Jul
22
comment “Party on my branch” workflow support in mercurial
Mercurial is aimed for ease of use. Don't fight it. Do not try to do that rebase --this-option --that-option --yet-another-option nonsense with hg. Just let it do it's thing. The git penchant for hacking history targets one specific project that involves thousands of developers spread across the globe. Unless you are contributing to that singular project, the standard git workflow <expletives deleted>. In my opinion, of course. Actually, not just my opinion. The developers at github eschew that git workflow for a workflow that makes gitflow look complex.
Jul
22
comment “Party on my branch” workflow support in mercurial
Seriously? rebase --interactive, push --force, pull, fetch, merge --ff-only, reset --hard and possibly others? And Also commit --amend --all --reuse-message=HEAD. I'm anxiously awaiting the day when the git developers add the --kitchen-sink --alphabet-soup options. This is why git is the most appropriately named piece of software ever.
Jul
22
comment Experiments correlating code metrics to bug density
Not worthy of a downvote, but that should be "some studies show no correlation", because other studies do show a correlation.
Jul
22
answered Is cyclomatic complexity density a good software quality metric?
Jun
29
comment What are the advantages of build scripts?
I too am one of those developers. I don't want my fingers to have to leave the keyboard. Doing so interrupts my thought processes.
Jun
29
comment What are the advantages of build scripts?
It's not just a matter of different IDEs. Some developers hate and loathe IDEs of all types.
Jun
18
awarded  Nice Answer
Jun
11
comment What is the “type” of data that pointers hold in the C language?
A char is always 1 byte in C. Quoting from the C standard: "The sizeof operator yields the size (in bytes) of its operand" and "When sizeof is applied to an operand that has type char, unsigned char, or signed char, (or a qualified version thereof) the result is 1." Perhaps you are thinking a byte is 8 bits long. That is not necessarily the case. To be compliant with the standard, a byte must contain at least 8 bits.
Jun
9
comment What is the “type” of data that pointers hold in the C language?
In your example, if p is of type char* (or int8_t), then p+1 is numerically ox1B. But if p is of type short (or int16_t), p+1 is ox1C or 28 on most computers. That is not how integers add. Pointers are not integers.
Jun
6
comment Accessing member of vector< pair<pair<int,int>, int> >
@rwong - D'oh! I edited my answer to incorporate your comment.
Jun
6
revised Accessing member of vector< pair<pair<int,int>, int> >
added 456 characters in body
Jun
6
comment Accessing member of vector< pair<pair<int,int>, int> >
(1) Your code doesn't compile on my machine, with multiple compilers. There is no <bits/stdc++.h> to include. (2) What's with #define _? You're not using it anywhere. (3) What's with #define pb etc? That kind of stuff is good for the International Obfuscated C Code Contest, but not here.
Jun
6
comment Accessing member of vector< pair<pair<int,int>, int> >
There is a whole lot that is wrong with this code.
Jun
6
answered Accessing member of vector< pair<pair<int,int>, int> >
Jun
5
answered Why would a program use a closure?
May
31
awarded  Yearling
May
23
comment Short circuit evaluation, is it bad practice?
@FedericoPoloni - There's a way to do it. There's more than one way to do it! Just change the exclamation mark in the string the dollar-bang: open($handle, "<", "filename.txt") or die "Couldn't open file: $!";
May
7
comment Is renaming an 'alias' for moving?
@BanksySan - The reason I asked was that there a distinction can be made. There's a big difference between changing the contents of folders/directories but leaving the file untouched versus copying the file to a new location, deleting it from the old location, and changing the contents of folders/directories to reflect those actions.
May
6
answered Is renaming an 'alias' for moving?
May
6
comment Is renaming an 'alias' for moving?
@BanksySan - How do you distinguish between "rename" and "move"? (They're interchangeable words on many systems.)