The Code Project.
I wonder which part he didn't understand
Wrong is evil and must be defeated. - Jeff Ello
Any organization is like a tree full of monkeys. The monkeys on top look down and see a tree full of smiling faces. The monkeys on the bottom look up and see nothing but a**holes.
That person does not have C++ in their profile so may have trouble compiling the project like I would.
Several places will not allow downloading files with .exe in them so you could always upload a version with and with out the .exe or a seperate file with just the exe for download for those that would like to test it as is.
Some like to view how a program works before digging into the code. If it crashes then they may not bother viewing the code.
I personally forget to remove the .exe from my projects before uploading them after spending so much time on the articles.
Yeah, I know including an EXE used to make things easier. But with Vista/Win7/Win8 security features blocking executables or demanding admin privilege, with various 64 bit and 32 bit architectures, with multiple versions of .NET possibly requiring download and installation, it doesn't seem like a good idea anymore to include an EXE that may only run properly on some systems while crashing on others.
You are right about that, the only way that would work is if version checking was built in so it would not just crash, but throw a error stating it needs version x or admin right to run properly on OS version X or .Net framework X.
There's usually no point in providing an EXE, because usually it's just an example anyway. The point of the example is showing how something works, not to provide a useful application. Some articles may come with a useful application, but usually that makes no sense to do.
I agree; most articles should not include an EXE. Only one of mine does.
I also don't include IDE-specific files because I generally don't use an IDE and they're unlikely to be of any use to the reader.
Only include the code and the article text; let the reader decide how to use it. Anyone who can't figure it out probably isn't worth your effort.
What is your take on providing EXE files with articles? Do you still do so?
I never run the exe for the reasons you mentioned, concern about viruses, etc. Also, I usually want to include the code is something I'm doing, so I want to make sure the code compiles, I really don't give a darn about the exe.
Me, I just put a link to the code on GitHub nowadays. I'll make a branch specific for the code in the article so the reader can correlate what I'm writing about and the code examples in the article to the actual code.
I suspect I just lost an approximate 30 hours worth of work. I decided to play around with the CodeProject API, and of course did that on my dev VM (which runs on my iMac - no comments on that. Please.) - I was updating it (the VM that is, not the iMac) to use Ubuntu 14.xx, and all of the sudden the whole HOST OS hung up, crashed to leave the VM in unusuable state. Yes, uploading everything to an SCM was on the todo list
Update: I'm now setting up a second VM, praying to be able to mount the old virtual hdd and rescue the data.