The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
.. so I think I should take this opportunity to say it....
I am trying to write some shape operations.
By shape I mean polygon whose side are bezier curve (instead of simple straight lines).
And by operations I means like finding the outline of a random shape, or removing one shape from an other.
You bet it is - a fun personal project I have been working on is taking a hand drawing of rectangles and circles and converting it to a shape map, identifying circles and rectangles. This was after a colleague mentioned that it would be great if we could take hand-drawn diagrams and convert them to the diagrams our software generates.
There a a few articles online regarding blob detection that help, but like you say - it's hard.
I am no artist and my hand-drawn circles are painful to see but I have managed to distinguish between circles and rectangles and interestingly enough I did not use the commonly suggested method for determining whether a shape is a circle.
“That which can be asserted without evidence, can be dismissed without evidence.”
You can leave Australia now! If you can't spell and pronounce Maths you can move in with Maunder.
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004
Soooo, I don't know if any of you remember, but I showed up a couple of weeks back and started a discussion here in which I blasted Microsoft and talked about my refusal to use their products whenever possible. Many of you pointed out how I was missing out by ignoring Visual Studio, which you lauded as a superb IDE.
Since then I've found that you are all absolutely right. I was initially hesitant to just give in and switch my IDE because people told me I was wrong. Made me seem kinda wishy-washy. What broke the camel's back for me and made me switch from SharpDevelop to VS was SharpDevelop's inability to find one single file.
I was attempting to follow the directions found here but ran into trouble as MSBuild kept returning an error of "Cannot find AxImp.exe". AxImp was precisely where it needed to be for the system to find it, there didn't seem to be anything in the PATH variable to cause the problem and, seeing as I've never worked with this type of thing before, I had no idea what this meant or how to fix it. Some suggested editing the registry, some suggested installing the Windows SDK.
What I did instead was install Visual Studio. Building under VS returned no AxImp errors, either because it actually knows how to find the necessary file or because the installation itself installed whatever I needed to get things going.
So now I had VS and I couldn't very well go back. I mean, I didn't know if the AxImp error would still pop up if I tried to go back to SD, and I didn't feel it was worth the trouble. I had an IDE that was giving me none of the problems that SD did.
No offense if anyone here volunteers their time writing SharpDevelop source code, but it really was slowing me down. Here's a question: If you're writing a program visually, drawing buttons and drop down menus and whatnot, what do you expect a visual IDE to do well? I would expect it to do exactly what common sense says: handle the code in the Designer.cs files and keep track of changes.
I lost count of the number of times that SD actually wrote those changes incorrectly. There is an ironic multi-line comment in each and every one of those cs files that says:
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
private void InitializeComponent()
I say it is ironic because SD actually corrupted the code at this very place many times. That "private void InitializeComponent()" line would simply disappear, written over by something else (or sometimes nothing) and then the editor would complain that it couldn't load designer support because there was an error in the underlying code. That isn't my fault, is it? So I'd have to stop everything that I was doing and try and figure out what changes were made incorrectly and what the changes were SUPPOSED to be. This process could take from a couple of minutes to upwards of a half an hour, depending on the severity.
VS doesn't do that. It hasn't done that to me. Not once. And I expected it to be bulky and slow. It is a massive program, far larger than SD, and SD was unbearably slow. To my amazement, it actually turned out to be faster! I can now edit at speeds I'd only wished for but a month ago. It has amazing features that I don't have to jump through hoops to access. SD could do a lot of the extra things that VS does natively, but it was sometimes a chore making it happen.
What I've found, overall, is that I made an irrational judgment. I've never moved past the Microsoft of the 90s, when their Windows OS was an unstable train wreck and their unethical business practices landed them in an anti-trust lawsuit. For the longest time, I've refused to acknowledge that they have gotten better. That their operating system has vastly improved. That their products are often quite good. One could argue that the Xbox One was another of those train wrecks, but that's a discussion best left on video game forums.
And then there was the Zune...
Visual Studio is a sleek, polished and impressive IDE, and the one that I should have been using all along. Is it perfect? No, but where will you find flawless software? If you find an absolutely perfect piece of software with no design flaws that shines as a paragon of programming excellence, you're running TempleOS.
Thank you all for your very blunt but extraordinarily helpful advice. I was wrong, and I can admit that. All I can do is try to be better in the future.
SharpDevelop has basically been abandoned, unfortunately. The team stopped working on it around the time Visual Studio Community Edition was released. It still has some good code (the AddIn system is excellent), and I'm using it for some personal projects that may or may not get released. One thing I like about SD is the fact that it has a WiX Dialog Designer built in.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
The latest anything .NET by Microsoft is not only good, it is excellent!
Continuously outdoing itself for 18 years has led to amazing results!
To be fair I think one must thank the competition for putting Microsoft under pressure to excel. But excel it has!
I hope it will continue to do so!
I've been using Visual Studio for 25 years (it was Visual C++ 6.0 back then) and have never looked back. MS' tooling is the primary reason I stuck with them (and since moved to C# in 2003). So much so, that I use Xamarin/C# to build native Android apps, instead of Eclipse or Android Studio and Java.