Reputation
13,596
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
4 37 60
Newest
 Quorum
Impact
~280k people reached

Aug
6
comment Are data type declarators like “int” and “char” stored in RAM when a C program executes?
@JörgWMittag: indeed. I thought about mentioning a buffer overflow as an example but decided it would just make things more confusing.
Aug
6
comment Are data type declarators like “int” and “char” stored in RAM when a C program executes?
@user16307: The code in the program will tell the computer to fetch that address then to display it according to whatever encoding is being used. Whether that data in the memory location is an ASCII character or complete garbage, the computer is not concerned about. Something else was responsible for setting up that memory address to have the expected values in it. I think it might benefit you to try some assembly programming.
Jul
31
comment Understanding factories
Use factories when you are unable to know at compile-time what Type you need. Otherwise, just use new.
Jul
31
comment Why don't operating system start to copy files just after formatting?
@ordous: the installer's designers should make that apparent up front before making any changes.
Jul
30
comment What exactly is copyrighted, the text of the code itself, or the design?
@gnasher729: That's how it's supposed to be. Reality, with the multitude of issued patents on time travel and perpetual motion devices, says otherwise.
Jul
27
comment What would be a reason not to embed JS in C?
I'd say a large amount of possibly not-needed complexity is definitely a reason not to do something.
Jul
22
comment Handling if-statements with a known duration
What makes you think this is automatically more performant than just passing over the if statement a few times. Have you tested this to determine that it actually is? Do you iterate often enough to matter even if it does? Does shaving a few microseconds off your execution even matter? I'm guessing the answer to all of those is 'no'.
Jul
14
comment One table for all transaction VS. Table for each user
@Ixrec: only for some X
Jul
12
comment The Critical Functionality of an API has changed, what should I do?
That's actually a terrible way to deal with stress.
Jul
3
comment What's the quickest and most maintainable way to implement SQL querying of disparate C++ variables?
There is no such thing as a "standard C++ SQL parser". Option 2 is more work than the entirety of your radar observation teams work, and it's just reimplementing a wheel. The way they are doing it really isn't all that bad, for research.
Jul
1
comment Is login a use-case for a user of a system?
I'm not 100% I understand your question. Whether login is a use case or not will depend on what kind of system is being designed.
Jun
26
comment Generic Sorting of Lists<>
I'm pretty sure IComparable isn't something provided by the CLR and is instead just an element of the .NET framework.
Jun
9
comment specification regarding a text file
That's a very poorly written spec.
May
20
comment Modifying GPL code to link closely with another program
"No matter what A does with B as long as A is in independent program.", this isn't necessarily true, see gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem
May
20
comment Modifying GPL code to link closely with another program
Ready the entirety of this page: gnu.org/licenses/gpl-faq.html
May
20
comment Modifying GPL code to link closely with another program
Also, does your proprietary software pretty much completely depend on this GPL program to do its function?
May
20
comment Modifying GPL code to link closely with another program
Is your own proprietary program being released to anyone else, or only being used by you?
May
19
comment Non-licensed source code later becomes licensed
@Brandin: 1), user contributions are licensed under cc-by-sa to begin with, and 2), most don't fulfill the rather low originality standards by US and EU copyright laws anyway.
May
19
comment Non-licensed source code later becomes licensed
I'm voting to reopen this as it is not a terribly complex or narrow issue, and we are capable of answering this ourselves.
May
14
comment In C++, why does the main function use 'char *argv[]'?
Pretty much backwards compatibility, with the platforms which are used to calling a function with a signature of the first.