Top tag
Next privilege 2,000 Rep.
Edit questions and answers
1 9 12
 Nice Answer
~22k people reached

  • 0 posts edited
  • 146 helpful flags
  • 934 votes cast
comment C++ serialization design review
For the love of sanity, don't using namespace std in interface code, and preferably don't do it in implementation code either. There's so many names in the standard namespace that may conflict with your names, either resulting in shadowing, accidental overloads or your code performing illegal specialization or otherwise causing ODR violations. Use type aliases or explicit qualification.
comment Can I legally create and use similar icons to ones exist in another software
comment C# - design to parse and write csv and manipulating data
Isn't there a Code Review StackExchange site?
comment Linking kernel voids without CPU parse (Compute shaders)
@JamieNicholl-Shelley A function returning void has never in any language known to man been called void, much like how you don't refer to a function returning an int as an int. Kernel functions in compute are functions, or if you need to indicate the return type, a function returning void or colloquially, void function.
comment Counting lines of text and get color of a specific line in an image
A reason for a minimum group size may be diacritics adjacent to but not connected to the base glyph of the grapheme. Even in the US alphabet, you've got lowercase i.
comment How do I set a final field via a setter?
@Bwmat Consider turning your comment into an answer.
comment Why does scala require parenthesis around the condition of an if statement
A notable example of asymmetric if is Python, with its affinity to lines, indentation and colons.
comment How should one document permission of contributors to change the licence of a project?
You may be able to incorporate elements of the story of the Dolphin emulator and their license change with a massive number of contributors:
comment What is the difference between function() and function(void)?
This is a duplicate of a thousand other questions on the site network, among others…
comment number of square matrices in a non-square matrix
@Zishnu Sadly, ignoring questions that is not quite up to par is very detrimental to the quality of the site. Anyway, there appears to be ambiguities in your question; for any matrix larger than 1x1, there are multiple solutions. Do you care about which one is chosen?
comment node deep file indexer module cannot go deep
Contrary to popular belief, the contents of a call stack trace contains information you can use to determine things about the problem.
comment Data integrity, BinaryWriter, C#
Figure out how much overhead is acceptable, and use that many bits. It might be worth having a byte of checksum for N 48-bit blocks. Assuming you never have partial writes, you cannot desync in your storage solution.
comment Why would a program require a specific minimum number of CPU cores?
@StevenBurnap Had the original question been about the things which make the performance requirements of games different from a lot of other computing to the degree that such a minimum number of hardware threads requirement is warranted, then an answer expanded from my comment with a bit of research may have been appropriate. The current shape of the question is largely uninteresting to answer, as it's just about gathering fodder for some argument about whether it's possible to have a hard failure by not having enough hardware threads. The mass of other irrelevant answers also deters.
comment Why would a program require a specific minimum number of CPU cores?
The thing to compare isn't 2 vs. 4 cores. It's essentially 1 vs. 3 cores, as CPU#0 will be pretty much pegged by the graphics driver and DPCs. There are also significant cache and migration effects if you oversubscribe a CPU with several kinds of tasks in a typical modern game's job system. The requirement is there because Frostbite (DA:I's engine) is designed from the ground up with very careful tuning that requires a particular number of cores.
comment Why using string[] args in all main methods?
@Mawg argc in C may be zero. in case of non-zero argc, argv[0] shall be a string that represents the "program name", or an empty string if the name is not available from the host environment. There is no requirement anywhere that it shall be a "full executable path". This is all from C99 section Even your non-normative URL says this.
comment It is safe to accept money for open source software that you've written?
Your modification of the MIT license means it's not the MIT license anymore. You can license your software under multiple licenses, some of which may only be available for charge. Is your question about dual-licensing software, or concerns about taxation and other economy funstuff that may arise due to dealing across nation borders?
comment Hide admin menu if no admin option is available
@Jorge Your comment seem a bit strange. If by "again" you mean on the server, you don't have any security. You cannot trust the client.
comment Should a getter throw an exception if its object has invalid state?
On the subject, Falsehoods Programmers Believe About Names is a very good read on why 'first name' and 'surname' are very narrow concepts.
comment Is it possible to modify a native executable and change (dynamic) library it depends on?
Note that DLLs on Windows do not only have exports by name, but also by ordinals (16-bit? number identifying an export). A drop-in replacement library should also have the same ordinals for its exports in case the application imports by ordinal.
comment Where did the notion of 'calling' a function come from?
@Blrfl I skimmed the paper, it does not use the term call or any other term, it mostly just talks about use of subroutines.