OK, my article is here C++/CLI for Beginners[^]. 7z hasn't been replaced by zip automatically, so I did that manually. The article has been reviewed by one of your editors after the update already.
Vladimir Svyatski
Posts
-
7z support -
7z supportHi, support people. Recently I've discoved sort of a problem with article submission. You see, in the article submission wizard it is said that 7Z archives are supported. In reality, not entirely. One can upload them, but when you create a link to 7z file in your article, it can't be downloaded. The 404 error will be shown. So I had to replace 7z with zip. Could you verify that everything is OK with 7Z? Maybe they're not in IIS mime list. Or just remove all the words about 7Z support from the article submission wizard. I'm using Firefox 35.0.1. Thank you.
-
GUIDsA new nasty virus? It's so terrifying, that it can easily beat Skynet. The machines will terminate us all :((
-
Get all the EnumeratorzThe
foreach
operator is not an option I guess :) . Also, if they only wanted to reverse the list, why not use this? That is the forbidden stuff, and the unfaithful will be punished by torturing and banishing for forever. -
It won't take no for an answerThe code is complete bullshit!
-
What is the point of using ref?
objWord
is not assigned any value. I guess, the author has never heard of reference types and value types, doesn't differentiate them and also is a former C++ developer. -
If an exception is generated, a variable, representing it, can NEVER be
null
. And the checkex != null
just looks stupid.
-
Also, it will sound very upsetting for the author, but if the exception mentioned above is ever generated, he is about to face an infinite recursion, hence he will also face the full power of the
StackOverflowException
.
Summarizing the above, I'd say he better work in McDonald's. To get a chance to become a manager :rolleyes:, that is a real chance to afford Ford Mustang GT... someday :-\ .
lifecycle of a lifecycle of a lifecycle
-
-
Visual Studio 2013 LicenseTry to contact Soma Somasegar :). "Tat is wat we all been tinking abot!" (© 2012 Soma Somasegar). Sorry for the bad spelling in the quote, but I've been trying to express his accent (I kinda like it). Here is the video http://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-Live/Soma-Somasegar-Visual-Studio-2012-Launch[^] by the way (it's about Visual Studio 2012, but nevertheless).
lifecycle of a lifecycle of a lifecycle
-
Found this todayAccording to this http://technet.microsoft.com/en-us/library/ms184325.aspx[^], the expression is just stupid, it is much easier to write
SELECT '' as [Email]
, because
ISNULL(NULL, '')
will ALWAYS return''
.lifecycle of a lifecycle of a lifecycle
-
Yes I know it was me who wrote that...I've been always wondering why people just don't use string comparison functions with the case ignoring ability. Many languages have them. Why use ToLower or ToUpper if you don't really need that lowered string? One my colleague once told me that because of the belovers of ToUpper/ToLower the program he had to improve was doing its job during about 11 hours (the program was in C++)!!! After just replacing the appropriate functions with stricmp and similar ones (which compare ignoring the case) the program got the awesome performance boost: it managed to finish its execution in just one hour or such. Taste the difference!
lifecycle of a lifecycle of a lifecycle
-
A delicious bug in the September update of SQL Server 2012 Data ToolsThis post is about dates and certificates. On the 7th of October, 2013 I needed to install the September update of SQL Server 2012 Data Tools (I'll be using the acronym SSDT further). Imagine how surprized I was when after attempting to download something the installer failed claiming that the reason for the failure is a wrong certificate which is already out of a valid date range. I tried to google some solution, but the only thing that I found is a post from some guy which had the same problem. After some thinking I have come to the solution (just taste it): in order to install the stuff you have to correct a date on your PC to something close to the release date of that update! I used September, 20th. Wonderful, isn't it? Was it way too hard for the Microsoft guys to just ensure their certificate doesn't expire before they release another update?:confused:
lifecycle of a lifecycle of a lifecycle
-
Developer whose first language is not EnglishInitially I didn't get it (because of the asterisks). Such aliases should not surprize anyone. If we step aside from the programming for a moment, one can remember that Japanese car makers are that awesome, that they can name cars "Pajero" (which is not a very good word in Spanish slang) and sell them officially in Spain. With that said, why can't a female developer use genitalia as an alias in that SQL query?
lifecycle of a lifecycle of a lifecycle
-
It does what now?It throws an exception when
visible == null
. -
Happy new year... kind of...An attempt to create new, better LINQ to SQL?
-
Just a C++ tutorialThis tutorial should be called: "How to get your first access violation runtime error in C++".
-
String ComparisonI always wonder: why after many, many, many years people just can't learn to use caseless string comparison methods? I constantly see shit like this. Caseless comparison methods existed even in good old plain C. Damn, is it really that hard to master primitive things like this:
if (String.Compare(name, "CamelCasedName", true) == 0) {...}
? In the end, it's not Lebesgue integration, right? Those, who ever had the "pleasure" to be familiar with functional analysis, know :) .
-
Straight from the horse's mouthI have seen such stuff many, many times. They always claim that such approach makes it "easier to read". But the question arises: "For whom?" Don't want to answer, because it will be abusive for some. But writing such sort of a code is the same (yes, it is) as putting the caption "car" on a car (you can make up more examples if you wish). Thanks, I noticed :)
-
ISP hackedWow, I'm impressed. Brand new encrypting technology - UTF8 :laugh: But it's not strong enough (like Latin1 as well). I strongly recommend to use something like UTF32. You know, additional 24 bits make it harder to decrypt. Or they could just use Japanese or Arabic characters. This will mislead an intermediate european or american hacker.
-
Code OptimizeBobJanova wrote:
Interesting to see someone else who likes to do
if(0 != ...)
... as well.
This is called Yoda condition.
-
What should you do if assigning is going to crash your application?It's not only Pokemon exception handling, Smurf naming convention is also widely used in the application I took the snippet from. I just removed it from class name, because it leads in some way to the source of the snippet.
-
What should you do if assigning is going to crash your application?I didn't spotted that initially (perhaps I was way too attracted by
try/catch
). But now I've fallen from my chair, thank you. :laugh: -
What should you do if assigning is going to crash your application?Another coding horror. Have you ever thought that usual assigning operation, like
a=b
, can crash your application? Not yet? You gotta be ready. One of my teammates has already prepared:public class InspectionMethod { private string name\_; \[XmlElementAttribute()\] public string Name { get { return name\_; } set { name\_ = value; } } //This method is the most interesting part public void Resuscitate() { try { name\_ = this.Name; } catch (Exception ex) { MessageBox.Show(ex.Message, "Serialization error has happened.", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } }
And indeed, never forget about message boxes. User must be warned, right?