Reputation
10,500
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 22 43
Impact
~232k people reached

18h
comment Process of handing over source code to a customer
@gnasher729: This is probably not the place for an extended discussion, but the question disambiguates the title and the OP would have seen the edit.
23h
comment Process of handing over source code to a customer
@gnasher729: English may not be the OP's first language. Nitpicking what he wrote is bad form, especially when you have enough rep to edit the question.
Aug
27
comment Why are C string literals read-only?
Also worth pointing out: Putting literals in the code segment means they can be shared among multiple copies of the program because initialization happens at compile time rather than run time.
Aug
27
comment behaviour of SQL BETWEEN operator
@MichaelT: I was doing databases back then, too, and you're right; there was plenty left to be desired when it came to adhering to the standards. 20 years on, things are lots better. BETWEEN (A)SYMMETRIC is part of SQL-99.
Aug
27
comment Can I legally create and use similar icons to ones exist in another software
This is a legal question that applies to more than just programmers.
Aug
27
comment C: “this” vs “<instance name>”
Why would you want to give Engine_initialize() understanding of a structure beyond Engine? If a Context has an Engine, there should be a Context_initialize() that calls Engine_initialize().
Aug
26
comment behaviour of SQL BETWEEN operator
@MichaelT: BETWEEN is standard in SQL-92 (see section 8.3) and explains why OP's BETWEEN 10 AND 5 doesn't work as expected.
Aug
26
comment Explaining new or uncommon syntax in comments
@MetaFight: Mistakes occur in well-designed systems, too, and in an ideal world someone with deep knowledge of the code is available 24x7. Reality says that's not always the case, and maintainability means maintainability by those outside the inner circle. I don't advocate dense commenting, but the occasional bit of narrative helps identify and skip parts of the code that probably aren't involved.
Aug
26
comment Explaining new or uncommon syntax in comments
(Sorry, deleted the original comment to make a correction.) @MetaFight: When a mistake in your code grinds production (and revenue) to a halt while you're on vacation, your comments can be a useful tool for those trying to find and correct the problem. When the guy in charge asks why it's taking so long, you can bet dollars to doughnuts the answer will be something along the lines of "we're having to do a full-on reverse engineering because MetaFight didn't leave us any bread crumbs.
Aug
21
comment How to achieve time localization in c++?
Use strftime(3), which has locale-aware formats.
Aug
21
comment Metrics for when to use a hash value?
It would help if you could clarify what kind of data checking you're going to be doing. Are you looking for duplicate entries or just trying to validate what's there?
Aug
19
comment Design periodic batch notification system
Several databases have support for scheduled activities. If yours isn't one of them, you're pretty much stuck doing it externally.
Aug
13
comment Why not just make non-parameterized queries return an error?
More succinctly, this is a client problem, not a server problem.
Aug
12
comment Can MCU ROM and RAM limitations be scaled?
EE might work. The answer you'd get there will be pretty short: "Not unless the memory bus is extended off-chip, which they rarely are."
Aug
12
comment Can MCU ROM and RAM limitations be scaled?
This question is about hardware. Welcome to the world of embedded development, where if your code doesn't fit in the target device, you have too much of it.
Aug
8
comment What was the reason for the creation of boolean variables?
@MasonWheeler: The level of a language is relative to the landscape of other available languages, which may have put it higher in the grand scheme of things ca. 1972, but by today's standards it isn't. To say that Dennis Ritchie touted C as a high-level language is entirely incorrect, and he and Brian Kernighan make that excruciatingly clear very early in the preface and introduction of The C Programming language (1st ed.).
Aug
7
comment Proper way to interpret this dereference operation?
Writing it in the proper way to calculate pointer offset (B->data + B->start) is clearer and doesn't raise questions about precedence. Please cite the textbook, because the example, while valid, is pretty poor practice.
Aug
4
comment What was the reason for the creation of boolean variables?
C99 standardized booleans: pubs.opengroup.org/onlinepubs/9699919799/basedefs/…
Aug
3
comment Should a method be forgiving with the arguments that are passed in?
I'd add to @Nelson's comment that the method shouldn't be designed in a vacuum. If the coders say they'll use it but will compensate and their compensations have general-purpose value, consider making them part of the class. (E.g., have foo and fooForUncleanString methods where the latter makes the corrections before passing it to the former.)
Jul
23
comment C++ Iterators: Best practice to represent end of range - Last or Beyond-last?
@1v0: Some of the STL containers provide a back() method that returns a direct reference to the last element in the set. If you need something that returns an iterator, add a method whose name doesn't conflict with method names in existing containers (e.g., last() or final()) but returns prev(endIt).