Reputation
14,930
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
5 41 62
Newest
 Nice Answer
Impact
~349k people reached

May
3
comment Can C#/.NET be used to fully implement a media decoder and player?
Of course it is. Why wouldn't it be?
Apr
29
comment Good examples for use of design patterns in Unity
Forget about the design patterns with your students. Design patterns aren't building blocks.
Apr
20
comment GPLv2 code as a separate process in a closed-source iOS app?
Also to add, if the OP needs to modify the GPL software to make it work for his application, it pretty much precludes communication at "arms length"
Apr
11
comment Use case for async/await?
@StevieV: it's a hypothetical scenario. Async/await isn't applicable to everything, don't use it where it's not appropriate. We don't know the exact details of your system, we can only give broad concepts so you can understand where async/await would be appropriate.
Apr
11
answered Use case for async/await?
Apr
10
comment What is “Soft Coding”, really?
The example doesn't break down because it's a toy problem. The surrounding code will always be horrible because the business rules that the software has to execute are horror. Attempts to side-step this fundamental challenge with rules engines and DSLs and whatnot is often programmer procrastination, because solving CS problems is more enjoyable than solving intricacies of tax forms. Attempts at achieving 'elegance' are often fool's errands because the ultimate task of the software is to model a complicated disaster.
Apr
10
comment Why does everyone use Git in a centralized manner?
@Superbest: a lot (if not all) of the design of git was based around Bitkeeper. Git was created after the linux-bitkeeper controversy imploded.
Apr
8
comment Is there any low level way to get shifted or unshifted bits which results from bitwise operations?
What does "obtain that zero" mean?
Apr
8
comment Is there any low level way to get shifted or unshifted bits which results from bitwise operations?
"some way to get shifted or unshifted bits from the bitwise operation" - What?
Apr
8
comment Why are large amounts of magic numbers acceptable in CSS and SVGs?
" 5 objects that all had to have the same width and each independently hardcoded their width I would beat you with a stick." Welcome to the fun world of web design.
Apr
5
comment Why isn't there a primitive “complex number” type in Java?
"I'm Im not suggesting a pandoras box.", you might not think so, but you in fact are.
Apr
4
comment Exception Handling: When and Why?
@bigcodeszzer: in the if(file.open()) example, it's not uncommon to have applications where the file open is going to fail pretty much never, but where you have to handle the error anyway. In that scenario, exceptions allow you to write code that assumes the ideal scenario, and deal with handling the error condition somewhere else. When you write that way, you can save the mental processing power of having to parse that mostly useless if statement over and over and over again every time you're dealing with that relevant code.
Apr
4
comment Exception Handling: When and Why?
Yes, come to chat as I have a good example that I am too lazy to make into an actual answer.
Apr
4
comment Should “magic” getter functions be used for dynamically calculated values or just existing properties?
Only if returning results from the db query is a fast and cheap operation.
Apr
4
comment Can a programming language by design enforce “clean code”?
No, you can write FORTRAN in any language.
Mar
31
comment When should I consider using a string table resource over a string constant in my Win32 application?
@GrandmasterB: I believe, but am not 100% sure, you can achieve that with ResourceDlls.
Mar
31
answered When should I consider using a string table resource over a string constant in my Win32 application?
Mar
31
comment For Object Oriented Programming purists, are @annotations heresy?
If you are a purist with regards to anything in programming then you should only stick to it as a hobby. Real problems are always going to be messy.
Mar
30
comment Re-releasing LGPL code as AGPL : need advice on how to phrase license
@MarjanVenema: that is not true. I can re-license MIT licensed code as I see fit as long as my new license also complies with the terms set by the original MIT license. It even explicitly says so in the body of the license: "the rights to use, copy, modify, merge, publish,distribute, sublicense, and/or sell"". Again, the numerous examples of MIT software in proprietary software supports my claim even if you don't want to bother reading and understanding the licenses.
Mar
29
comment Should I add redundant code now just in case it may be needed in the future?
@Luaan: that's not the responsibility of the example function, though.