Reputation
9,381
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 17 47
Newest
 Nice Answer
Impact
~299k people reached

1d
comment How much lines of code does a programmer write per day?
@L3n as others said, there is a lot more maintenance than new code being written. For instance this morning I fixed a bug. Took maybe an hour. The fix was changing (not adding) one line in one file.
2d
comment How much lines of code does a programmer write per day?
I've been working as a programmer for twenty years and I couldn't tell you - not even approximately - how many lines of code I wrote on any day in that time. Well except for the days when it was zero.
Jan
19
awarded  Nice Answer
Nov
16
comment C automatic variables
I don't think you get what gnasher729 is saying .. you are passing an uninitialized variable header to checkForHeader(). It is ignoring the passed-in value and overwriting the local copy with the result of calloc(). Nothing is returning that pointer to the calling function.
Sep
30
awarded  Yearling
Sep
15
comment Creating a better mouse dragger function
Is the goal to try to avoid bot detection algorithms, e.g. to automate actions on an online game?
Sep
13
comment How do you safely refactor in a language with dynamic scope?
At least you can't accuse MUMPS of false advertising for being named after a nasty disease.
Aug
14
comment What is the use of MSB and LSB?
@JörgWMittag great answer! But to play Devil's advocate, there is arguably the disadvantage for a right-handed person that they would be more likely to smudge if they write right-to-left with a quill and ink, no?
Jul
27
revised Why does C# have both out and ref?
ref
Jul
27
comment Why does C# have both out and ref?
I have no questions. I just think that the final paragraph of your answer was a bit misleading; I have edited, hope the change is OK with you.
Jul
27
comment Why does C# have both out and ref?
Sorry, not seeing it in your sentence. You said out doesn't require you to initialize the variable before you pass it into the function. I don't see any mention of any requirements regarding what happens inside the function, and how they differ from ref which doesn't have any such requirements.
Jul
27
comment Why does C# have both out and ref?
That's not the only difference : out does require you to assign something to the variable within the function, otherwise it's a compile error.
Jul
11
comment How can I create a RESTful-style website if HTML forms only allow to use GET and POST?
@JayMee religious objections, from those who feel that if you're not using PUT, DELETE, etc., your API is wrong
Jul
10
comment How to safeguard a REST API for only trusted mobile applications
@PunithRaj exactly, I covered that in the second paragraph. "Nothing I am going to suggest will allow you to guarantee that someone doesn't reverse-engineer your client and abuse your REST API. But it should put a barrier in front of any casual attempts."
Jun
9
comment In a resume, what all constitutes a Programming Language
@BenjaminCutler in the universe of a grumpy dev lead who doesn't think non-general-purpose programming languages are "real" programming languages.
Mar
15
comment I've been told HTML is a markup language, C++ is a programming language, what could make that difference?
@TomAu I think so. I think you'd get a lot more arguments about whether something is pornography or erotic art than you would about whether something is a programming language or not. I'm not aware of any formal research though. :-)
Mar
8
comment Can you “stop” a C program from being reverse engineered?
@Archimedix - but there's probably someone out there who is twice as smart as you and CAN reverse-engineer and debug your code 😊
Feb
22
comment How to respond to a rude bug report?
Ignore the bad attitude, don't feed the trolls, but investigate the bug as you would any other bug report; triage it appropriately, and allocate effort to fixing it according to its severity.
Jan
6
comment What are 4th & 5th programming language generations? Are there more of them?
Like Pieter B, I don't think the concept is particularly relevant in this day and age. I believe that at the time it was formulated, there was an expectation that we would largely move away from general purpose 3GLs quite quickly.
Oct
28
revised Eliminating choices of programming languages?
spelling fix